root/trunk/build/loadDeployConfig.xml

Revision 1937 (checked in by douglm, 5 years ago)

Major reorganization of the build process mostly affecting handling of portal builds.

Removed portal specific directories from teh deployment directory.

Removed portal sepcific code from buildwar.xml and added new portal specific files to be imported. These are in a section of teh bwbuild config directory.

All portal customization is now part of building the war file.

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       <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.config.home}/.portal/${org.bedework.global.portal.platform}" />
42
43           <property name="org.bedework.config.portal.common.home"
44                     value="${org.bedework.config.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.config.home}/.standalone/standalone.properties" />
51           <property file="${org.bedework.config.home}/.standalone/standalone.properties" />
52         </else>
53       </if>
54
55       <property name="org.bedework.global.version"
56                 value="${bedework-options.org.bedework.global.version}" />
57
58       <property name="org.bedework.global.directory.browsing.disallowed"
59                 value="${bedework-options.org.bedework.syspars.directoryBrowsingDisallowed}" />
60     </sequential>
61   </macrodef>
62 </project>
Note: See TracBrowser for help on using the browser.