From 5f35fa88d364a6a96e0b8fe16a291a3c56924812 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 2 Aug 2001 14:48:24 +0000 Subject: [PATCH] Two steps forward, one step back - make it build under JDK 1.1 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269442 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Tstamp.java | 6 +++--- src/main/org/apache/tools/ant/types/PatternSet.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java b/src/main/org/apache/tools/ant/taskdefs/Tstamp.java index 4221d74fa..8aac5e646 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java +++ b/src/main/org/apache/tools/ant/taskdefs/Tstamp.java @@ -136,7 +136,7 @@ public class Tstamp extends Task { if (st.hasMoreElements()) { country = st.nextToken(); if (st.hasMoreElements()) { - throw new BuildException( "bad locale format", location); + throw new BuildException( "bad locale format", getLocation()); } } } @@ -145,7 +145,7 @@ public class Tstamp extends Task { } } catch (NoSuchElementException e) { - throw new BuildException( "bad locale format", e, location); + throw new BuildException( "bad locale format", e, getLocation()); } } @@ -179,7 +179,7 @@ public class Tstamp extends Task { field = Calendar.YEAR; } else { - throw new BuildException(unit + " is not a unit supported by the tstamp task"); + throw new BuildException(unit + " is not a unit supported by the tstamp task", getLocation()); } } diff --git a/src/main/org/apache/tools/ant/types/PatternSet.java b/src/main/org/apache/tools/ant/types/PatternSet.java index e36d1a4bb..4e3133ce7 100644 --- a/src/main/org/apache/tools/ant/types/PatternSet.java +++ b/src/main/org/apache/tools/ant/types/PatternSet.java @@ -413,7 +413,7 @@ public class PatternSet extends DataType { readPatterns(inclFile, includeList, p); } } - includesFileList.clear(); + includesFileList.removeAllElements(); } if (excludesFileList.size() > 0) { @@ -430,7 +430,7 @@ public class PatternSet extends DataType { readPatterns(exclFile, excludeList, p); } } - excludesFileList.clear(); + excludesFileList.removeAllElements(); } }