I need to stop, deploy my ear file and start Jboss server using the Ant tasks.
I am able to compile, build and deploy my J2EE application as an ear file into the JBoss server successfully using Ant tasks. We can see the redeployment of my application in the jboss console. I want to stop the server before deployment and start the server.
Is there any way to do this ?
Cargo supports ANT and is designed to support several J2EE containers
Here how you start/stop JBoss app container including deploy an application :
Hope this is helpful :)
The appropriate os independent answer would be something like this: