contextPath = contextPath.substring(0, warIndex);
}
}
else
{
EarArchive ear = new EarArchive(this.earFile);
String webUri = getUriOfCactifiedWebModule(ear);
if (webUri == null)
{
throw new BuildException("Could not find cactified web "
+ "module in the EAR");
}
war = ear.getWebModule(webUri);
if (war == null)
{
throw new BuildException("Could not find the WAR " + webUri
+ " in the EAR");
}
contextPath =
ear.getApplicationXml().getWebModuleContextRoot(webUri);
}
addRedirectorNameProperties(war);
}
catch (SAXException e)
{