[kepler-dev] [Bug 4983] cannot run kepler.sh in RC2

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Tue Jun 1 11:18:24 PDT 2010


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4983

--- Comment #10 from Christopher Brooks <cxh at eecs.berkeley.edu> 2010-06-01 11:18:23 PDT ---
Thanks for taking a look at this.
One issue is that by changing directories to the script directory,
starting java and then changing to the CUR_DIR is that
the Java process will have java.user.dir (or whatever it is)
set to the the script directory.

This would be confusing because if I start kepler.sh in a directory
and then do File|Open, I'll be in the Kepler script directory.

Most scripts, when invoked from a command line prompt, have
the current directory of the program be the directory in which the
script was invoked.

A fix would be to add SCRIPT_DIR to the classpath:

-classpath "${SCRIPT_DIR}/build-area/lib/ant.jar:${SCRIPT_DIR}kepler.jar"

Also, be sure to test your script in a directory that has spaces
in the path and a Kepler installation that has spaces in the path.

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list