root/trunk/calendar3/deployment/build.xml

Revision 59 (checked in by douglm, 7 years ago)

A number of fixes to the restore so that it handles a full v3 dump file.

Changed restore so that syspars values supplied as arguments will override values read from the restore file. This allows us to use the configuration properties to initialise the db.

We need a new page to the config tool for syspars.

Moved all dump/restore default properties into config properties file. We now need a dump/restore page as well.
Then discovered they were already in there so that may have caused problems.

Deleted file calendar3/local.build.properties

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================== Deployment build file =======================
4      This directory and the files within it are to be part of the config
5      and deployment process.
6
7      A number of properties of the form org.bedework.install.XXX will be
8      defined, each indicating that a particualr component is to be deployed.
9
10      Targets below will be executed only if that property is defined.
11
12      Adding a new configuration, e.g. a different portal platform, requires
13      the steps:
14         Create a subdirectory in each components subdirectory,
15         e.g.  webadmin/myportal
16
17         Create any other required resource directories and resources and
18         create a build.xml file to configure and package the component(s).
19
20         Update the config program to load, save and display the new
21         properties for that configuration.
22
23         Add an antcall for each component and a corresponding target
24
25      Authors: Mike Douglass   douglm@rpi.edu
26      =================================================================== -->
27
28 <project name="deploy.bedework" default="init">
29   <target name="init" >
30     <!-- default to debug off -->
31     <property name="app.debug.val" value="0" />
32
33     <!-- set this for the war builds -->
34     <dirname property="app.root.dir" file="${ant.file}"/>
35
36     <!-- ==================== config properties =========================
37     <property name="org.bedework.config.properties"
38               location="${org.bedework.config.base}/configs/${org.bedework.clone.name}.properties" />
39
40     <echo message="==========================================================" />
41     <echo message="Use clone properties ${org.bedework.config.properties}" />
42     <loadproperties
43           srcFile="${org.bedework.config.properties}" >
44       <filterchain>
45         <expandproperties/>
46       </filterchain>
47     </loadproperties>
48     -->
49   </target>
50
51   <target name="build.configured" depends="init" >
52     <!-- Clean up before we start -->
53     <delete dir="${org.bedework.temp.wars.home}" />
54
55     <!-- ======================= webconfig ================= -->
56     <ant antfile="${org.bedework.deployment.base}/webconfig/webapp/build.xml"
57          inheritrefs="true" target="build.configured" />
58
59     <antcall target="build.webadmin.webapp" inheritrefs="true" />
60
61     <antcall target="build.webadmin.portal" inheritrefs="true" />
62
63     <antcall target="build.pubevents.webapp" inheritrefs="true" />
64
65     <antcall target="build.pubevents.portal" inheritrefs="true" />
66
67     <antcall target="build.personal.webapp" inheritrefs="true" />
68
69     <antcall target="build.personal.portal" inheritrefs="true" />
70
71     <antcall target="build.public.caldav" inheritrefs="true" />
72
73     <antcall target="build.personal.caldav" inheritrefs="true" />
74
75     <!-- dump restore - always built (until we have a choice of windows/unix. -->
76     <ant antfile="${org.bedework.deployment.base}/dumprestore/shellscr/build.xml"
77          inheritrefs="true" target="build.configured" />
78   </target>
79
80   <!-- =================================================================
81        Targets called by the build.configured target. Each is conditional on a
82        config property and each executes a build file in a subdirectory of
83        this component.
84        ================================================================= -->
85
86   <target name="build.webadmin.webapp" if="org.bedework.webadmin.build.standalone.app" >
87     <!-- ======================= webadmin - standalone ================= -->
88     <ant antfile="${org.bedework.deployment.base}/webadmin/webapp/build.xml"
89          inheritrefs="true" target="build.configured" />
90   </target>
91
92   <target name="build.webadmin.portal" if="org.bedework.webadmin.portal.platform" >
93     <!-- ======================= webadmin - portal ================= -->
94     <ant antfile="${org.bedework.deployment.base}/webadmin/${admin.portal.platform}/build.xml"
95          inheritrefs="true" target="build.configured" />
96   </target>
97
98   <target name="build.pubevents.webapp" if="org.bedework.webpubevents.build.standalone.app" >
99     <!-- ======================= pubevents - standalone ================= -->
100     <ant antfile="${org.bedework.deployment.base}/webpublic/webapp/build.xml"
101          inheritrefs="true" target="build.configured" />
102   </target>
103
104   <target name="build.pubevents.portal" if="org.bedework.webpubevents.portal.platform" >
105     <!-- ======================= pubevents - portal ================= -->
106     <ant antfile="${org.bedework.deployment.base}/webpublic/${pubevents.portal.platform}/build.xml"
107          inheritrefs="true" target="build.configured" />
108   </target>
109
110   <target name="build.personal.webapp" if="org.bedework.webpersonal.build.standalone.app" >
111     <!-- ======================= pubevents - standalone ================= -->
112     <ant antfile="${org.bedework.deployment.base}/webuser/webapp/build.xml"
113          inheritrefs="true" target="build.configured" />
114   </target>
115
116   <target name="build.personal.portal" if="org.bedework.webpersonal.portal.platform" >
117     <!-- ======================= pubevents - portal ================= -->
118     <ant antfile="${org.bedework.deployment.base}/webuser/${personal.portal.platform}/build.xml"
119          inheritrefs="true" target="build.configured" />
120   </target>
121
122   <target name="build.public.caldav" if="org.bedework.install.public.caldav" >
123     <!-- ======================= caldav - public ================= -->
124     <ant antfile="${org.bedework.deployment.base}/publiccaldav/servlet/build.xml"
125          inheritrefs="true" target="build.configured" />
126   </target>
127
128   <target name="build.personal.caldav" if="org.bedework.install.personal.caldav" >
129     <!-- ======================= caldav - user ================= -->
130     <ant antfile="${org.bedework.deployment.base}/usercaldav/servlet/build.xml"
131          inheritrefs="true" target="build.configured" />
132   </target>
133
134   <!-- =================================================================
135                          The deploy target.
136        ================================================================= -->
137
138   <target name="deploy" depends="init" >
139     <!-- Clean up before we start -->
140     <delete dir="${org.bedework.temp.wars.home}" />
141
142     <!-- ======================= webconfig ================= -->
143     <ant antfile="${org.bedework.deployment.base}/webconfig/webapp/build.xml"
144          inheritrefs="true" target="deploy" />
145
146     <antcall target="webadmin.webapp" inheritrefs="true" />
147
148     <antcall target="webadmin.portal" inheritrefs="true" />
149
150     <antcall target="pubevents.webapp" inheritrefs="true" />
151
152     <antcall target="pubevents.portal" inheritrefs="true" />
153
154     <antcall target="personal.webapp" inheritrefs="true" />
155
156     <antcall target="personal.portal" inheritrefs="true" />
157
158     <antcall target="public.caldav" inheritrefs="true" />
159
160     <antcall target="personal.caldav" inheritrefs="true" />
161
162     <!-- copy an index file that sends you to the applications -->
163     <copy file="${app.root.dir}/resources/html/cal.html"
164           todir="${webapp.root.dir}"/>
165
166     <!-- copy libs that the application server needs -->
167     <antcall target="deploy.appserver.jdbcdriver" inheritrefs="true" />
168     <antcall target="deploy.appserver.javatools" inheritrefs="true" />
169   </target>
170
171   <!-- =================================================================
172        Targets called by the deploy target. Each is conditional on a
173        config property and each executes a build file in a subdirectory of
174        this component.
175        ================================================================= -->
176
177   <target name="webadmin.webapp" if="org.bedework.webadmin.build.standalone.app" >
178     <!-- ======================= webadmin - standalone ================= -->
179     <ant antfile="${org.bedework.deployment.base}/webadmin/webapp/build.xml"
180          inheritrefs="true" target="deploy" />
181   </target>
182
183   <target name="webadmin.portal" if="org.bedework.webadmin.portal.platform" >
184     <!-- ======================= webadmin - portal ================= -->
185     <ant antfile="${org.bedework.deployment.base}/webadmin/${admin.portal.platform}/build.xml"
186          inheritrefs="true" target="deploy" />
187   </target>
188
189   <target name="pubevents.webapp" if="org.bedework.webpubevents.build.standalone.app" >
190     <!-- ======================= pubevents - standalone ================= -->
191     <ant antfile="${org.bedework.deployment.base}/webpublic/webapp/build.xml"
192          inheritrefs="true" target="deploy" />
193   </target>
194
195   <target name="pubevents.portal" if="org.bedework.webpubevents.portal.platform" >
196     <!-- ======================= pubevents - portal ================= -->
197     <ant antfile="${org.bedework.deployment.base}/webpublic/${pubevents.portal.platform}/build.xml"
198          inheritrefs="true" target="deploy" />
199   </target>
200
201   <target name="personal.webapp" if="org.bedework.webpersonal.build.standalone.app" >
202     <!-- ======================= pubevents - standalone ================= -->
203     <ant antfile="${org.bedework.deployment.base}/webuser/webapp/build.xml"
204          inheritrefs="true" target="deploy" />
205   </target>
206
207   <target name="personal.portal" if="org.bedework.webpersonal.portal.platform" >
208     <!-- ======================= pubevents - portal ================= -->
209     <ant antfile="${org.bedework.deployment.base}/webuser/${personal.portal.platform}/build.xml"
210          inheritrefs="true" target="deploy" />
211   </target>
212
213   <target name="public.caldav" if="org.bedework.install.public.caldav" >
214     <!-- ======================= caldav - public ================= -->
215     <ant antfile="${org.bedework.deployment.base}/publiccaldav/servlet/build.xml"
216          inheritrefs="true" target="deploy" />
217   </target>
218
219   <target name="personal.caldav" if="org.bedework.install.personal.caldav" >
220     <!-- ======================= caldav - user ================= -->
221     <ant antfile="${org.bedework.deployment.base}/usercaldav/servlet/build.xml"
222          inheritrefs="true" target="deploy" />
223   </target>
224
225   <!-- The cp.xalan task conditionally copies the xalan.jar file, if
226        necessary -->
227   <target name="cp.xalan" if="xalan.in.tomcat.common.endorsed">
228     <copy file="${org.bedework.default.lib}/xalan.jar"
229           todir="${appserver.endorsed.dir}"/>
230   </target>
231
232   <target name="deploy.appserver.jdbcdriver"
233           if="appserver.jdbcdriver.jar" >
234     <!-- copy jdbc jar so datasources work -->
235     <copy todir="${appserver.lib.dir}" file="${appserver.jdbcdriver.jar}"/>
236   </target>
237
238   <target name="deploy.appserver.javatools"
239           if="java.tools.jar" >
240     <!-- copy tools jar so jsps work -->
241     <copy todir="${appserver.lib.dir}" file="${java.tools.jar}"/>
242   </target>
243 </project>
Note: See TracBrowser for help on using the browser.