summaryrefslogtreecommitdiff
path: root/qpid/java/module.xml
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2010-05-24 15:38:58 +0000
committerRobert Gemmell <robbie@apache.org>2010-05-24 15:38:58 +0000
commite99514e07282bdd6acf147a7952880a78db42544 (patch)
treea63d28a0544c519796d794b718564b2e296a3b40 /qpid/java/module.xml
parent02eb509a6a1bd1a48f94289bed73dcc11f886fd1 (diff)
downloadqpid-python-e99514e07282bdd6acf147a7952880a78db42544.tar.gz
Enforce usage of the requested test profile by failing immediately if it isnt found, preventing a silent fallback to the default test profile.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@947672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/module.xml')
-rw-r--r--qpid/java/module.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/java/module.xml b/qpid/java/module.xml
index ec2bfc7e8e..0aa4a8f109 100644
--- a/qpid/java/module.xml
+++ b/qpid/java/module.xml
@@ -260,7 +260,12 @@
<property name="profile" value="default"/>
- <property file="${test.profiles}/${profile}.testprofile" prefix="preload"/>
+ <property name="testprofile.file" value="${test.profiles}/${profile}.testprofile"/>
+
+ <available file="${testprofile.file}" property="testprofile.file.present"/>
+ <fail unless="testprofile.file.present" message="The requested test profile was not found: ${testprofile.file}"/>
+
+ <property file="${testprofile.file}" prefix="preload"/>
<property name="preload.include" value=""/>
<condition property="profiles"
value="${preload.include} ${profile}"