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
Marti
Petar Tahchiev schrieb am 14.07.2005 13:05:
You can always use the directive.
But how to add that directive programmatically (via instance of
org.apache.tools.ant.taskdefs.Javac)?
Regards,
Martin
-
To unsubscri
On 7/14/05, Martin Burger <[EMAIL PROTECTED]> 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
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 someth