summaryrefslogtreecommitdiff
path: root/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
commite3c15fc8bc231099288c8b68f206184bb8638a00 (patch)
treea061db8cdfaed2f95e8a05d281ba4f71a8dda47a /java/module.xml
parent74e5e89d2cf9a43505c1c85fc3f60f467d3f5ace (diff)
downloadqpid-python-e3c15fc8bc231099288c8b68f206184bb8638a00.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/qpid@947672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/module.xml')
-rw-r--r--java/module.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/java/module.xml b/java/module.xml
index ec2bfc7e8e..0aa4a8f109 100644
--- a/java/module.xml
+++ b/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}"