File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Preventing Ant to hang on a blocked thread

 
Satya Maheshwari
Ranch Hand
Posts: 368
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kris Schneider
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the spawn attribute on the <java> task and/or the <parallel> task...
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kris, spawn=true worked for me.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic