aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Preventing Ant to hang on a blocked thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Preventing Ant to hang on a blocked thread" Watch "Preventing Ant to hang on a blocked thread" New topic
Author

Preventing Ant to hang on a blocked thread

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Hi
I have requirement in which, I first launch a program using ant java task and then I have to launch another program. The problem is that the first program is a sort of a very simple server which blocks till the second program(a client) is launched.
When I do this through ant, it hangs on the first java task itself and does not proceed to the next task. I tried setting fork=true but that did not help.
Please help out


Thanks and Regards
Kris Schneider
Ranch Hand

Joined: Feb 14, 2001
Posts: 71
Take a look at the spawn attribute on the <java> task and/or the <parallel> task...
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Thanks Kris, spawn=true worked for me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Preventing Ant to hang on a blocked thread
 
Similar Threads
Ant is running an out-of-date task class -- why?
ANT failed Optional XMLValidate task
wondering how to launch tomcat from ant without ant freezing up.
Parallel Task
Apache Ant: How to check if java task has finished