ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: compilearg
Date Wed, 20 Jun 2012 14:44:13 GMT
On Mon, Jun 18, 2012 at 3:43 AM, Michael Tabak <> 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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message