IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes Error code _from_ ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Error code _from_ ANT" Watch "Error code _from_ ANT" New topic
Author

Error code _from_ ANT

Rajarshi Gupta
Greenhorn

Joined: Dec 15, 2003
Posts: 2
Hi,
I am trying to execute an ANT build.xml file from within a PERL script. I would like the ANT process to return an error code if there is a problem somewhere in its execution.
I have tried "haltonerror" etc. But these error codes remain within the ANT process, and the process does not exit back to the outer PERL process.
Any help will be very much appreciated. Thanks !
P.S: Just want to say hi, since I am new to this message board
Moody Hopkins
Greenhorn

Joined: Nov 24, 2003
Posts: 10
I am having the same problem. I want to capture ant failures in the batch file or shell script I use to call ant.

Does ant expose the error code to the outer envirnoment?
 
 
subject: Error code _from_ ANT
 
Threads others viewed
Perl clients for Java web services
Error code _from_ ANT
Calling Ant From Java
Urgent: Calling perl from Java
calling perl program thru Ant task
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com