Niclas Hedhman wrote:

Next thing...

RUN_CMD="\"$JAVA\" \"-Djava.security.policy=$MERLIN_HOME/bin/security.policy\" \"-Djava.ext.dirs=$MERLIN_HOME/ext\" -jar \"$MERLIN_HOME/bin/lib/merlin-cli-3.2.jar\" \"[EMAIL PROTECTED]""
echo "RUN CMD IS: $RUN_CMD"
exec $RUN_CMD



does not work on my system.


[EMAIL PROTECTED] merlin-home]$ sh ./merlin/bin/merlin.sh tutorial/hello/target/hello-1.1.jar
RUN CMD IS: "/java/jdk/bin/java" "-Djava.security.policy=/home/niclas/dev/merlin-home/merlin/bin/security.policy" "-Djava.ext.dirs=/home/niclas/dev/merlin-home/merlin/ext" -jar "/home/niclas/dev/merlin-home/merlin/bin/lib/merlin-cli-3.2.jar" "tutorial/hello/target/hello-1.1.jar"
./merlin/bin/merlin.sh: line 47: /home/niclas/dev/merlin-home/"/java/jdk/bin/java": No such file or directory
./merlin/bin/merlin.sh: line 47: exec: /home/niclas/dev/merlin-home/"/java/jdk/bin/java": cannot execute: No such file or directory


The "stuff"added in front of "/java/jdk/bin/java", is because the \" is interpreted to be part of the filename, hence a relative name...

Without the \" it works more like expected.

Now I assume that was probably added to support CygWin or perhaps Solaris...
Maybe there is an issue with spaces in the directory names, which I know is hard to get to terms with in shell scripts.



This is a result of my changes to support CygWin applied yesterday - and I'm not suprised there is a problem because (a) I can't test it here, and (b) I don't know the script language. If its not immediately apparent what the probnlem is that I can revert to the scripts before the CygWin mods (which work fine).


Stephen.



but it is broken on my RedHat 9.0 system.



Niclas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to