geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r703802 - in /geronimo/gshell/trunk/gshell-cli/src/main: java/org/apache/geronimo/gshell/cli/Main.java resources/org/apache/geronimo/gshell/cli/Main.properties
Date Sun, 12 Oct 2008 12:16:58 GMT
Author: jdillon
Date: Sun Oct 12 05:16:57 2008
New Revision: 703802

URL: http://svn.apache.org/viewvc?rev=703802&view=rev
Log:
Added -o|--offline flag

Modified:
    geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
    geronimo/gshell/trunk/gshell-cli/src/main/resources/org/apache/geronimo/gshell/cli/Main.properties

Modified: geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java?rev=703802&r1=703801&r2=703802&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
(original)
+++ geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Sun Oct 12 05:16:57 2008
@@ -183,6 +183,9 @@
         System.setProperty("jline.terminal", type);
     }
 
+    @Option(name="-o", aliases="--offline")
+    private boolean offline;
+
     public void boot(final String[] args) throws Exception {
         assert args != null;
 
@@ -221,6 +224,7 @@
             // Find our settings descriptor
             SettingsModel settingsModel = new SettingsModelLocator().
                     /*addLocation(settingsDescriptor).*/locate();
+            settingsModel.setOnline(!offline);
             builder.setSettingsModel(settingsModel);
 
             // Find our application descriptor

Modified: geronimo/gshell/trunk/gshell-cli/src/main/resources/org/apache/geronimo/gshell/cli/Main.properties
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-cli/src/main/resources/org/apache/geronimo/gshell/cli/Main.properties?rev=703802&r1=703801&r2=703802&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-cli/src/main/resources/org/apache/geronimo/gshell/cli/Main.properties
(original)
+++ geronimo/gshell/trunk/gshell-cli/src/main/resources/org/apache/geronimo/gshell/cli/Main.properties
Sun Oct 12 05:16:57 2008
@@ -57,4 +57,6 @@
 option.setTerminalType=Specify the terminal TYPE to use
 option.setTerminalType.token=TYPE
 
+option.offline=For artifact resolution to be offline
+
 warning.abnormalShutdown=WARNING: Abnormal JVM shutdown detected
\ No newline at end of file



Mime
View raw message