ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petar Tahchiev" <paranoia...@gmail.com>
Subject Re: ant task
Date Sat, 29 Jul 2006 06:25:31 GMT
On 29/07/06, satheesh <tsatheeskumar@yahoo.co.uk> wrote:
>
> I have written a java class which will add two values and print it in the
> console and I called that class in ant as mentioned below,
> how can I get that value (or returned that value from class) back to ant
> target or the property tag
>
> <taskdef name="adder" classname="net.wyeast.ant.Add"/>
>
> <target name="main">
>  <adder op1="23" op2="77"/>
> <target>
>
> What's the solution for this proble?
>
> Thanks,
> satheesh
>
>
> --
> View this message in context: http://www.nabble.com/ant-task-tf2018649.html#a5550504
> Sent from the Ant - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
You could simply add a new property, which has the result for its
value. This is done by the following:

getProject().setNewProperty(property, value);

in your task's java code.

-- 
Regards, Petar!
Karlovo, Bulgaria.

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


Mime
View raw message