diff --git a/src/main/org/apache/tools/ant/taskdefs/Ear.java b/src/main/org/apache/tools/ant/taskdefs/Ear.java
index a8c9850f3..920d66f7b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Ear.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Ear.java
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -9,7 +9,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -17,15 +17,15 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Ant", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
+ * from this software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
@@ -64,16 +64,16 @@ import java.io.IOException;
/**
* Creates a EAR archive. Based on WAR task
- *
- * @author Stefan Bodewig
- * @author Les Hughes
+ *
+ * @author Stefan Bodewig
+ * @author Les Hughes
*
* @ant.task category="packaging"
*/
public class Ear extends Jar {
private File deploymentDescriptor;
- private boolean descriptorAdded;
+ private boolean descriptorAdded;
public Ear() {
super();
@@ -83,17 +83,16 @@ public class Ear extends Jar {
/**
* @deprecated Use setDestFile(destfile) instead
- */
+ */
public void setEarfile(File earFile) {
- log("DEPRECATED - The earfile attribute is deprecated. Use destfile attribute instead.");
setDestFile(earFile);
}
-
+
/**
* set the application XML file
*/
public void setAppxml(File descr) {
- deploymentDescriptor = descr;
+ deploymentDescriptor = descr;
if (!deploymentDescriptor.exists()) {
throw new BuildException("Deployment descriptor: " + deploymentDescriptor + " does not exist.");
}
@@ -123,7 +122,7 @@ public class Ear extends Jar {
if (deploymentDescriptor == null && !isInUpdateMode()) {
throw new BuildException("appxml attribute is required", location);
}
-
+
super.initZipOutputStream(zOut);
}
@@ -131,7 +130,7 @@ public class Ear extends Jar {
throws IOException
{
// If the file being added is META-INF/application.xml, we warn if it's not the
- // one specified in the "appxml" attribute - or if it's being added twice,
+ // one specified in the "appxml" attribute - or if it's being added twice,
// meaning the same file is specified by the "appxml" attribute and in
// a element.
if (vPath.equalsIgnoreCase("META-INF/application.xml")) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Jar.java b/src/main/org/apache/tools/ant/taskdefs/Jar.java
index 4b52539c5..c335d550a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Jar.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Jar.java
@@ -134,7 +134,6 @@ public class Jar extends Zip {
* @deprecated Use setDestFile(File) instead
*/
public void setJarfile(File jarFile) {
- log("DEPRECATED - The jarfile attribute is deprecated. Use destfile attribute instead.");
setDestFile(jarFile);
}
diff --git a/src/main/org/apache/tools/ant/taskdefs/War.java b/src/main/org/apache/tools/ant/taskdefs/War.java
index d0b15ce9a..22be17276 100644
--- a/src/main/org/apache/tools/ant/taskdefs/War.java
+++ b/src/main/org/apache/tools/ant/taskdefs/War.java
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -9,7 +9,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -17,15 +17,15 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Ant", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
+ * from this software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
@@ -65,15 +65,15 @@ import java.io.IOException;
/**
* Creates a WAR archive.
- *
- * @author Stefan Bodewig
+ *
+ * @author Stefan Bodewig
*
* @ant.task category="packaging"
*/
public class War extends Jar {
private File deploymentDescriptor;
- private boolean descriptorAdded;
+ private boolean descriptorAdded;
public War() {
super();
@@ -83,17 +83,16 @@ public class War extends Jar {
/**
* @deprecated Use setDestFile(File) instead
- */
+ */
public void setWarfile(File warFile) {
- log("DEPRECATED - The warfile attribute is deprecated. Use destfile attribute instead.");
setDestFile(warFile);
}
-
+
/**
* set the web app descriptor for this WAR file
*/
public void setWebxml(File descr) {
- deploymentDescriptor = descr;
+ deploymentDescriptor = descr;
if (!deploymentDescriptor.exists()) {
throw new BuildException("Deployment descriptor: " + deploymentDescriptor + " does not exist.");
}
@@ -131,7 +130,7 @@ public class War extends Jar {
if (deploymentDescriptor == null && !isInUpdateMode()) {
throw new BuildException("webxml attribute is required", location);
}
-
+
super.initZipOutputStream(zOut);
}
@@ -139,7 +138,7 @@ public class War extends Jar {
throws IOException
{
// If the file being added is WEB-INF/web.xml, we warn if it's not the
- // one specified in the "webxml" attribute - or if it's being added twice,
+ // one specified in the "webxml" attribute - or if it's being added twice,
// meaning the same file is specified by the "webxml" attribute and in
// a element.
if (vPath.equalsIgnoreCase("WEB-INF/web.xml")) {
diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java
index 19dedd465..6df2ff73b 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Zip.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java
@@ -123,10 +123,9 @@ public class Zip extends MatchingTask {
* This is the name/location of where to
* create the .zip file.
*
- * @deprecated Use setDestFile(File) instead
+ * @deprecated Use setDestFile(File) instead.
*/
public void setZipfile(File zipFile) {
- log("DEPRECATED - The zipfile attribute is deprecated. Use destfile attribute instead.");
setDestFile(zipFile);
}
@@ -137,8 +136,6 @@ public class Zip extends MatchingTask {
* @deprecated Use setDestFile(File) instead
*/
public void setFile(File file) {
- log("DEPRECATED - The file attribute has been renamed destfile.",
- Project.MSG_ERR);
setDestFile(file);
}