Skip to content

Commit

Permalink
Refactor cli-app package to be ...geogig.cli.app
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Roldan <[email protected]>
  • Loading branch information
Gabriel Roldan committed Dec 16, 2016
1 parent f868636 commit e61c85a
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/cli-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@
</platforms>
<programs>
<program>
<mainClass>org.locationtech.geogig.cli.CLI</mainClass>
<mainClass>org.locationtech.geogig.cli.app.CLI</mainClass>
<name>geogig</name>
</program>
<!--program>
<mainClass>org.locationtech.geogig.cli.GeogigConsole</mainClass>
<name>geogig-console</name>
</program-->
<program>
<mainClass>org.locationtech.geogig.cli.GeogigPy4JEntryPoint</mainClass>
<mainClass>org.locationtech.geogig.cli.app.GeogigPy4JEntryPoint</mainClass>
<name>geogig-gateway</name>
</program>
</programs>
Expand All @@ -146,7 +146,7 @@
<finalName>geogig</finalName>
<archive>
<manifest>
<mainClass>org.locationtech.geogig.cli.CLI</mainClass>
<mainClass>org.locationtech.geogig.cli.app.CLI</mainClass>
</manifest>
</archive>
<descriptors>
Expand All @@ -161,7 +161,7 @@
<finalName>geogig</finalName>
<archive>
<manifest>
<mainClass>org.locationtech.geogig.cli.CLI</mainClass>
<mainClass>org.locationtech.geogig.cli.app.CLI</mainClass>
</manifest>
</archive>
<descriptors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
* Contributors:
* Gabriel Roldan (Boundless) - extract main() method from GeoGigCLI
*/
package org.locationtech.geogig.cli;
package org.locationtech.geogig.cli.app;

import org.locationtech.geogig.cli.CLIContextBuilder;
import org.locationtech.geogig.cli.Console;
import org.locationtech.geogig.cli.GeogigCLI;
import org.locationtech.geogig.porcelain.ConfigOp;
import org.locationtech.geogig.porcelain.ConfigOp.ConfigAction;
import org.locationtech.geogig.porcelain.ConfigOp.ConfigScope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Contributors:
* Victor Olaya (Boundless) - initial implementation
*/
package org.locationtech.geogig.cli;
package org.locationtech.geogig.cli.app;

/**
* An interface for progress listener for the Py4j entry point.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Contributors:
* Victor Olaya (Boundless) - initial implementation
*/
package org.locationtech.geogig.cli;
package org.locationtech.geogig.cli.app;

import java.io.ByteArrayOutputStream;
import java.io.File;
Expand All @@ -17,6 +17,8 @@
import java.util.Iterator;
import java.util.NoSuchElementException;

import org.locationtech.geogig.cli.Console;
import org.locationtech.geogig.cli.GeogigCLI;
import org.locationtech.geogig.model.impl.DefaultPlatform;
import org.locationtech.geogig.repository.DefaultProgressListener;
import org.locationtech.geogig.repository.ProgressListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Contributors:
* Gabriel Roldan (Boundless) - initial implementation
*/
package org.locationtech.geogig.cli;
package org.locationtech.geogig.cli.app;

import java.io.File;
import java.net.MalformedURLException;
Expand Down Expand Up @@ -125,7 +125,7 @@ private static URL getOrCreateLoggingConfigFile(final File geogigdir) {
}
}
ByteSource from;
final URL resource = GeogigCLI.class.getResource("logback_default.xml");
final URL resource = CLI.class.getResource("logback_default.xml");
try {
from = Resources.asByteSource(resource);
} catch (NullPointerException npe) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package org.locationtech.geogig.cli;
package org.locationtech.geogig.cli.app;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Before;
import org.junit.Test;
import org.locationtech.geogig.cli.Console;

public class ConsoleTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Contributors:
* Victor Olaya (Boundless) - initial implementation
*/
package org.locationtech.geogig.cli;
package org.locationtech.geogig.cli.app;

import static org.junit.Assert.assertTrue;
import static org.locationtech.geogig.cli.test.functional.TestFeatures.points1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public boolean isAnsiSupported() {
return forceAnsi || (ansiEnabled && ansiSupported);
}

protected boolean checkAnsiSupported(OutputStream out, String osName) throws Throwable {
public boolean checkAnsiSupported(OutputStream out, String osName) throws Throwable {
if (out != System.out) {
return false;
}
Expand Down

0 comments on commit e61c85a

Please sign in to comment.