If you are running on Windows, use "start" for your executable name. I'm not sure how to exactly do this with the correct syntax for the exec task, but for example:
start java -jar foo.jar Will return immediately, doing what you expect. On unix, depending on the shell naturally, you can append "&" and it will be a forked process. Hope this helps. ----- Original Message ----- From: "Ravi Dodla" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 4:34 PM Subject: Running executables asynchronously using exec > Hello, > I need to startup and shutdown the JBoss Server as part of my ant scripts .. > > I have scripts start.bat and shut.bat in the jboss/bin dir that do that work > .. > > I am using exec to call these scripts ... but the problem is that exec > doesnt have a fork equivalent and thus > the appserver runs as part of the Ant process .. > > Can anyone sujjest a way for me do this asynchronously .. > > I am using ant 1.4 only .. > > Ravi > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>