Bug#765563: closure-compiler: does not work when there are spaces in the path/name of the JavaScript file

tony mancill tmancill at debian.org
Mon Oct 20 00:38:05 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20141019/a175df46/attachment.sig>


More information about the pkg-java-maintainers mailing list