ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@apache.org>
Subject Re: Using task Javac programmatically - how to add compilerarg line
Date Thu, 14 Jul 2005 12:12:07 GMT
You have to think like Ant. Ant looks for addXXX and createXXX methods.
So look in Javac.java and you will find:

public ImplementationSpecificArgument createCompilerArg()

So call that and then configure the resulting object - i.e call
setValue(), setLine(), whatever you want to do.

Conor


Martin Burger wrote:
> Petar Tahchiev schrieb am 14.07.2005 13:05:
> 
>> You can always use the <compilerarg> directive.
>> <javac srcdir="...." destdir="......">
>> <compilerarg compiler="....." line="....."/>
>> </javac>
>>  
>>
> 
> 
> But how to add that directive programmatically (via instance of
> org.apache.tools.ant.taskdefs.Javac)?
> 
> Regards,
>    Martin
> 
> 
> ---------------------------------------------------------------------
> 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