Commits

Anonymous committed 847cdd9

adding source and target java version 1.4 to javac targets

Comments (0)

Files changed (1)

 
     <!-- overridden properties (must be before the import!) -->
    
+    <property name="compile.version" value="1.4"/>
+    <property name="test.compile.version" value="1.4"/>
+
     <property name="lib.optional" value="${lib}/plugins"/> <!-- overwritten -->
     <property name="jar.excludes" value="test/**, docs/**, *.war, **/*.html"/>
 
 
     <!-- Compiles the core source code -->
     <target name="compile" depends="prepare">
-        <javac srcdir="${src.java}" destdir="${build.java}" includes="com/opensymphony/oscache/**" debug="${debug}" classpathref="cp" source="1.4" target="1.4"/>
+        <javac srcdir="${src.java}" destdir="${build.java}" includes="com/opensymphony/oscache/**" debug="${debug}" classpathref="cp" source="${compile.version}" target="${compile.version}"/>
     </target>
 
 
 	    <taskdef resource="clovertasks"/>
         <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
 	
-        <javac destdir="${build.test}" debug="${debug}" classpathref="cp" compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter">
+        <javac destdir="${build.test}" debug="${debug}" classpathref="cp" source="${test.compile.version}" target="${test.compile.version}" compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter">
             <src path="${src.java}"/>
         </javac>
 
-	    <javac destdir="${build.test}" debug="${debug}" classpathref="cp">
+	    <javac destdir="${build.test}" debug="${debug}" classpathref="cp" source="${test.compile.version}" target="${test.compile.version}">
             <src path="${src.test}"/>
         </javac>
     </target>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.