|
|
@@ -59,6 +59,7 @@ import java.io.IOException; |
|
|
|
import org.apache.tools.ant.BuildException; |
|
|
|
import org.apache.tools.ant.Project; |
|
|
|
import org.apache.tools.ant.types.ZipFileSet; |
|
|
|
import org.apache.tools.ant.util.FileUtils; |
|
|
|
import org.apache.tools.zip.ZipOutputStream; |
|
|
|
|
|
|
|
|
|
|
@@ -91,6 +92,8 @@ public class War extends Jar { |
|
|
|
*/ |
|
|
|
private boolean descriptorAdded; |
|
|
|
|
|
|
|
private static final FileUtils fu = FileUtils.newFileUtils(); |
|
|
|
|
|
|
|
public War() { |
|
|
|
super(); |
|
|
|
archiveType = "war"; |
|
|
@@ -180,7 +183,7 @@ public class War extends Jar { |
|
|
|
// by the "webxml" attribute and in a <fileset> element. |
|
|
|
if (vPath.equalsIgnoreCase("WEB-INF/web.xml")) { |
|
|
|
if (deploymentDescriptor == null |
|
|
|
|| !deploymentDescriptor.equals(file) |
|
|
|
|| !fu.fileNameEquals(deploymentDescriptor, file) |
|
|
|
|| descriptorAdded) { |
|
|
|
log("Warning: selected " + archiveType |
|
|
|
+ " files include a WEB-INF/web.xml which will be ignored " |
|
|
|