Author: slotia
Date: 2012-07-11 15:06:24 -0700 (Wed, 11 Jul 2012)
New Revision: 29843

Modified:
   core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh
Log:
Added System property of the absolute path location to the Cytoscape directory

Modified: core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh
===================================================================
--- core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh     
2012-07-11 21:27:18 UTC (rev 29842)
+++ core3/gui-distribution/trunk/assembly/src/main/bin/cytoscape.sh     
2012-07-11 22:06:24 UTC (rev 29843)
@@ -32,11 +32,16 @@
                export JAVA_MAX_MEM=1550M
 fi
 
+# The Cytoscape home directory contains the "framework" directory
+# and this script.
+CYTOSCAPE_HOME_REL=`dirname "$0"`
+CYTOSCAPE_HOME_ABS=`cd "$CYTOSCAPE_HOME_REL"; pwd`
+
 PWD=$(pwd) 
 # The user working directory needs to be explecitly set in -Duser.dir to 
current
 # working directory since KARAF changes it to the framework directory. There
 # might unforeseeable problems with this since the reason for KARAF setting 
the 
 # working directory to framework is not known.
-export KARAF_OPTS="-Xss10M -Duser.dir=$PWD -splash:CytoscapeSplashScreen.png 
$CYTOSCAPE_MAC_OPTS"
+export KARAF_OPTS=-Xss10M\ -Duser.dir="$PWD"\ 
-Dcytoscape.home="$CYTOSCAPE_HOME_ABS"\ -splash:CytoscapeSplashScreen.png\ 
"$CYTOSCAPE_MAC_OPTS"
 
 $script_path/framework/bin/karaf "$@"

-- 
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.

Reply via email to