Browse Source

Remove excessive deprecation warnings.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271424 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
84c5e8b783
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 0
- 14
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -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);
}



Loading…
Cancel
Save