Author: paperwing
Date: 2012-07-12 08:48:56 -0700 (Thu, 12 Jul 2012)
New Revision: 29857
Modified:
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/manager/AppManager.java
Log:
Added temporary fix to let app-impl start even if failed to obtain Karaf
directory
Modified:
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/manager/AppManager.java
===================================================================
---
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/manager/AppManager.java
2012-07-12 09:15:31 UTC (rev 29856)
+++
core3/impl/trunk/app-impl/src/main/java/org/cytoscape/app/internal/manager/AppManager.java
2012-07-12 15:48:56 UTC (rev 29857)
@@ -546,8 +546,16 @@
public String getKarafDeployDirectory() {
- String current =
System.getProperties().get("cytoscape.home").toString();
+ Object property = System.getProperties().get("cytoscape.home");
+ // Temporary fix -- will still allow app-impl to start even if
failed to obtain Karaf deploy directory
+ if (property == null) {
+ File tempPath = new File(getDownloadedAppsPath() +
File.separator + "temp");
+ tempPath.mkdirs();
+ return tempPath.getAbsolutePath();
+ }
+
+ String current = property.toString();
String deployDirectoryPath = current + File.separator +
"framework"
+ File.separator + "deploy";
--
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.