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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 115
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: 5772
    
    7

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


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: return calculcatedValue to ant script from Java class
 
Similar Threads
Capture Ant build Failure in build.xml
Returning exit code to calling shell script
How to interact with bash?
arguments of System.exit()
Return value from main