ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: how to add java arguments to javac
Date Mon, 26 Jan 2004 14:23:13 GMT
James Black wrote:

>  Since the site is down I can't look at the manual for ant 1.6.
>
>  How do I add arguments to the javac command? I want to add a -X 
> option, but have no idea how to get this to work in ant.

Use fork = yes and nested compiler args:

    <javac srcdir="src" destdir="classes" fork="yes">
      <compilerarg value="-Xstdout"/>
      <compilerarg value="x.out"/>
    </javac>

Peter

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


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


Mime
View raw message