I am writing a build script that would redeploy a war file at the end of
the build.

 

If I use DeployTask and the application was already deployed from a
previous build, I get an error.

 

If I use UndeployTask first and the application is not already deployed
(which would happen the first time somebody runs the script on their
machine or if there's a failure between calls to UndeployTask and
DeployTask), I get an error.

 

I would like the script to be robust enough that it doesn't require the
user to do more than install Tomcat (and my distro, natch) on their
machine.

 

I thought ListTask useful, here, but I've read through the docs and
could not figure out how to capture the output for parsing (so I could
check whether this particular application is already deployed).

 

Any thoughts would be helpful,

Bill

Reply via email to