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

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

Updates to handle vcard driven preferences

Add vcard to the libraries so we can process vcards from carddav
Update carddav options.
Change directory info to include new properties and link to it from the principal object
Add directory methods to get the information
Add a carddav client and provide a method to get the card for a principal
Fix to webdav - generating bad hrefs
Undo bad change to attendees.jsp

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.backport-util-concurrent}"/>
87     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/>
88     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j-vcard}"/>
89     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/>
90     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/>
91     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/>
92     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/>
93     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/>
94
95     <!-- jdbc stuff -->
96
97     <if>
98       <available file="${org.bedework.global.ext.lib}/jdbc" type="dir" />
99       <then>
100         <!-- jdbc drivers -->
101         <copy todir="${app.dest.lib}" flatten="yes" >
102           <!-- local jdbc drivers -->
103           <fileset dir="${org.bedework.global.ext.lib}/jdbc">
104             <include name="*.jar"/>
105           </fileset>
106         </copy>
107       </then>
108       <else>
109         <!-- Include the quickstart jdbc driver -->
110         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hsqldb}"/>
111       </else>
112     </if>
113   </target>
114  
115   <!-- ================================================================
116        Add resources
117        ================================================================ -->
118
119   <target name="runnableAddResources">
120     <property name="app.dest.resources"
121               location="${app.dest.home}/resources" />
122        
123     <mkdir dir="${app.dest.resources}"/>
124
125     <copy tofile="${app.dest.resources}/log4j.xml"
126           file="${org.bedework.runsh.log4j.xml}"
127           failonerror="false" />
128         </target>
129  
130   <!-- ================================================================
131        Add extras
132        ================================================================ -->
133
134   <target name="runnableAddExtras">
135     <!-- ===============================================================
136                        Build the classpath
137          =============================================================== -->
138
139     <path id="app.run.path">
140       <fileset dir="${app.dest.lib}">
141         <include name="*.jar"/>
142       </fileset>
143       <pathelement location="${app.dest.resources}" />
144     </path>
145     <pathconvert property="app.run.cp" refid="app.run.path"
146                  targetos="unix" >
147       <map from="${app.dest.lib}" to="./lib"/>
148       <map from="${app.dest.resources}" to="./resources"/>
149     </pathconvert>
150     <pathconvert property="app.run.wincp" refid="app.run.path"
151                  targetos="windows" >
152       <map from="${app.dest.lib}" to="./lib"/>
153       <map from="${app.dest.resources}" to="./resources"/>
154     </pathconvert>
155
156     <!-- ===============================================================
157                        Copy and modify the shell script
158          =============================================================== -->
159
160     <copy tofile="${app.dest.home}/${propval.app.shellscr.name}"
161           file="${app.run.shellscr}" >
162       <filterset>
163         <filter token="CP"
164                 value=".:./classes:${app.run.cp}"/>
165       </filterset>
166       <filterset refid="property.filters" />
167     </copy>
168
169     <copy tofile="${app.dest.home}/${propval.app.batscr.name}"
170           file="${app.run.batscr}" >
171       <filterset>
172         <filter token="CP"
173                 value=".;./classes;${app.run.wincp}"/>
174       </filterset>
175       <filterset refid="property.filters" />
176     </copy>
177
178     <!-- build the zip file -->
179     <mkdir dir="${dist.home}" />
180     <delete file="${app.zip.file}" />
181
182     <zip destfile="${app.zip.file}" >
183       <zipfileset prefix="${propval.app.zip.name}" dir="${app.dest.home}" />
184     </zip>
185   </target>
186  
187   <!-- ================================================================
188        Deploy the service
189        ================================================================ -->
190
191   <target name="runnableDeployService">
192     <!-- Nothing to do for runnable services -->
193   </target>
194 </project>
Note: See TracBrowser for help on using the browser.