Michal, <div><br></div><div>This change looks fairly innocuous and seems to be a reasonable change. Thanks.  Please let us know how your testing against trunk goes, and if it goes well, it seems reasonable to commit it so that it can be part of the Kepler 2.4 release.</div>
<div><br></div><div>Matt<br><br><div class="gmail_quote">On Thu, May 24, 2012 at 3:25 AM, Michal Owsiak <span dir="ltr"><<a href="mailto:michal.owsiak@man.poznan.pl" target="_blank">michal.owsiak@man.poznan.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Kepler team,<br>
<br>
it looks like Kepler has a bug in Run.java file.<br>
<br>
In this description I refer to Kepler 2.2 - as I have patch for this version.<br>
<br>
At the moment it is not possible to spawn Kepler with custom HOME location. This is due to bug in file:<br>
<br>
./build-area/src/org/kepler/<u></u>build/Run.java<br>
<br>
Inside this file new Java process is spawn. However, user.home property is not correctly passed to this sub-process. That means, even though user executes Kepler following way:<br>
<br>
java -D"user.home"="$USER_HOME/<u></u>kepler_local" -classpath $KEPLER/build-area/lib/ant.<u></u>jar:$KEPLER/kepler.jar org.kepler.build.runner.Kepler<br>
<br>
these settings are not passed to new process and new Java process uses original $HOME location instead of location specified by -Duser.home - in that case<br>
<br>
-D"user.home"="$USER_HOME/<u></u>kepler_local"<br>
<br>
To make it possible to run Kepler in custom HOME locations, one must update Run.java with the patch attached to the e-mail.<br>
<br>
As soon as I test this solution for trunk version I will post the message to the group with proper patch.<br>
<br>
Why this bug exists:<br>
<br>
Java Virtual Machine doesn't use $HOME environment variable to set user.home. Instead it gets it from system directly. Each new Java Virtual Machine must be provided with user.home variable set in order to change default settings.<br>

<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
<br>
Michal<br>
<br>
-- <br>
Michal Owsiak <<a href="mailto:michal.owsiak@man.poznan.pl" target="_blank">michal.owsiak@man.poznan.pl</a>><br>
<br>
Institute of Bioorganic Chemistry PAS<br>
Poznan Supercomputing and Networking Center<br>
Noskowskiego 12/14, 61-704 Poznan, POLAND<br>
<br>
<a href="http://www.man.poznan.pl" target="_blank">http://www.man.poznan.pl</a><br>
</font></span><br>_______________________________________________<br>
Kepler-dev mailing list<br>
<a href="mailto:Kepler-dev@kepler-project.org">Kepler-dev@kepler-project.org</a><br>
<a href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev" target="_blank">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev</a><br>
<br></blockquote></div><br></div>