diff options
| author | Robert Gemmell <robbie@apache.org> | 2010-05-24 15:38:58 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2010-05-24 15:38:58 +0000 |
| commit | e3c15fc8bc231099288c8b68f206184bb8638a00 (patch) | |
| tree | a061db8cdfaed2f95e8a05d281ba4f71a8dda47a /java/module.xml | |
| parent | 74e5e89d2cf9a43505c1c85fc3f60f467d3f5ace (diff) | |
| download | qpid-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.xml | 7 |
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}" |
