Author: toad
Date: 2008-10-28 23:17:47 +0000 (Tue, 28 Oct 2008)
New Revision: 23164
Modified:
trunk/freenet/.classpath
trunk/freenet/build.xml
Log:
Specify target=1.5 as well as source=1.5.
It appears that javac 1.6 defaults to 1.6 output even when 1.5 source is
specified.
This resulted in my inserting a jar to the auto-update which wasn't compatible
with 1.5 JDKs. :<<
Modified: trunk/freenet/.classpath
===================================================================
--- trunk/freenet/.classpath 2008-10-28 19:53:27 UTC (rev 23163)
+++ trunk/freenet/.classpath 2008-10-28 23:17:47 UTC (rev 23164)
@@ -2,8 +2,8 @@
<classpath>
<classpathentry
excluding="freenet/node/*Test.java|plugins/JSTUN/**|test/**" kind="src"
path="src"/>
<classpathentry including="freenet/|org/" kind="src" path="test"/>
- <classpathentry exported="true" kind="lib" path="lib/freenet-ext.jar"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/usr/share/java/junit.jar"/>
+ <classpathentry kind="lib" path="lib/freenet-ext.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified: trunk/freenet/build.xml
===================================================================
--- trunk/freenet/build.xml 2008-10-28 19:53:27 UTC (rev 23163)
+++ trunk/freenet/build.xml 2008-10-28 23:17:47 UTC (rev 23164)
@@ -75,7 +75,7 @@
<!-- Create the build directory structure used by compile -->
- <javac srcdir="${src}" destdir="${build}" debug="on"
optimize="on" source="1.5">
+ <javac srcdir="${src}" destdir="${build}" debug="on"
optimize="on" source="1.5" target="1.5">
<classpath>
<pathelement
location="${freenet-ext.location}"/>
<pathelement location="gnu-crypto.jar"/>
@@ -132,7 +132,7 @@
<delete dir="${build-test}"/>
<mkdir dir="${build-test}"/>
- <javac srcdir="${test}" destdir="${build-test}" debug="on"
optimize="on" source="1.5">
+ <javac srcdir="${test}" destdir="${build-test}" debug="on"
optimize="on" source="1.5" target="1.5">
<classpath>
<pathelement path="${build}"/>
<pathelement
location="${freenet-ext.location}"/>