bmuschko / gradle-cargo-plugin

Gradle plugin that provides deployment capabilities to local and remote containers via Cargo
Apache License 2.0
258 stars 61 forks source link

How to: cargoUndeployRemote and not fail if webapp not deployed? #64

Closed jvsrvcs closed 10 years ago

jvsrvcs commented 11 years ago

If I call the 'cargoUndeployRemote' plugin but the webapp is not deployed the task fails. How do I put a message into Info (that "webapp is not deployed") but continue on with other tasks such that executing this task would be marked with a successful return value?


I want tasks to execute after the cargoUndeployRemote, using the --continue flag has no effect if I depend on the cargoUndeployRemote task to run before running other tasks.


bmuschko commented 10 years ago

Cargo by itself does not support this functionality. That's why the plugin does not support it out-of-the-box. If you are using Tomcat, you can build this yourself with the help of Tomcat's Ant tasks. Here's example code that does exactly that.