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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
