From 80bf50a177d2ee4237c67147bede1d34ff492966 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 17 Apr 2003 13:09:19 +0000 Subject: [PATCH] Add destfile attribute to and . PR: 11102 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274478 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 8 ++++---- docs/manual/CoreTasks/pack.html | 14 +++++++++----- docs/manual/CoreTasks/war.html | 3 +-- docs/manual/CoreTasks/zip.html | 3 +-- src/main/org/apache/tools/ant/taskdefs/Pack.java | 10 +++++++++- 5 files changed, 24 insertions(+), 14 deletions(-) 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