From 84c5e8b7832bcc7518fbee136254adf18f82e147 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Tue, 19 Feb 2002 13:01:23 +0000 Subject: [PATCH] Remove excessive deprecation warnings. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271424 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Zip.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java index 5f8283f27..8eed55096 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Zip.java +++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java @@ -133,25 +133,11 @@ public class Zip extends MatchingTask { * This is the name/location of where to * create the .zip file. * @since 1.5alpha - * @todo pull this before shipping 1.5 * @deprecated Use setDestFile(File) instead */ public void setFile(File file) { log("DEPRECATED - The file attribute has been renamed destfile.", Project.MSG_ERR); - log("This attribute will be unsupported before Ant1.5 is released.", - Project.MSG_ERR); - - log("Be aware that the effect of using the file attribute depends on", - Project.MSG_WARN); - log("the phase of the moon.", Project.MSG_WARN); - int phase = DateUtils.getPhaseOfMoon(Calendar.getInstance()); - if (phase == 4) { - log("You are lucky! Full moon tonight."); - } else if (phase == 0) { - log("Be careful! New moon tonight.", Project.MSG_WARN); - } - setDestFile(file); }