It is more (much more) likely to be a bug with
java - exec for windows.
It has  problems with quoting/not quoting for
windows crazy CreateProcess cmd parameter.
This raises differences between unix and windows
view of paramaters in java.lang.Runtime#exec().

Removal of the fork attribute should work.

Peter
J.Pietschmann wrote:

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





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to