summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"