I have a file in C: \ Bin \ test.js that I would like to compress and rename test-min.js
my ant build.xml is as follows:
<property name="temp.dir" value="C:\Bin\"/> <apply executable="java" parallel="false" dest="${temp.dir}"> <fileset dir="${temp.dir}" includes="test.js"/> <arg line="-jar"/> <arg path="${yui.dir}"/> <srcfile/> <arg line="-o"/> <mapper type="glob" from="*.js" to="*-min.js"/> <targetfile/> </apply>
I get the following Java error:
[apply] java.io.FileNotFoundException: Bintest-min.js: \ Bin \ test.js ( invalid file name, directory or volume name)
I tried every combination of paths and file names that I could think of. What am I missing? It looks like it removes C: \ and the second \
And I know that YUI works because I can do it manually from the command line.
source share