File tree Expand file tree Collapse file tree 9 files changed +18
-12
lines changed
java/org/locationtech/geogig/cli/app
resources/org/locationtech/geogig/cli/app
test/java/org/locationtech/geogig/cli/app
cli/src/main/java/org/locationtech/geogig/cli Expand file tree Collapse file tree 9 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 118118 </platforms >
119119 <programs >
120120 <program >
121- <mainClass >org.locationtech.geogig.cli.CLI</mainClass >
121+ <mainClass >org.locationtech.geogig.cli.app. CLI</mainClass >
122122 <name >geogig</name >
123123 </program >
124124 <!-- program>
125125 <mainClass>org.locationtech.geogig.cli.GeogigConsole</mainClass>
126126 <name>geogig-console</name>
127127 </program-->
128128 <program >
129- <mainClass >org.locationtech.geogig.cli.GeogigPy4JEntryPoint</mainClass >
129+ <mainClass >org.locationtech.geogig.cli.app. GeogigPy4JEntryPoint</mainClass >
130130 <name >geogig-gateway</name >
131131 </program >
132132 </programs >
146146 <finalName >geogig</finalName >
147147 <archive >
148148 <manifest >
149- <mainClass >org.locationtech.geogig.cli.CLI</mainClass >
149+ <mainClass >org.locationtech.geogig.cli.app. CLI</mainClass >
150150 </manifest >
151151 </archive >
152152 <descriptors >
161161 <finalName >geogig</finalName >
162162 <archive >
163163 <manifest >
164- <mainClass >org.locationtech.geogig.cli.CLI</mainClass >
164+ <mainClass >org.locationtech.geogig.cli.app. CLI</mainClass >
165165 </manifest >
166166 </archive >
167167 <descriptors >
Original file line number Diff line number Diff line change 77 * Contributors:
88 * Gabriel Roldan (Boundless) - extract main() method from GeoGigCLI
99 */
10- package org .locationtech .geogig .cli ;
10+ package org .locationtech .geogig .cli . app ;
1111
12+ import org .locationtech .geogig .cli .CLIContextBuilder ;
13+ import org .locationtech .geogig .cli .Console ;
14+ import org .locationtech .geogig .cli .GeogigCLI ;
1215import org .locationtech .geogig .porcelain .ConfigOp ;
1316import org .locationtech .geogig .porcelain .ConfigOp .ConfigAction ;
1417import org .locationtech .geogig .porcelain .ConfigOp .ConfigScope ;
Original file line number Diff line number Diff line change 77 * Contributors:
88 * Victor Olaya (Boundless) - initial implementation
99 */
10- package org .locationtech .geogig .cli ;
10+ package org .locationtech .geogig .cli . app ;
1111
1212/**
1313 * An interface for progress listener for the Py4j entry point.
Original file line number Diff line number Diff line change 77 * Contributors:
88 * Victor Olaya (Boundless) - initial implementation
99 */
10- package org .locationtech .geogig .cli ;
10+ package org .locationtech .geogig .cli . app ;
1111
1212import java .io .ByteArrayOutputStream ;
1313import java .io .File ;
1717import java .util .Iterator ;
1818import java .util .NoSuchElementException ;
1919
20+ import org .locationtech .geogig .cli .Console ;
21+ import org .locationtech .geogig .cli .GeogigCLI ;
2022import org .locationtech .geogig .model .impl .DefaultPlatform ;
2123import org .locationtech .geogig .repository .DefaultProgressListener ;
2224import org .locationtech .geogig .repository .ProgressListener ;
Original file line number Diff line number Diff line change 77 * Contributors:
88 * Gabriel Roldan (Boundless) - initial implementation
99 */
10- package org .locationtech .geogig .cli ;
10+ package org .locationtech .geogig .cli . app ;
1111
1212import java .io .File ;
1313import java .net .MalformedURLException ;
@@ -125,7 +125,7 @@ private static URL getOrCreateLoggingConfigFile(final File geogigdir) {
125125 }
126126 }
127127 ByteSource from ;
128- final URL resource = GeogigCLI .class .getResource ("logback_default.xml" );
128+ final URL resource = CLI .class .getResource ("logback_default.xml" );
129129 try {
130130 from = Resources .asByteSource (resource );
131131 } catch (NullPointerException npe ) {
File renamed without changes.
Original file line number Diff line number Diff line change 1- package org .locationtech .geogig .cli ;
1+ package org .locationtech .geogig .cli . app ;
22
33import static org .junit .Assert .assertFalse ;
44import static org .junit .Assert .assertTrue ;
55
66import org .junit .Before ;
77import org .junit .Test ;
8+ import org .locationtech .geogig .cli .Console ;
89
910public class ConsoleTest {
1011
Original file line number Diff line number Diff line change 77 * Contributors:
88 * Victor Olaya (Boundless) - initial implementation
99 */
10- package org .locationtech .geogig .cli ;
10+ package org .locationtech .geogig .cli . app ;
1111
1212import static org .junit .Assert .assertTrue ;
1313import static org .locationtech .geogig .cli .test .functional .TestFeatures .points1 ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public boolean isAnsiSupported() {
9292 return forceAnsi || (ansiEnabled && ansiSupported );
9393 }
9494
95- protected boolean checkAnsiSupported (OutputStream out , String osName ) throws Throwable {
95+ public boolean checkAnsiSupported (OutputStream out , String osName ) throws Throwable {
9696 if (out != System .out ) {
9797 return false ;
9898 }
You can’t perform that action at this time.
0 commit comments