From 99c5a8ef7d46ce16d46c8c35fb39f92b250491de Mon Sep 17 00:00:00 2001 From: Deepak Bhole Date: Thu, 1 Jun 2006 15:56:04 +0000 Subject: [PATCH] Added patch to fix jvm version detection --- ant.spec | 6 +++++- apache-ant-1.6.5-jvm1.5-detect.patch | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 apache-ant-1.6.5-jvm1.5-detect.patch diff --git a/ant.spec b/ant.spec index 79efcd2..1f97de8 100644 --- a/ant.spec +++ b/ant.spec @@ -5,7 +5,7 @@ Name: ant Version: 1.6.5 -Release: %{jpprelease}_7fc +Release: %{jpprelease}_8fc Epoch: 0 Summary: Ant build tool for java Summary(it): Tool per la compilazione di programmi java @@ -23,6 +23,7 @@ Patch1: apache-ant-1.6.5-rpm.patch Patch2: apache-ant-1.6.5-javah.patch Patch4: apache-ant-jars.patch Patch5: apache-ant-bz163689.patch +Patch6: apache-ant-1.6.5-jvm1.5-detect.patch Requires: jaxp_parser_impl Requires: jpackage-utils >= 0:1.5 Requires: java-devel @@ -752,6 +753,9 @@ fi # ----------------------------------------------------------------------------- %changelog +* Thu Jun 1 2006 Deepak Bhole - 0:1.6.5-1jpp_8fc +- Added patch to fix jvm version detection + * Mon Mar 6 2006 Jeremy Katz - 0:1.6.5-1jpp_7fc - stop scriptlet spew diff --git a/apache-ant-1.6.5-jvm1.5-detect.patch b/apache-ant-1.6.5-jvm1.5-detect.patch new file mode 100644 index 0000000..d69fe7b --- /dev/null +++ b/apache-ant-1.6.5-jvm1.5-detect.patch @@ -0,0 +1,22 @@ +--- ./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 @@ + + + +- ++ + +