bsf/bsf-java14compat.patch

76 lines
3.5 KiB
Diff

diff -Naur ../bsf-2.3.0.orig/src/bsf/build.xml ./src/bsf/build.xml
--- ../bsf-2.3.0.orig/src/bsf/build.xml 2002-11-13 07:28:54.000000000 +0100
+++ ./src/bsf/build.xml 2006-09-25 14:25:56.000000000 +0200
@@ -208,7 +208,8 @@
</fileset>
</copy>
- <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}">
+ <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}"
+ source="1.4" target="1.4">
<patternset refid="javac.source.files"/>
<classpath location="${bsf.extraclasspath}"/>
</javac>
@@ -250,19 +251,19 @@
<javac srcdir="${build.samples.calc}"
destdir="${build.samples.calc}"
classpath="${build.lib}/${name}.jar"
- debug="${debug}"/>
+ debug="${debug}" source="1.4" target="1.4"/>
<javac srcdir="${build.samples.jsplike}"
destdir="${build.samples.jsplike}"
classpath="${build.lib}/${name}.jar"
- debug="${debug}"/>
+ debug="${debug}" source="1.4" target="1.4"/>
<javac srcdir="${build.samples.scriptedui}"
destdir="${build.samples.scriptedui}"
classpath="${build.lib}/${name}.jar"
- debug="${debug}"/>
+ debug="${debug}" source="1.4" target="1.4"/>
<javac srcdir="${build.samples.xsl}"
destdir="${build.samples.xsl}"
classpath="${build.lib}/${name}.jar"
- debug="${debug}"/>
+ debug="${debug}" source="1.4" target="1.4"/>
</target>
<!-- =================================================================== -->
diff -Naur ../bsf-2.3.0.orig/src/bsf_debug/build.xml ./src/bsf_debug/build.xml
--- ../bsf-2.3.0.orig/src/bsf_debug/build.xml 2002-11-13 07:28:55.000000000 +0100
+++ ./src/bsf_debug/build.xml 2006-09-25 14:27:22.000000000 +0200
@@ -98,7 +98,8 @@
</fileset>
</copy>
- <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}"/>
+ <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}"
+ source="1.4" target="1.4"/>
<!-- ================================================================= -->
<!-- Produces the jar file -->
diff -Naur ../bsf-2.3.0.orig/src/jsdb/build.xml ./src/jsdb/build.xml
--- ../bsf-2.3.0.orig/src/jsdb/build.xml 2002-11-13 07:28:54.000000000 +0100
+++ ./src/jsdb/build.xml 2006-09-25 14:26:22.000000000 +0200
@@ -99,7 +99,7 @@
</fileset>
</copy>
- <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}" classpath="${bsf_debug}/build/lib/bsf_debug.jar"/>
+ <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}" classpath="${bsf_debug}/build/lib/bsf_debug.jar" source="1.4" target="1.4"/>
<!-- ================================================================= -->
<!-- Produces the jar file -->
diff -Naur ../bsf-2.3.0.orig/src/taglib/build.xml ./src/taglib/build.xml
--- ../bsf-2.3.0.orig/src/taglib/build.xml 2002-11-13 07:28:53.000000000 +0100
+++ ./src/taglib/build.xml 2006-09-25 14:26:53.000000000 +0200
@@ -157,7 +157,8 @@
<target name="compile" depends="prepare">
<copy file="${conf.src}/taglib.tld"
tofile="${build.library}/META-INF/taglib.tld"/>
- <javac srcdir="${library.src}" destdir="${build.library}" debug="on">
+ <javac srcdir="${library.src}" destdir="${build.library}" debug="on"
+ source="1.4" target="1.4">
<classpath>
<pathelement location="${servlet.jar}"/>
<pathelement location="${taglib.extraclasspath}"/>