ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <>
Subject [PATCH] javacc task and Execute class
Date Thu, 28 Sep 2000 12:23:54 GMT


A few changes:

- The JavaCC task writes the output files to the directory containing the
grammar file, if the outputdirectory attribute is not used.  It used to
write them to the current working directory.

- Some rough documentation for the javacc task

- A fix to the Execute class.  Under JDK 1.1 on Windows Runtime.exec() does
not properly quote arguments that contain spaces.  The other JDK's do.  So,
the Execute class now quotes arguments that need it, when running in JDK 1.1
on Windows.  This also required a small fix to antRun.bat so that it can
handle quoted arguments.  I've run these changes on Win 2000 and 98 with
JDKs 1.3, 1.2.2, 1.1.8 and the MS JVM.  Seems fine.  I've also run with
Sun's JDK1.3 and Blackdown JDK 1.1.8 on Redhat 6.2.

There remains a problem with quotes and trailing '\' in quoted arguments -
these need to be escaped.  I'll get round to fixing this soon.

Not sure how to 'cvs diff' a new file, so I've attached it separately.


View raw message