ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Writing new task: javani
Date Thu, 29 Apr 2010 05:53:17 GMT
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:voytechs@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.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@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:voytechs@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-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message