root/trunk/calendar3/bldfiles/buildApplication.xml

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

Preliminary changes to improve building for different platforms and configurations.

Make standalone deploy property global - i.e. it's all standalone or no standalone
Make portal platform property global
Add global j2ee platform property - if set we build a ear file.

Moved caldav deployment stuff to webapp directory instead of servlet

Line 
1 <?xml version="1.0"?>
2
3 <project name="buildApplicationxml" basedir="." default="build">
4   <!-- ===============================================================
5        This macro, through a series of repeated updates, adds a number of
6        java module declarations to an application.xml, one per jar file in
7        the supplied library directory.
8        =============================================================== -->
9   <macrodef name="buildAppXml">
10       <attribute name="lib.dir"/>
11       <attribute name="target.file" default="${org.bedework.temp.home}/META-INF/application.xml"/>
12
13     <sequential>
14       <path id="org.bedework.java.modules.path">
15         <fileset dir="${lib.dir}">
16           <include name="**/*.jar" />
17         </fileset>
18       </path>
19
20       <pathconvert refid="org.bedework.java.modules.path"
21                    property="org.bedework.java.modules"
22                    dirsep="/"
23                    pathsep="PATHSEP">
24         <map from="${lib.dir}/" to=""/>
25       </pathconvert>
26
27       <!--<echo message="org.bedework.java.modules = ${org.bedework.java.modules}" />-->
28
29       <replace file="${target.file}">
30         <replacetoken><![CDATA[<!-- java modules go here -->]]></replacetoken>
31         <replacevalue><![CDATA[<module>
32    <java>-- java modules property goes here --</java>
33   </module>]]></replacevalue>
34       </replace>
35
36       <replace file="${target.file}">
37         <replacefilter token="-- java modules property goes here --"
38                        value="${rpi.java.modules}"/>
39       </replace>
40
41       <replace file="${target.file}">
42         <replacetoken>PATHSEP</replacetoken>
43         <replacevalue><![CDATA[</java>
44   </module>
45
46  <module>
47    <java>]]></replacevalue>
48     </sequential>
49   </macrodef>
50
51 </project>
52
Note: See TracBrowser for help on using the browser.