ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: whitespace for javac task
Date Wed, 07 Jan 2004 08:50:14 GMT
On Mon, 05 Jan 2004, J. Pietschmann <j3322ptm@yahoo.de> wrote:

> Definitely a bug in Ant, the arguments to a forked JVM should
> be properly quoted.

Hmm, you are shooting too fast. 8-)

Ant uses the String[] version of exec to pass arguments, so they
shouldn't need to be quoted at all.

In the javac case, filenames are written to a file and read back from
there, so this is a little bit different - in particular since javac
knows the filenames are to be read one per line.  Unfortunately the
last part of that sentence is only true for JDK < 1.4 as the @filelist
has been turned into @arglist in JDK 1.4.x and the rules have changed.

Ant 1.5.x (maybe just < 1.5.2, not sure) has not been aware of the
change in the rules.  I'd suggest trying Ant 1.6.0 before giving up on
forked javac.

Stefan

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


Mime
View raw message