aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes return calculcatedValue to ant script from Java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "return calculcatedValue to ant script from Java class" Watch "return calculcatedValue to ant script from Java class" New topic
Author

return calculcatedValue to ant script from Java class

Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi,

Using ant script, i am calling a java class with some arg1 and arg2. After that java class (execute method) calculate some value and value should return to ant script, (example return value is "123"), how can we achive this?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Have you read the <java> task in the Ant documentation? Did you notice the 'resultproperty' attribute? Or the 'output' attribute?


JBoss In Action
 
Don't get me started about those stupid light bulbs.
 
subject: return calculcatedValue to ant script from Java class