| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- =================================================================== |
|---|
| 4 |
Load the deployment configuration from the properties file. We also load |
|---|
| 5 |
the run time options and define some properties based on some of the |
|---|
| 6 |
values found there |
|---|
| 7 |
=================================================================== --> |
|---|
| 8 |
<project name="loadDeployConfig" basedir="." default=""> |
|---|
| 9 |
<macrodef name="loadDeployConfig"> |
|---|
| 10 |
<sequential> |
|---|
| 11 |
<taskdef resource="net/sf/antcontrib/antcontrib.properties" /> |
|---|
| 12 |
|
|---|
| 13 |
<property environment="env"/> |
|---|
| 14 |
|
|---|
| 15 |
<echo message="Load user properties from ${org.bedework.user.build.properties}" /> |
|---|
| 16 |
|
|---|
| 17 |
<!-- Load user property definition overrides --> |
|---|
| 18 |
<property file="${org.bedework.user.build.properties}" /> |
|---|
| 19 |
|
|---|
| 20 |
<property name="org.bedework.config.properties" |
|---|
| 21 |
location="${org.bedework.config.base}/configs/democal.properties" /> |
|---|
| 22 |
<property name="org.bedework.config.options" |
|---|
| 23 |
location="${org.bedework.config.base}/configs/democal.options.xml" /> |
|---|
| 24 |
|
|---|
| 25 |
<echo message="==========================================================" /> |
|---|
| 26 |
<echo message="Use config properties ${org.bedework.config.properties}" /> |
|---|
| 27 |
<property file="${org.bedework.config.properties}" /> |
|---|
| 28 |
|
|---|
| 29 |
<!-- Load the run time options and define some properties based on some |
|---|
| 30 |
of the values --> |
|---|
| 31 |
|
|---|
| 32 |
<xmlproperty file="${org.bedework.config.options}"/> |
|---|
| 33 |
|
|---|
| 34 |
<if> |
|---|
| 35 |
<isset property="bedework-options.org.bedework.global.portal.platform"/> |
|---|
| 36 |
<then> |
|---|
| 37 |
<property name="org.bedework.global.portal.platform" |
|---|
| 38 |
value="${bedework-options.org.bedework.global.portal.platform}" /> |
|---|
| 39 |
|
|---|
| 40 |
<property name="org.bedework.config.portal.home" |
|---|
| 41 |
value="${org.bedework.configurations.home}/.portal/${org.bedework.global.portal.platform}" /> |
|---|
| 42 |
|
|---|
| 43 |
<property name="org.bedework.config.portal.common.home" |
|---|
| 44 |
value="${org.bedework.configurations.home}/.portal/common-resources" /> |
|---|
| 45 |
|
|---|
| 46 |
<echo message="******************* load from ${org.bedework.config.portal.home}/portal.properties" /> |
|---|
| 47 |
<property file="${org.bedework.config.portal.home}/portal.properties" /> |
|---|
| 48 |
</then> |
|---|
| 49 |
<else> |
|---|
| 50 |
<echo message="******************* load from ${org.bedework.configurations.home}/.standalone/standalone.properties" /> |
|---|
| 51 |
<property file="${org.bedework.configurations.home}/.platform/standalone.properties" /> |
|---|
| 52 |
</else> |
|---|
| 53 |
</if> |
|---|
| 54 |
|
|---|
| 55 |
<if> |
|---|
| 56 |
<isset property="org.bedework.global.build.ear"/> |
|---|
| 57 |
<then> |
|---|
| 58 |
<property file="${org.bedework.configurations.home}/.platform/ear.properties" /> |
|---|
| 59 |
</then> |
|---|
| 60 |
</if> |
|---|
| 61 |
|
|---|
| 62 |
<property name="org.bedework.global.version" |
|---|
| 63 |
value="${bedework-options.org.bedework.global.version}" /> |
|---|
| 64 |
|
|---|
| 65 |
<property name="org.bedework.global.directory.browsing.disallowed" |
|---|
| 66 |
value="${bedework-options.org.bedework.syspars.directoryBrowsingDisallowed}" /> |
|---|
| 67 |
</sequential> |
|---|
| 68 |
</macrodef> |
|---|
| 69 |
</project> |
|---|