diff --git a/router/java/build.xml b/router/java/build.xml index 70f83fbd7027df90779b65bacb65554d1467cc9f..efb0b3091a186ba9fae972b813f8e2f7a3ee6046 100644 --- a/router/java/build.xml +++ b/router/java/build.xml @@ -22,9 +22,17 @@ </classpath> </depend> </target> + <target name="dependVersion"> + <!-- Force the dependency on the RouterVersion as depend doesn't recognize constant changes --> + <dependset> + <srcfilelist dir="." files="build/obj/net/i2p/router/RouterVersion.class" /> + <targetfilelist dir="." files="build/obj/net/i2p/router/Router.class" /> + <targetfilelist dir="." files="build/obj/net/i2p/router/StatisticsManager.class" /> + </dependset> + </target> <!-- only used if not set by a higher build.xml --> <property name="javac.compilerargs" value="" /> - <target name="compile" depends="depend"> + <target name="compile" depends="depend, dependVersion"> <mkdir dir="./build" /> <mkdir dir="./build/obj" /> <javac srcdir="./src" debug="true" source="1.5" target="1.5" deprecation="on" destdir="./build/obj" classpath="../../core/java/build/i2p.jar" >