File java150_build.patch of Package jdom

Index: jdom-1.0/XOM/build.xml
===================================================================
--- jdom-1.0.orig/XOM/build.xml
+++ jdom-1.0/XOM/build.xml
@@ -381,6 +381,7 @@ XOM Build file
     <mkdir dir="${build.javadocs}"/>
     
     <javadoc packagenames="nu.xom.xslt, nu.xom.canonical, nu.xom.xinclude, nu.xom, nu.xom.converters"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.javadocs}"
              author="true"
@@ -437,6 +438,7 @@ XOM Build file
              destdir="${build.javadocs}"
              author="true"
              version="true"
+      source="1.4"
              overview="overview.html"
              use="true"
              splitindex="true"
Index: jdom-1.0/dom4j-1.6.1/build.xml
===================================================================
--- jdom-1.0.orig/dom4j-1.6.1/build.xml
+++ jdom-1.0/dom4j-1.6.1/build.xml
@@ -154,6 +154,7 @@
   <!-- =================================================================== -->
   <target name="compile-test" depends="compile">
     <javac srcdir="${test.dir}"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${debug}"
            optimize="${optimize}"
@@ -167,6 +168,7 @@
   <!-- =================================================================== -->
   <target name="samples" depends="compile,prepare-samples,prepare-jaxb">
     <javac srcdir="src/samples"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${debug}"
            optimize="${optimize}"
@@ -189,6 +191,7 @@
   <target name="javadoc" depends="prepare-src">
     <mkdir dir="${build.javadocs}"/>
     <javadoc packagenames="${packages}"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.javadocs}"
              author="true"
@@ -208,6 +211,7 @@
   <target name="release-javadoc" depends="prepare-src">
     <mkdir dir="${build.javadocs}"/>
     <javadoc packagenames="${packages}"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.javadocs}"
              author="true"
@@ -225,6 +229,7 @@
 
     <mkdir dir="${build.apidocs}"/>
     <javadoc packagenames="${api.packages}"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.apidocs}"
              author="true"
@@ -351,7 +356,9 @@
       <produces dir="${build.generated.src}" />
     </xjc>
   	
-    <javac destdir="${build.dest}">
+    <javac 
+      source="1.4" target="1.4"
+      destdir="${build.dest}">
       <src path="${build.generated.src}"/>
       <classpath>
         <path refid="classpath.jaxb"/>
Index: jdom-1.0/jdom-1.0/build.xml
===================================================================
--- jdom-1.0.orig/jdom-1.0/build.xml
+++ jdom-1.0/jdom-1.0/build.xml
@@ -164,6 +164,7 @@ For instructions on how to build JDOM, p
                classpathref="compile.class.path"/>
 
     <javac srcdir="${build.src}"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${compile.debug}"
            optimize="${compile.optimize}"
@@ -181,6 +182,7 @@ For instructions on how to build JDOM, p
   <target name="about"
           description="Compiles the About code">
     <javac srcdir="${package.dir}"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${compile.debug}"
            optimize="${compile.optimize}"
@@ -195,6 +197,7 @@ For instructions on how to build JDOM, p
   <target name="samples" depends="prepare-samples,package"
           description="Compiles the samples directory">
     <javac srcdir="${samples.dest}"
+      source="1.4" target="1.4"
            destdir="${samples.dest}"
            debug="${compile.debug}"
            optimize="${compile.optimize}"
@@ -234,6 +237,7 @@ For instructions on how to build JDOM, p
           description="Creates the API documentation">
     <mkdir dir="${build.javadocs}"/>
     <javadoc packagenames="${packages}"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.javadocs}"
              author="true"
@@ -257,6 +261,7 @@ For instructions on how to build JDOM, p
           description="Creates the API documentation with links to JDK 1.4 classes">
     <mkdir dir="${build.javadocs}"/>
     <javadoc packagenames="${packages}"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.javadocs}"
              author="true"
Index: jdom-1.0/saxpath-1.0-FCS/build.xml
===================================================================
--- jdom-1.0.orig/saxpath-1.0-FCS/build.xml
+++ jdom-1.0/saxpath-1.0-FCS/build.xml
@@ -153,6 +153,7 @@
   <!-- =================================================================== -->
   <target name="compile" depends="collections">
     <javac srcdir="${build.src}"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${debug}"
            optimize="${optimize}"
@@ -164,6 +165,7 @@
   <!-- =================================================================== -->
   <target name="compile-test" depends="compile">
     <javac srcdir="${test.dir}"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${debug}"
            optimize="${optimize}"
@@ -178,6 +180,7 @@
   <!-- =================================================================== -->
   <target name="samples" depends="prepare-samples,collections">
     <javac srcdir="${build.src}"
+      source="1.4" target="1.4"
            destdir="${build.dest}"
            debug="${debug}"
            optimize="${optimize}"/>
@@ -218,6 +221,7 @@
              author="true"
              version="true"
              use="true"
+      source="1.4"
              splitindex="true"
              noindex="false"
              windowtitle="${Name} Full JavaDoc"
@@ -232,6 +236,7 @@
   <target name="release-javadoc" depends="prepare-src,collections,doc">
     <mkdir dir="${build.javadocs}"/>
     <javadoc packagenames="${packages}"
+      source="1.4"
              sourcepath="${build.src}"
              destdir="${build.javadocs}"
              author="true"
@@ -254,6 +259,7 @@
              author="true"
              version="true"
              use="true"
+      source="1.4"
              splitindex="true"
              noindex="false"
              windowtitle="${Name} API"
openSUSE Build Service is sponsored by