diff --git a/build.xml b/build.xml index ded67de20..2667bec41 100644 --- a/build.xml +++ b/build.xml @@ -1213,9 +1213,9 @@ - - @@ -1253,9 +1253,9 @@ - - diff --git a/docs/manual/CoreTasks/pack.html b/docs/manual/CoreTasks/pack.html index 717aa0d0d..ab21952ab 100644 --- a/docs/manual/CoreTasks/pack.html +++ b/docs/manual/CoreTasks/pack.html @@ -24,21 +24,25 @@ file is newer.

the file to gzip/bzip. Yes + + destfile + the destination file to create. + Exactly one of the two. + zipfile - the destination file. - Yes + the deprecated old name of destfile.

Examples

-

<gzip src="test.tar" zipfile="test.tar.gz"/>

+

<gzip src="test.tar" destfile="test.tar.gz"/>

-

<bzip2 src="test.tar" zipfile="test.tar.bz2"/>

+

<bzip2 src="test.tar" destfile="test.tar.bz2"/>


-

Copyright © 2000-2002 Apache Software Foundation. All rights +

Copyright © 2000-2003 Apache Software Foundation. All rights Reserved.

diff --git a/docs/manual/CoreTasks/war.html b/docs/manual/CoreTasks/war.html index 833557471..004d387c0 100644 --- a/docs/manual/CoreTasks/war.html +++ b/docs/manual/CoreTasks/war.html @@ -28,13 +28,12 @@ attributes of zipfilesets in a Zip or Jar task.)

destfile the WAR file to create. - Yes + Exactly one of the two. warfile Deprecated name of the file to create -use destfile instead. - No webxml diff --git a/docs/manual/CoreTasks/zip.html b/docs/manual/CoreTasks/zip.html index dcdaabc8e..b106a84d4 100644 --- a/docs/manual/CoreTasks/zip.html +++ b/docs/manual/CoreTasks/zip.html @@ -76,12 +76,11 @@ versions of zip and unzip for many Unix and Unix-like systems.

destfile the zip-file to create. - Yes + Exactly one of the two. zipfile the deprecated old name of destfile. - Yes basedir diff --git a/src/main/org/apache/tools/ant/taskdefs/Pack.java b/src/main/org/apache/tools/ant/taskdefs/Pack.java index 3bc0d55f6..10c04c472 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Pack.java +++ b/src/main/org/apache/tools/ant/taskdefs/Pack.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-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -84,6 +84,14 @@ public abstract class Pack extends Task { this.zipFile = zipFile; } + /** + * the required destination file. + * @param zipFile + */ + public void setDestfile(File zipFile) { + setZipfile(zipFile); + } + /** * the file to compress; required. * @param src