ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <paranoia...@gmail.com>
Subject Re: Using task Javac programmatically - how to add compilerarg line
Date Thu, 14 Jul 2005 11:05:36 GMT
On 7/14/05, Martin Burger <m@rtin-burger.de> wrote:
> 
> Hello!
> 
> I want to use the Javac task programmatically. After getting my feet wet
> while reading a lot of source code I managed to set all attributes and
> execute the task successfully - expect one:
> 
> How can I add a compilerarg line to the Javac task? I haven't found a
> proper method to add something like an instance of Commandline.Argument
> to a Javac instance.
> 
> Can you help, please?
> 
> Regards,
> Martin
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
You can always use the <compilerarg> directive.
<javac srcdir="...." destdir="......">
<compilerarg compiler="....." line="....."/>
</javac>

-- 
Regards, Petar!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message