ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: whitespace for javac task
Date Mon, 05 Jan 2004 10:56:19 GMT
JHead@ids.com.au wrote:
> I have a white space character in my source directory name.
...
>     <property name="src.dir" location="Java Source"/>
...
>         <javac  debug="on"
>                 classpathref="build.classpath"
>                 fork="true"
>                 srcdir="${src.dir}"
>                 destdir="${build.dir}/classes"/>
...
>     [javac] Compiling 1695 source files to C:\xxxxx\build\classes
>     [javac] javac: invalid flag: C:\xxxxx\Java
>     [javac] Usage: javac <options> <source files>

Definitely a bug in Ant, the arguments to a forked JVM should
be properly quoted. I can't seen a workaround unless you give
up forking.
It should work without forking though. Try this first.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message