Browse Source

Deprecated earfile in favour of file.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269687 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
14d5788636
3 changed files with 6 additions and 5 deletions
  1. +2
    -2
      WHATSNEW
  2. +2
    -2
      docs/manual/CoreTasks/ear.html
  3. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/Ear.java

+ 2
- 2
WHATSNEW View File

@@ -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:
-----------


+ 2
- 2
docs/manual/CoreTasks/ear.html View File

@@ -24,7 +24,7 @@ attributes of zipfilesets in a Zip or Jar task.)</p>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">earfile</td>
<td valign="top">file</td>
<td valign="top">the ear-file to create.</td>
<td valign="top" align="center">Yes</td>
</tr>
@@ -112,7 +112,7 @@ fileset includes a file named <code>MANIFEST.MF</code>, the file is
ignored and you will get a warning.</p>
<h2>Example</h2>
<pre>
&lt;ear earfile=&quot;${build.dir}/myapp.ear&quot; appxml=&quot;${src.dir}/metadata/application.xml&quot;&gt;
&lt;ear file=&quot;${build.dir}/myapp.ear&quot; appxml=&quot;${src.dir}/metadata/application.xml&quot;&gt;
&lt;fileset dir=&quot;${build.dir}&quot; includes=&quot;*.jar,*.war&quot;/&gt;
&lt;/ear&gt;
</pre>


+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/Ear.java View File

@@ -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) {


Loading…
Cancel
Save