From b06e71cedf057e3848a46a9002cf83c496d6b8ef Mon Sep 17 00:00:00 2001 From: David Roazen Date: Wed, 28 Nov 2012 20:44:09 -0500 Subject: [PATCH] Use build jars in test classpaths by default -Allows packaged resource files to be accessed within tests -Guards against packaging errors in dist/ jars by testing the jars that actually get run rather than unpackaged class files. Previously we were only protected against packaging errors in the monolithic jars posted to our website, not the dist/ jars used in everyday runs. -"ant fasttest" still uses the unpackaged class files for speed (don't want to have to rebuild the jars in fasttest). Relies on dubious methods to get at the resource files that would end up in the jars. -Eliminated the stupid separate "test" ivy config. Now we only invoke ivy ONCE during an ant build that includes tests. --- build.xml | 64 +++++++++++++++++++++++++++---------------------------- ivy.xml | 11 ++++------ 2 files changed, 36 insertions(+), 39 deletions(-) diff --git a/build.xml b/build.xml index 4db71a9ab..cc45467d8 100644 --- a/build.xml +++ b/build.xml @@ -185,10 +185,7 @@ - - - - + @@ -205,6 +202,16 @@ + + + + + + + + + + @@ -240,13 +247,6 @@ - - - - - - - @@ -1110,15 +1110,10 @@ - - + - - - - @@ -1126,9 +1121,6 @@ - - - @@ -1136,10 +1128,8 @@ - - + - @@ -1150,11 +1140,9 @@ - + - - @@ -1167,9 +1155,8 @@ - + - @@ -1376,14 +1363,13 @@ - + - @@ -1401,13 +1387,27 @@ - - + + + + + + + + + + + + + + + + diff --git a/ivy.xml b/ivy.xml index 1d2f95dc1..b7ca65406 100644 --- a/ivy.xml +++ b/ivy.xml @@ -24,11 +24,8 @@ - + - - - @@ -83,9 +80,9 @@ - - - + + +