From 9d77cd7761edb3bfd7563c54f02dbc79b9b5e02e Mon Sep 17 00:00:00 2001 From: kytv Date: Thu, 3 Jan 2013 11:53:08 +0000 Subject: [PATCH] allow setting hamcrest and junit locations with properties Defaults to the ant library path (the previously hardcoded path) if not set. --- build.properties | 15 ++++++++++++++- core/java/build.xml | 22 ++++++++++++++++++---- router/java/build.xml | 17 ++++++++++++++--- 3 files changed, 46 insertions(+), 8 deletions(-) diff --git a/build.properties b/build.properties index ca0bebc885..17544bf6bf 100644 --- a/build.properties +++ b/build.properties @@ -18,7 +18,7 @@ wrapperdocs.url=http://wrapper.tanukisoftware.com/jdoc/ i2pdocs.url=http://docs.i2p-projekt.de/javadoc/ junitdocs.url=http://junit.org/apidocs/ # This will go in the jar manifests -build.built-by=unknown +build.built-by=unknown # filename of the sloccount report sloccount.report.file=sloccount.sc @@ -44,6 +44,7 @@ require.gettext=true # This one keeps gcj a lot quieter #javac.compilerargs=-warn:-unchecked,raw,unused,serial +### UnitTests ## # Location of the libraries required for the ScalaTest tests. # Define this in override.properties or pass in on the command line. # The directory must contain the following library names: @@ -53,6 +54,18 @@ require.gettext=true # scalatest.jar #scalatest.libs=/PATH/TO/SCALATEST/lib +# Location of the junit libraries +# Defaults to the ant library path if not set. +# If set, this must point to a directory that contains the files +# junit.jar and junit4.jar +#junit.home= + +# Location of the hamcrest libraries +# Defaults to the ant library path if not set +# If set, this must point to a directory containing the files +# hamcrest-core.jar, hamcrest-library.jar, and hamcrest-integration.jar +#hamcrest.home= + # Optional properties used in tests to enable additional tools. #with.cobertura=/PATH/TO/cobertura.jar #with.clover=/PATH/TO/clover.jar diff --git a/core/java/build.xml b/core/java/build.xml index 7e81a1a105..95f502d84a 100644 --- a/core/java/build.xml +++ b/core/java/build.xml @@ -98,10 +98,20 @@ - + + + + + + + + + + + @@ -191,6 +201,8 @@ + + @@ -201,9 +213,11 @@ - - - + + + + + diff --git a/router/java/build.xml b/router/java/build.xml index 514e4edce1..39325c71eb 100644 --- a/router/java/build.xml +++ b/router/java/build.xml @@ -119,13 +119,24 @@ + - + + + + includeAntRuntime="true" + destdir="./build/obj"> + + + + + + + +