root/trunk/build/loadDeployConfig.xml

Revision 3105 (checked in by douglm, 2 years ago)

Remove definition of property "base.name" from (almost) every build file. Was not used.
Stop defining, creating and copying to libapi. Wasn't in use.

Remove build directory from every project and use the build files in the main bedework project. improves consistency and maintainability. Also allowed some bugs to be fixed.

Allow setting of message level during build and set it at quiet. Allows error messages to be more obvious.

Create macro to handle the common property definitions. Reduces size and complexity of build files.

Add a build-jar macro. Removes need for build files for sub-modules. Partway through converting to use that.

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     <!--<attribute name="extra.options" default="${org.bedework.carddav.options}"/> -->
11     <sequential>
12       <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
13
14       <property environment="env"/>
15
16       <!-- Load user property definition overrides -->
17       <property file="${org.bedework.user.build.properties}" />
18
19       <infoMsg message="==========================================================" />
20       <infoMsg message="Loading user properties from ${org.bedework.user.build.properties}" />
21       <infoMsg message="Use config properties ${org.bedework.config.properties}" />
22       <infoMsg message="Runtime options from ${org.bedework.config.options}" />
23       <infoMsg message="==========================================================" />
24        
25         <property file="${org.bedework.config.properties}" />
26
27       <!-- Load the run time options and define some properties based on some
28            of the values -->
29
30       <!-- Load the general bedework options -->
31       <xmlproperty file="${org.bedework.config.options}"/>
32
33       <!-- Load the extra options
34       <xmlproperty file="@{extra.options}"/>-->
35
36       <if>
37         <isset property="bedework-options.org.bedework.global.portal.platform"/>
38         <then>
39           <property name="org.bedework.global.portal.platform"
40                     value="${bedework-options.org.bedework.global.portal.platform}" />
41
42           <property name="org.bedework.config.portal.home"
43                     value="${org.bedework.configurations.home}/.portal/${org.bedework.global.portal.platform}" />
44
45           <property name="org.bedework.config.portal.common.home"
46                     value="${org.bedework.configurations.home}/.portal/common-resources" />
47
48           <debugMsg message="******************* load from ${org.bedework.config.portal.home}/portal.properties" />
49
50           <property file="${org.bedework.config.portal.home}/portal.properties" />
51         </then>
52         <else>
53           <debugMsg message="******************* load from ${org.bedework.configurations.home}/.standalone/standalone.properties" />
54
55           <property file="${org.bedework.configurations.home}/.platform/standalone.properties" />
56         </else>
57       </if>
58
59       <if>
60         <isset property="org.bedework.global.build.ear"/>
61         <then>
62           <property file="${org.bedework.configurations.home}/.platform/ear.properties" />
63         </then>
64       </if>
65
66       <property name="org.bedework.global.version"
67                 value="${bedework-options.org.bedework.global.version}" />
68
69       <property name="org.bedework.global.directory.browsing.disallowed"
70                 value="${bedework-options.org.bedework.syspars.directoryBrowsingDisallowed}" />
71     </sequential>
72   </macrodef>
73 </project>
Note: See TracBrowser for help on using the browser.