On Mon, Jun 18, 2012 at 3:43 AM, Michael Tabak <michael_ta...@yahoo.com> wrote: > I'm running Ant 1.8.2. I have a line in my build file to override the > destination directory: > <target name="compile"> > <javac includeantruntime="false" srcdir="${src}" destdir="${build}" > > <compilerarg compiler="modern" value="-d output1.6" /> > </javac> > </target> > > This is in my compile target. If I replace "-d output1.6" with -version or > -verbose, the command works, but if I use > something like -cp . or -d output I get a "[javac] invalid flag: -d > output1.6" and the build fails.
try with line="..." instead of value="...". @value expects a single argument (possibly with embedded whitespace), while @line splits its content around whitespace to pass one or more arguments. --DD See http://ant.apache.org/manual/using.html#arg --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org