root/releases/bedework-3.6/build/loadDeployConfig.xml

Revision 2053 (checked in by douglm, 4 years ago)

Allow carddav to be built from the bw script

Line 
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       <!-- These should already be defined in the above file
21       <property name="org.bedework.config.properties"
22                 location="${org.bedework.config.base}/configs/democal.properties" />
23       <property name="org.bedework.config.options"
24                 location="${org.bedework.config.base}/configs/democal.options.xml" />
25                 -->
26
27       <echo message="==========================================================" />
28       <echo message="Use config properties ${org.bedework.config.properties}" />
29       <property file="${org.bedework.config.properties}" />
30
31       <!-- Load the run time options and define some properties based on some
32            of the values -->
33
34       <xmlproperty file="${org.bedework.config.options}"/>
35
36       <!-- Load the CardDAV options -->
37       <xmlproperty file="${org.bedework.carddav.options}"/>
38
39       <if>
40         <isset property="bedework-options.org.bedework.global.portal.platform"/>
41         <then>
42           <property name="org.bedework.global.portal.platform"
43                     value="${bedework-options.org.bedework.global.portal.platform}" />
44
45           <property name="org.bedework.config.portal.home"
46                     value="${org.bedework.configurations.home}/.portal/${org.bedework.global.portal.platform}" />
47
48           <property name="org.bedework.config.portal.common.home"
49                     value="${org.bedework.configurations.home}/.portal/common-resources" />
50
51           <echo message="******************* load from ${org.bedework.config.portal.home}/portal.properties" />
52           <property file="${org.bedework.config.portal.home}/portal.properties" />
53         </then>
54         <else>
55           <echo message="******************* load from ${org.bedework.configurations.home}/.standalone/standalone.properties" />
56           <property file="${org.bedework.configurations.home}/.platform/standalone.properties" />
57         </else>
58       </if>
59
60       <if>
61         <isset property="org.bedework.global.build.ear"/>
62         <then>
63           <property file="${org.bedework.configurations.home}/.platform/ear.properties" />
64         </then>
65       </if>
66
67       <property name="org.bedework.global.version"
68                 value="${bedework-options.org.bedework.global.version}" />
69
70       <property name="org.bedework.global.directory.browsing.disallowed"
71                 value="${bedework-options.org.bedework.syspars.directoryBrowsingDisallowed}" />
72     </sequential>
73   </macrodef>
74 </project>
Note: See TracBrowser for help on using the browser.