Browse Source

JDK 1.1 issues.

I'm sure the depend classes can be converted to not use JDK 1.2
collection classes.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270115 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
2fedf3b92f
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      build.xml
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/FixCRLF.java

+ 4
- 0
build.xml View File

@@ -301,6 +301,10 @@
unless="bcel.present" /> unless="bcel.present" />
<exclude name="${util.package}/depend/*.java" <exclude name="${util.package}/depend/*.java"
unless="bcel.present" /> unless="bcel.present" />
<exclude name="${optional.type.package}/depend/*.java"
unless="jdk1.2+" />
<exclude name="${util.package}/depend/*.java"
unless="jdk1.2+" />
</javac> </javac>


<copy todir="${build.classes}"> <copy todir="${build.classes}">


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/FixCRLF.java View File

@@ -884,7 +884,7 @@ public class FixCRLF extends MatchingTask {
if (i < line.length() - 1) { if (i < line.length() - 1) {
// Trailing characters are ^Zs // Trailing characters are ^Zs
// Construct new line and eofStr // Construct new line and eofStr
eofStr.append(line.substring(i + 1));
eofStr.append(line.toString().substring(i + 1));
if (i < 0) { if (i < 0) {
line.setLength(0); line.setLength(0);
reachedEof = true; reachedEof = true;


Loading…
Cancel
Save