aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes query regarding Ant 'Exec' task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "query regarding Ant Watch "query regarding Ant New topic
Author

query regarding Ant 'Exec' task

Ravinderjit Singh
Ranch Hand

Joined: Jan 13, 2010
Posts: 78
Hi All,

I have prepare an Ant task to start the Tomcat Server, which is working fine.

But I never get the message like 'BUILD SUCCESSFUL' even when Server starts successfully.

Can you please let me know what should I add to get it?



Place the build.xml along with 'startup.bat' and run the ant script like

James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

You probably need
fork="true"
as an attribute of the exec .


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Ravinderjit Singh
Ranch Hand

Joined: Jan 13, 2010
Posts: 78
I have looked at the Ant Manual, Exec doesn't support 'fork' attribute.

But still I tried, its not working, may be I didn't get the right syntax.

James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

Ravinderjit Singh wrote:I have looked at the Ant Manual, Exec doesn't support 'fork' attribute.

But still I tried, its not working, may be I didn't get the right syntax.



Looks like the 'exec' task uses 'spawn' instead of 'fork'! Since I have never started Tomcat this way I can't guarantee this will work; it is just one of the things I would try first.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: query regarding Ant 'Exec' task