Author: jm
Date: 2012-10-03 12:38:39 -0700 (Wed, 03 Oct 2012)
New Revision: 30600
Modified:
core3/gui-distribution/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
Log:
References #1495: Launcher now attempts to create Karaf lock/data directories
if they don't already exist.
Modified:
core3/gui-distribution/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
===================================================================
---
core3/gui-distribution/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
2012-10-03 19:33:29 UTC (rev 30599)
+++
core3/gui-distribution/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
2012-10-03 19:38:39 UTC (rev 30600)
@@ -1,5 +1,7 @@
package org.cytoscape.launcher.internal;
+import java.io.File;
+
import org.apache.karaf.main.Main;
public class Launcher {
@@ -7,9 +9,16 @@
public static void main(String[] args) throws Exception {
startupArguments = args;
+ createConfigurationDirectory();
Main.main(args);
}
+ private static void createConfigurationDirectory() {
+ String userHome = System.getProperty("user.home");
+ File karafData = new File(userHome, String.format("%s%s%s",
"CytoscapeConfiguration", File.separator, "3"));
+ karafData.mkdirs();
+ }
+
public static String[] getStartupArguments() {
String[] result = new String[startupArguments.length];
System.arraycopy(startupArguments, 0, result, 0,
startupArguments.length);
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.