File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Spring in Action this week in the Spring 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: 5836
    
    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