jbe -data flag sometimes ignored?
I had a problem with my JBE invocation. I was invoking is as follows:
I am running as a non-root user $JBEUID, $DATADIR is a dir that this user can write to.
Yes, I had an error in the log telling me that jbe could not create its .metadata dir in the default (root-owned) location. So the -data option seemed ignored.
I restarted the same command with the -data option right after the repository option:
Now I see the .metadata being created in the right place in $DATADIR.
This test seems to show that -data is ignored if its the last parameter. Can someone please reproduce this test?
Thank you,
--Fred Mora
/jbe -vm /opt/IBM/RTC_Client/jazz/client/eclipse/jdk/bin/java \
-repository https://$BUILDHOST/jazz -userId $JBEUID \
-passwordFile jbepass.txt -engineId buildengine2 \
-sleeptime 5 \
-data $DATADIR
I am running as a non-root user $JBEUID, $DATADIR is a dir that this user can write to.
Yes, I had an error in the log telling me that jbe could not create its .metadata dir in the default (root-owned) location. So the -data option seemed ignored.
I restarted the same command with the -data option right after the repository option:
/jbe -vm /opt/IBM/RTC_Client/jazz/client/eclipse/jdk/bin/java \
-repository https://$BUILDHOST/jazz -userId $JBEUID \
-data $DATADIR \
-passwordFile jbepass.txt -engineId buildengine2 \
-sleeptime 5
Now I see the .metadata being created in the right place in $DATADIR.
This test seems to show that -data is ignored if its the last parameter. Can someone please reproduce this test?
Thank you,
--Fred Mora
One answer
I'm unable to reproduce the problem (using JBE from RTC 2.0.0.1 on Windows XP). The command line I'm using is:
The workspace .metadata directory gets created under c:\temp\workspace as expected.
jbe -vm c:\rtc-2.0.0.1\jazz\client\eclipse\jdk\bin\java -repository https://jazzdev.torolab.ibm.com:9443/jazz
-userId nedgar -pass <mypassword> -engineId engine1 -sleepTime 5 -data c:\temp\workspace
The workspace .metadata directory gets created under c:\temp\workspace as expected.