We're updating the issue view to help you get more done. 

Set the "file" attribute of the deployable element as optional when undeploying

Description

I have limited experience with Cargo and Cargo Ant tasks, but for what I've
understood, when doing a undeploy of a webapp in a tomcat container, Cargo
Ant Extension forces the need to provide a .WAR file that needs to exist.
It seems that Cargo Core don't do any validation on the existence of the WAR
file
(http://old.nabble.com/How-to-undeploy-without-the-WAR-deployable-using-java-api--td34044565.html#a34044565),
but Cargo Ant Extension does.

1 2 3 4 5 Caused by: : The [file] attribute is mandatory at org.codehaus.cargo.ant.DeployableElement.createDeployable(DeployableElement.java:107) at org.codehaus.cargo.ant.CargoTask.executeActions(CargoTask.java:615) at org.codehaus.cargo.ant.CargoTask.execute(CargoTask.java:531) (...)

In my understanding, when undeploying a webapp, only context needs to be
provided, not the WAR file, right?

Thanks

Status

Assignee

Savas Ali Tokmen

Reporter

Savas Ali Tokmen

Components

Fix versions

Priority

Minor