ant/apache-ant-1.6.5-jvm1.5-detect.patch
2006-06-01 15:56:04 +00:00

23 lines
1.1 KiB
Diff

--- ./src/main/org/apache/tools/ant/util/JavaEnvUtils.java.sav 2006-05-31 18:18:10.000000000 -0400
+++ ./src/main/org/apache/tools/ant/util/JavaEnvUtils.java 2006-05-31 18:18:18.000000000 -0400
@@ -95,7 +95,7 @@
Class.forName("java.lang.CharSequence");
javaVersion = JAVA_1_4;
javaVersionNumber++;
- Class.forName("java.lang.Readable");
+ Class.forName("java.net.Proxy");
javaVersion = JAVA_1_5;
javaVersionNumber++;
} catch (Throwable t) {
--- ./build.xml.sav 2006-05-31 18:18:28.000000000 -0400
+++ ./build.xml 2006-05-31 18:18:37.000000000 -0400
@@ -365,7 +365,7 @@
<target name="check_for_optional_packages">
<available property="jdk1.3+" classname="java.lang.StrictMath"/>
<available property="jdk1.4+" classname="java.lang.CharSequence"/>
- <available property="jdk1.5+" classname="java.lang.Readable"/>
+ <available property="jdk1.5+" classname="java.net.Proxy"/>
<available property="kaffe" classname="kaffe.util.NotImplemented"/>
<available property="bsf.present"
classname="org.apache.bsf.BSFManager"