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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]