To turn your adapter into a "task" you could do a presetdef then:
<presetdef name="javani"> <javah implementation="org.jnetsoft.ant.JavaNITask"/> </presetdef> <javani destdir="${javah.dest.dir}" ... /> Jan >-----Ursprüngliche Nachricht----- >Von: Mark Bednarczyk [mailto:voyte...@yahoo.com] >Gesendet: Mittwoch, 28. April 2010 12:52 >An: 'Ant Developers List' >Betreff: RE: Writing new task: javani > >Yes I just looked at it. It provides a JavahAdapter and I can >plug my code >in very easily into it using 'implementation' parameter. > > <javah destdir="${javah.dest.dir}" > implementation="org.jnetsoft.ant.JavaNITask" > classpathref="javah.classpath" > force="${javah.force}" > verbose="${javah.verbose}" > class="${javah.class.list}" > /> > >Which invokes JavaNITask and passes up all the declared parameters, >including a list of classfile names. Right now the task can work as >standalone task, or as a implementation adapter to javah. Either way it >works fine. > >This is better and easier then I expected it be. > >Cheers, >mark. > >> -----Original Message----- >> From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] >> Sent: Wednesday, April 28, 2010 6:35 AM >> To: dev@ant.apache.org >> Subject: AW: Writing new task: javani >> >> If you have much in common with javah, you should have a look >> at <javah> task. >> http://ant.apache.org/manual/OptionalTasks/javah.html >> >> Maybe you could reuse some of its code. >> >> >> Jan >> >> >-----Ursprüngliche Nachricht----- >> >Von: Mark Bednarczyk [mailto:voyte...@yahoo.com] >> >Gesendet: Mittwoch, 28. April 2010 10:49 >> >An: Materne, Jan (RZF); dev@ant.apache.org >> >Betreff: RE: Writing new task: javani >> > >> >Hi Jan, >> > thanks for pointing that out. >> > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org >For additional commands, e-mail: dev-h...@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org