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: How to do a custon task return a string
Date Thu, 26 Nov 2009 06:17:16 GMT

>let your task create a property via
>project.setNewProperty(String name, String value)
>for further use in your ant workflow.
>Create an attribute for that property and let the user decide
>how to name it, f.e.
>
><yourtask input="foo" outproperty="bar" ... />
>...
><echo> $${bar} == ${bar}</echo>
>
>
>Regards, Gilbert


http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html#ret
urning-list


Jan

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


Mime
View raw message