On 10/17/2014 01:58 AM, Eerste Laatste wrote:
> Tony, it works for me with the double quotes added as shown below:
> --------------------------------------------------------------
> #!/bin/sh
>
> . /usr/lib/java-wrappers/java-wrappers.sh
>
> MAIN=com.google.javascript.jscomp.CommandLineRunner
> JARS=closure-compiler
>
> find_java_runtime
> find_jars ${JARS}
> ###ORIGINAL: run_java ${MAIN} $@
> ###CHANGED:
> run_java ${MAIN} "$@"
> --------------------------------------------------------------
>
> (maybe for future safety, "${JARS}" and "${MAIN}" should be quoted too)Hi, Thanks for testing the idea. I have updated the wrapper script. In this case, I think JARS and MAIN are safe, as find_jars doesn't require quoting multiple args, and neither the jar names nor the classname should contain spaces. Thank you, tony
signature.asc
Description: OpenPGP digital signature

