diff --git a/build.xml b/build.xml
index ef3bfa16d..23b5acff3 100644
--- a/build.xml
+++ b/build.xml
@@ -604,7 +604,7 @@
basedir="${dist.name}/.."
includes="${dist.name}/**"/>
tars all files in the htdocs/manual
directory into a file called manual.tar
in the ${dist}
directory, then applies the gzip task to compress
it.
<tar tarfile="${dist}/manual.tar" +<tar destfile="${dist}/manual.tar" basedir="htdocs/manual" excludes="mydocs/**, **/todo.html" />@@ -147,7 +147,7 @@ in the${dist}
directory. Files in the directorymydocs
todo.html are excluded.<tar longfile="gnu" - tarfile="${dist.base}/${dist.name}-src.tar" > + destfile="${dist.base}/${dist.name}-src.tar" > <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant"> <include name="${dist.name}/bootstrap.sh"/> <include name="${dist.name}/build.sh"/> diff --git a/src/etc/testcases/taskdefs/tar.xml b/src/etc/testcases/taskdefs/tar.xml index adc9ef582..ea31a9a85 100644 --- a/src/etc/testcases/taskdefs/tar.xml +++ b/src/etc/testcases/taskdefs/tar.xml @@ -16,19 +16,19 @@- - - + @@ -39,7 +39,7 @@ - diff --git a/src/main/org/apache/tools/ant/taskdefs/Tar.java b/src/main/org/apache/tools/ant/taskdefs/Tar.java index c9133beaf..15d35b492 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Tar.java +++ b/src/main/org/apache/tools/ant/taskdefs/Tar.java @@ -129,11 +129,22 @@ public class Tar extends MatchingTask { /** * This is the name/location of where to create the tar file. + * @deprecated for consistency with other tasks, please use setDestFile() */ public void setTarfile(File tarFile) { + //log("DEPRECATED - The tarfile attribute is deprecated. Please use the destfile attribute instead."); this.tarFile = tarFile; } + /** + * Sets the destfile attribute. + * @since 1.22 ant 1.5 + * @param destFile The output of the tar + */ + public void setDestFile(File destFile) { + this.tarFile = destFile; + } + /** * This is the base directory to look in for things to tar. */