throw new MojoExecutionException("Your source file "
+ "does not contain a web.xml. Please provide a "
+ "war with a web.xml or specify the [version] "
+ "attribute.");
}
WebXmlVersion webXmlVersion = null;
if (this.version.equals("2.2"))
{
webXmlVersion = WebXmlVersion.V2_2;
}
else if (this.version.equals("2.3"))
{
webXmlVersion = WebXmlVersion.V2_3;
}
else
{
webXmlVersion = WebXmlVersion.V2_4;
}
webXml = WebXmlIo.newWebXml(webXmlVersion);
}
}
else
{
if (this.version == null)
{
throw new MojoExecutionException("You need to specify "
+ "either the [srcFile] or the [version] attribute");
}
else
{
WebXmlVersion webXmlVersion = null;
if (this.version.equals("2.2"))
{
webXmlVersion = WebXmlVersion.V2_2;
}
else if (this.version.equals("2.3"))