root/releases/bedework-3.6/build/platforms/runnableService.xml

Revision 2737 (checked in by douglm, 3 years ago)

Transfer all the changes which allow a jboss build of bedework.

Mostly build and deployment changes with a few mbean related changes for the outboard processes, dump/restore, indexer, in/outbox scheduler etc.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by platform specific build files to force the build
5      of a runnable form. It adds the targets:
6         runnableDoHibProps: builds a set of properties for the service
7         runnableAddLibs: add libraries for this platform
8         runnableAddResources: add anything we want in the resources directory
9         runnableAddExtras: add scripts for runnable versions
10         runnableDeployService: deploy the service
11      =================================================================== -->
12
13 <project name="bedework.runnableService" default="runnableDoHibProps" >
14   <target name="runnableDoHibProps" >
15     <echo file="${app.dest.classes}/hibernate.properties">
16 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N'
17 hibernate.dialect=${org.bedework.global.hibernate.dialect}
18 hibernate.connection.driver_class=${org.bedework.global.jdbcdriver}
19 hibernate.connection.username=${org.bedework.global.jdbcid}
20 hibernate.connection.password=${org.bedework.global.jdbcpw}
21 hibernate.connection.url=${org.bedework.global.jdbcurl}
22 hibernate.bytecode.use_reflection_optimizer=false
23 hibernate.cache.use_second_level_cache=false
24 #
25 # Here for better debugging
26 #
27 hibernate.jdbc.batch_size=0
28     </echo>
29   </target>
30        
31   <!-- ================================================================
32        Add libraries
33        ================================================================ -->
34
35   <target name="runnableAddLibs">
36     <!-- hibernate jars -->
37     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" />
38     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm-attrs}" />
39     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm}" />
40     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.cglib}" />
41     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.dom4j}" />
42     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ehcache}" />
43     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hibernate}" />
44     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.javassist}" />
45     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jgroups}" />
46     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" />
47     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-collections}"/>
48     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-api}" />
49     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-log4j12}" />
50
51     <!-- jms support -->
52     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.activemq-core}" />
53     <copy todir="${app.dest.lib}"
54           file="${org.bedework.appjar.geronimo-j2ee-management_1.0_spec}" />
55     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jms}" />
56
57     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-logging}"/>
58
59     <!-- core files -->
60
61     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiaccess}" />
62     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiutil}" />
63     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-davio}" />
64
65     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-annotations}" />
66     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-apiutil}" />
67     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcore}" />
68     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcorei}" />
69     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calfacade}" />
70     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvc}" />
71     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvci}" />
72     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-icalendar}" />
73     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-logging}" />
74     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-mail}" />
75     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-sysevents}" />
76
77     <!-- any extra files-->
78    <copy todir="${app.dest.lib}" >
79      <fileset dir="${org.bedework.temp.extrajars.dir}" />
80    </copy>
81
82     <!-- Some more standard libs -->
83     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.log4j}"/>
84     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/>
85     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/>
86     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/>
87     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/>
88     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/>
89     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/>
90     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/>
91     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/>
92
93     <!-- jdbc stuff -->
94
95     <if>
96       <available file="${org.bedework.global.ext.lib}/jdbc" type="dir" />
97       <then>
98         <!-- jdbc drivers -->
99         <copy todir="${app.dest.lib}" flatten="yes" >
100           <!-- local jdbc drivers -->
101           <fileset dir="${org.bedework.global.ext.lib}/jdbc">
102             <include name="*.jar"/>
103           </fileset>
104         </copy>
105       </then>
106       <else>
107         <!-- Include the quickstart jdbc driver -->
108         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hsqldb}"/>
109       </else>
110     </if>
111   </target>
112  
113   <!-- ================================================================
114        Add resources
115        ================================================================ -->
116
117   <target name="runnableAddResources">
118     <property name="app.dest.resources"
119               location="${app.dest.home}/resources" />
120        
121     <mkdir dir="${app.dest.resources}"/>
122
123     <copy tofile="${app.dest.resources}/log4j.xml"
124           file="${org.bedework.runsh.log4j.xml}"
125           failonerror="false" />
126         </target>
127  
128   <!-- ================================================================
129        Add extras
130        ================================================================ -->
131
132   <target name="runnableAddExtras">
133     <!-- ===============================================================
134                        Build the classpath
135          =============================================================== -->
136
137     <path id="app.run.path">
138       <fileset dir="${app.dest.lib}">
139         <include name="*.jar"/>
140       </fileset>
141       <pathelement location="${app.dest.resources}" />
142     </path>
143     <pathconvert property="app.run.cp" refid="app.run.path"
144                  targetos="unix" >
145       <map from="${app.dest.lib}" to="./lib"/>
146       <map from="${app.dest.resources}" to="./resources"/>
147     </pathconvert>
148     <pathconvert property="app.run.wincp" refid="app.run.path"
149                  targetos="windows" >
150       <map from="${app.dest.lib}" to="./lib"/>
151       <map from="${app.dest.resources}" to="./resources"/>
152     </pathconvert>
153
154     <!-- ===============================================================
155                        Copy and modify the shell script
156          =============================================================== -->
157
158     <copy tofile="${app.dest.home}/${propval.app.shellscr.name}"
159           file="${app.run.shellscr}" >
160       <filterset>
161         <filter token="CP"
162                 value=".:./classes:${app.run.cp}"/>
163       </filterset>
164       <filterset refid="property.filters" />
165     </copy>
166
167     <copy tofile="${app.dest.home}/${propval.app.batscr.name}"
168           file="${app.run.batscr}" >
169       <filterset>
170         <filter token="CP"
171                 value=".;./classes;${app.run.wincp}"/>
172       </filterset>
173       <filterset refid="property.filters" />
174     </copy>
175
176     <!-- build the zip file -->
177     <mkdir dir="${dist.home}" />
178     <delete file="${app.zip.file}" />
179
180     <zip destfile="${app.zip.file}" >
181       <zipfileset prefix="${propval.app.zip.name}" dir="${app.dest.home}" />
182     </zip>
183   </target>
184  
185   <!-- ================================================================
186        Deploy the service
187        ================================================================ -->
188
189   <target name="runnableDeployService">
190     <!-- Nothing to do for runnable services -->
191   </target>
192 </project>
Note: See TracBrowser for help on using the browser.