Browse Source

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
master
Conor MacNeill 24 years ago
parent
commit
5f35fa88d3
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/Tstamp.java
  2. +2
    -2
      src/main/org/apache/tools/ant/types/PatternSet.java

+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/Tstamp.java View File

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


+ 2
- 2
src/main/org/apache/tools/ant/types/PatternSet.java View File

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



Loading…
Cancel
Save