Author: nextgens
Date: 2008-08-18 07:57:36 +0000 (Mon, 18 Aug 2008)
New Revision: 21988
Modified:
trunk/freenet/build.xml
Log:
build.xml: delete the bytecode of the tests in between runs so that we don't
run into problems; Enable stricter compiler warnings
Modified: trunk/freenet/build.xml
===================================================================
--- trunk/freenet/build.xml 2008-08-18 07:50:40 UTC (rev 21987)
+++ trunk/freenet/build.xml 2008-08-18 07:57:36 UTC (rev 21988)
@@ -82,6 +82,7 @@
<pathelement location="javax-security.jar"/>
<pathelement location="javax-crypto.jar"/>
</classpath>
+ <compilerarg value="-Xlint"/>
<!-- following a very temporary list of files to be
build -->
<include name="org/**/*.java"/>
@@ -128,12 +129,16 @@
<!-- ================================================== -->
<target name="unit-build" depends="compile" if="junit.present"
unless="skip_tests">
+ <delete dir="${build-test}"/>
+ <mkdir dir="${build-test}"/>
+
<javac srcdir="${test}" destdir="${build-test}" debug="on"
optimize="on" source="1.5">
<classpath>
<pathelement path="${build}"/>
<pathelement
location="${freenet-ext.location}"/>
<pathelement location="${junit.location}"/>
</classpath>
+ <compilerarg value="-Xlint"/>
<include name="**/*.java"/>
<exclude name="*.java"/>
</javac>