You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ri...@apache.org on 2006/10/17 16:58:18 UTC

svn commit: r464938 - /incubator/tuscany/branches/sca-java-M2/sca/commands/launcher/src/main/java/org/apache/tuscany/launcher/MainLauncherBooter.java

Author: rineholt
Date: Tue Oct 17 07:58:15 2006
New Revision: 464938

URL: http://svn.apache.org/viewvc?view=rev&rev=464938
Log:
The default should be online if nothing specified.  make offline when specified a boolean true/false.
Should offline be something more like tuscany.offline?

Modified:
    incubator/tuscany/branches/sca-java-M2/sca/commands/launcher/src/main/java/org/apache/tuscany/launcher/MainLauncherBooter.java

Modified: incubator/tuscany/branches/sca-java-M2/sca/commands/launcher/src/main/java/org/apache/tuscany/launcher/MainLauncherBooter.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/sca/commands/launcher/src/main/java/org/apache/tuscany/launcher/MainLauncherBooter.java?view=diff&rev=464938&r1=464937&r2=464938
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/sca/commands/launcher/src/main/java/org/apache/tuscany/launcher/MainLauncherBooter.java (original)
+++ incubator/tuscany/branches/sca-java-M2/sca/commands/launcher/src/main/java/org/apache/tuscany/launcher/MainLauncherBooter.java Tue Oct 17 07:58:15 2006
@@ -25,6 +25,7 @@
 import java.net.URI;
 import java.net.URL;
 import java.net.URLClassLoader;
+import java.util.Properties;
 import java.util.ResourceBundle;
 import java.util.jar.JarFile;
 import java.util.jar.Manifest;
@@ -53,7 +54,8 @@
         File installDir = getInstallDirectory();
         URL baseUrl = installDir.toURI().toURL();
         File bootDir = getBootDirectory(installDir);
-        boolean online = System.getProperty("offline") != null; 
+        
+        boolean online = ! Boolean.parseBoolean(System.getProperty("offline", Boolean.FALSE.toString())); 
         StandaloneRuntimeInfo runtimeInfo = new StandaloneRuntimeInfoImpl(baseUrl, installDir, installDir, online);
 
         File applicationJar = new File(args[0]);



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org