ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: AntUnit
Date Wed, 28 Jan 2009 12:21:34 GMT
>> How can I run antunit with custom ant listeners enabled?
>
>A "custom Ant listener" is a class implementing
>org.apache.ant.antunit.AntUnitListener?
>
>If so, use <typedef> to give a symbolic name to your custom listener,
>say
>
><typedef name="customListener"
>         classname="my.custom.Listener"/>
>
>and maybe throw in classpath attributes and an uri.
>
>After that, you attach it to AntUnit via
>
><au:antunit ...>
>  <customListener/>
></au:antunit>
>
>If your custom listener needs configuration you can use setter and add
>methods and ant will translate them into attributes and nested
>elements just like it does for any other task and type, see
>file:///C:/OSS/ant/docs/manual/develop.html#writingowntask


Because I am sure you dont have access to Stefans computer, here the
official link ;-)
http://ant.apache.org/manual/develop.html#writingowntask


Jan

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


Mime
View raw message