<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Tony, it works for me with the double quotes added as shown below:</div><div><span style="font-size: 12pt;">--------------------------------------------------------------</span></div><div>#!/bin/sh</div><div><br></div><div>. /usr/lib/java-wrappers/java-wrappers.sh</div><div><br></div><div>MAIN=com.google.javascript.jscomp.CommandLineRunner</div><div>JARS=closure-compiler</div><div><br></div><div>find_java_runtime</div><div>find_jars ${JARS}</div><div>###ORIGINAL: run_java ${MAIN} $@</div><div>###CHANGED:</div><div>run_java ${MAIN} "$@"</div><div><div>--------------------------------------------------------------</div></div><div><div><br></div><div>(maybe for future safety, "${JARS}" and "<span style="font-size: 12pt;">${MAIN}" should be quoted too)</span></div></div><div><span style="font-size: 12pt;"><br></span></div><br /><br /><div><hr id="stopSpelling">From: hoekbank@hotmail.com<br>To: tmancill@debian.org; 765563@bugs.debian.org<br>Subject: RE: Bug#765563: closure-compiler: does not work when there are spaces in the path/name of the JavaScript file<br>Date: Fri, 17 Oct 2014 08:37:44 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir=ltr><div><span style="font-size:12pt;">Thanks for your efforts Tony !</span></div><div><br></div><div>It seems to be the wrapper, i get this using upstream jar, Debian jar , Debian wrapper:</div><div><br></div><div><span style="font-size:12pt;">$ java -jar compiler.jar --warning_level VERBOSE --jscomp_warning=checkTypes --compilation_level SIMPLE_OPTIMIZATIONS --js="file with spaces.js" --js_output_file=/tmp/compiled.js</span></div><div><font size=3>$ </font><span style="font-size:12pt;">java -jar</span><span style="font-size:12pt;"> </span><span style="font-size:12pt;">/usr/share/java/closure-compiler.jar</span><font style="font-size:12pt;"> --warning_level VERBOSE --jscomp_warning=checkTypes --compilation_level SIMPLE_OPTIMIZATIONS --js="file with spaces.js" --js_output_file=/tmp/compiled.js</font></div><div>$ closure-compiler <span style="font-size:12pt;">--warning_level VERBOSE --jscomp_warning=checkTypes --compilation_level SIMPLE_OPTIMIZATIONS --js="file with spaces.js" --js_output_file=/tmp/compiled.js</span></div><div><div>ERROR - Cannot read: file</div><div><br></div><div>ERROR - Cannot read: spaces.js</div><div><br></div><div>ERROR - Cannot read: with</div><div><br></div><div>3 error(s), 0 warning(s)</div></div><div><span style="font-size:12pt;">$</span></div><div><span style="font-size:12pt;"><br></span></div><br><br><div>> Date: Thu, 16 Oct 2014 21:04:41 -0700<br>> From: tmancill@debian.org<br>> To: hoekbank@hotmail.com; 765563@bugs.debian.org<br>> Subject: Re: Bug#765563: closure-compiler: does not work when there are spaces in the path/name of the JavaScript file<br>> <br>> On 10/16/2014 02:39 AM, Eerste Laatste wrote:<br>> > Package: closure-compiler<br>> > Version: 20130227+dfsg1-6<br>> > Severity: normal<br>> > <br>> > Dear Maintainer,<br>> > <br>> > Using closure-compiler fails when there are spaces in the path/name of a<br>> > JavaScript file even when specifying them like:<br>> > <br>> > "/path name with spaces/and or/script name with spaces.js"<br>> >     or<br>> > '/path name/with spaces/and or/script name with spaces.js'<br>> >     or<br>> > /path\ name/with\ spaces/and\ or/script\ name\ with\ spaces.js<br>> <br>> Hi Eerste,<br>> <br>> Thank you for the bug report.  I'll have to take a look to see if might<br>> be an issue with the wrapper script (as opposed to an upstream issue).<br>> <br>> Cheers,<br>> tony<br>> <br>> <br></div>                                          </div></div>                                        </div></body>
</html>