You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by James Black <jb...@ieee.org> on 2004/01/26 14:33:59 UTC
re: how to add java arguments to javac
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.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to add java arguments to javac
Posted by James Black <jb...@ieee.org>.
Peter Reilly wrote:
> Use fork = yes and nested compiler args:
>
> <javac srcdir="src" destdir="classes" fork="yes">
> <compilerarg value="-Xstdout"/>
> <compilerarg value="x.out"/>
> </javac>
Thank you, that worked. <g>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to add java arguments to javac
Posted by Peter Reilly <pe...@corvil.com>.
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
re: how to add java arguments to javac
Posted by Rudolf Nottrott <rn...@alexandria.UCSB.edu>.
Try
...
<java classname="..." fork="true" failonerror="true">
<arg value="- arguments"/>
...
Multiple <arg tags are possible.
R.
At 08:33 AM 1/26/2004 -0500, you 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.
>
> 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