From 14d5788636a049df40cd8d2ad893b546093a1529 Mon Sep 17 00:00:00 2001
From: Peter Donald
Date: Wed, 12 Sep 2001 15:19:47 +0000
Subject: [PATCH] Deprecated earfile in favour of file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269687 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 4 ++--
docs/manual/CoreTasks/ear.html | 4 ++--
src/main/org/apache/tools/ant/taskdefs/Ear.java | 3 ++-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 6f944c596..a2c2451eb 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -7,8 +7,8 @@ Changes that could break older environments:
Other changes:
--------------
-* The attributes zipfile, jarfile and warfile (from the Zip, Jar and War tasks)
- have been deprecated and supersceded by a new attribute "file".
+* The attributes zipfile, jarfile, warfile and earfile (from the Zip, Jar, War and
+ Ear tasks) have been deprecated and supersceded by a new attribute "file".
Fixed bugs:
-----------
diff --git a/docs/manual/CoreTasks/ear.html b/docs/manual/CoreTasks/ear.html
index 9d8db6415..63ec69fa9 100644
--- a/docs/manual/CoreTasks/ear.html
+++ b/docs/manual/CoreTasks/ear.html
@@ -24,7 +24,7 @@ attributes of zipfilesets in a Zip or Jar task.)
Required |
- earfile |
+ file |
the ear-file to create. |
Yes |
@@ -112,7 +112,7 @@ fileset includes a file named MANIFEST.MF
, the file is
ignored and you will get a warning.
Example
- <ear earfile="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml">
+ <ear file="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml">
<fileset dir="${build.dir}" includes="*.jar,*.war"/>
</ear>
diff --git a/src/main/org/apache/tools/ant/taskdefs/Ear.java b/src/main/org/apache/tools/ant/taskdefs/Ear.java
index cac185cab..8ed7f9002 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Ear.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Ear.java
@@ -78,7 +78,8 @@ public class Ear extends Jar {
}
public void setEarfile(File earFile) {
- super.setZipfile(earFile);
+ log("DEPRECATED - The earfile attribute is deprecated. Use file attribute instead.");
+ setFile(earFile);
}
public void setAppxml(File descr) {