ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Mark Bram <relaxed...@optusnet.com.au>
Subject Include nested arg elements in my custom task
Date Thu, 01 Jul 2004 00:51:53 GMT
Hi All!

I want to include nested <arg> elements in my custom task:

<taskdef
        name="mytask"
        classname="common.ant.MyVeryOwnTask"
        classpath="lib/common.jar"/>

<target name="main">
   <mytask>
     <arg line="foo">
     <arg line="bar">
   </mytask>
</target>

I understand this means I need an add method in my Task subclass:
     public void add(Arg arg) {}
What class matches <arg> elements?

Within this add method, can I just get the arg value or is there something 
else related to Ant that needs to be done?

Any help would be most appreciated!

Rob
:)


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


Mime
View raw message