From 1627f7b0764c3899790f484db6fdb1c3a7e7015f Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Fri, 6 Jan 2012 14:07:42 +0000 Subject: QPID-3670: Add new build target to allow the Cobertura jar files to be downloaded automatically if not already present Applied patch from Andrew MacBean git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228192 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/common.xml | 26 ++++++++++++++++++++++++-- qpid/java/lib/cobertura/README.txt | 9 ++++----- 2 files changed, 28 insertions(+), 7 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/common.xml b/qpid/java/common.xml index 26537e7dfc..4e9e2d1598 100644 --- a/qpid/java/common.xml +++ b/qpid/java/common.xml @@ -61,6 +61,12 @@ + + + + + @@ -71,8 +77,8 @@ - - + + @@ -192,6 +198,22 @@ + + + + Downloading Cobertura ${cobertura.version} + + Extracting Cobertura JAR and dependencies + + Cleanup Cobertura Download + + Done + + + + + + diff --git a/qpid/java/lib/cobertura/README.txt b/qpid/java/lib/cobertura/README.txt index 8e4cc09a80..080bb5f2f3 100644 --- a/qpid/java/lib/cobertura/README.txt +++ b/qpid/java/lib/cobertura/README.txt @@ -1,10 +1,9 @@ -Download the cobertura binary from the following location: +Download the cobertura binary from the following location and expand it into +this directory. http://cobertura.sourceforge.net/download.html - -Unpack it into the cobertura (this) directory with tar --strip-path 1 -xf. -This should leave you with cobertura.jar in qpid/java/lib/cobertura. +Alternatively run "ant download-cobertura" to do this automatically. +(to set a http proxy for ant use ANT_OPTS="-Dhttp.proxyHost= -Dhttp.proxyPort=") Run "ant cover-test coverage-report" to generate coverage report. - -- cgit v1.2.1