You can pass in a hint as a url parameter "file:/.../deploy/my.war?redeploy=true" so that the main deployer can set a flag in the deployment.

Jean-frederic Clere wrote:
On Fri, 2006-09-22 at 16:24 +0200, Sacha Labourey wrote:
What you are looking for is for what happens at line 391-392 here:

The problem is the URLDeploymentScanner uses the interface Deployer to
reach MainDeployer.
It is not possible to add a redeploy method to Deployer because that
would break the interface (may be customer have their own Deployer).
The undeploy method in Deployer is:
void undeploy(URL url) throws DeploymentException;
The information must be stored somewhere.

Any hints?