super.setUp();
ObjectName aspectManager = new ObjectName(ASPECT_MANAGER_NAME);
Attribute enableTransformer = new Attribute("EnableTransformer", Boolean.TRUE);
getServer().setAttribute(aspectManager, enableTransformer);
try
{
redeploy(jar);
}
catch(Exception e)
{
// Reset the EnableTransformer to false
try
{
enableTransformer = new Attribute("EnableTransformer", Boolean.FALSE);
getServer().setAttribute(aspectManager, enableTransformer);
}
catch(Exception ex)
{
getLog().error("Failed to set EnableTransformer to false", ex);
}
throw e;
}