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 How to make command to return to my ant build file 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 "How to make command to return to my ant build file" Watch "How to make command to return to my ant build file" New topic
Author

How to make command to return to my ant build file

Anselm Paulinus
Ranch Hand

Joined: Sep 05, 2003
Posts: 389
Have an ant file with a <exec> task; command does not return to my build file after executing the <exec> task. What do I do to to get the command back to my build file?
Thanks in advance.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Set spawn="true" in the exec task :
<exec spawn="true" ...


[My Blog]
All roads lead to JavaRanch
Rajesh Nagaraju
Ranch Hand

Joined: Nov 27, 2003
Posts: 50
I had the same problem in my previous project, where I had to start a server, the spawn did not work.. I had a simple work around, I had a shell script that would run the process, all my ant script did was to execute this shell scripts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make command to return to my ant build file
 
Similar Threads
Starting and Stopping Tomcat Server Using Ant Script
Rather simple ant question
How to use ct command with ANT in Unix Environment
Trouble launching ant exec task
Running dos commands from ant