root/trunk/build/platforms/jbossService.xml

Revision 3473 (checked in by douglm, 1 year ago)

1. Update the ischedule support:

New handler for host information with associated jboss service.
Move all support for hosts out of directory classes.
Various small fixes to ischedule
ischedule log in now done as a service to avoid some overhead

2. Fix problems with storing of resources

Broken in many ways. Postgres blob support completely broken.
Content type was set incorrectly
Upgrade to hibernate 3.6 as first step.
Had to update implementation of GenericEnumUserType? in rpiutil. Used in synch.
Changed sess.lock(o, ?) to sess.buildLockRequest(LockOptions?.?).lock(o);
Delete AbbrevValUserType? - hibernate types have changed. Was used for venue
Change hibernate property hibernate.jdbc.use_streams_for_binary - value is now false
Added some support for quotas. Currently only checking resources created/updated via WebDAV PUT.

Had to use preferences to store current quota use to avoid schema change

Removed option to email freebusy requests. Does not make sense. Changed to an iSchedule option which implies emailing invitations.

3. Small fix to ensure we close calendar-data element when we get an exception. Response still bad but at least valid XML

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by buildsh.xml and others and adds the targets:
5         doHibProps: builds a set of properties for the service
6         addLibs: add libraries for this platform
7         addResources: add anything we want in the resources directory
8         addExtras: add scripts for runnable versions and META-INF for
9                    jboss services etc.
10         deployService: deploy the service
11      =================================================================== -->
12
13 <project name="bedework.platformService" default="doHibProps" >
14   <import file="${build.dir}/platforms/runnableService.xml" />
15
16   <target name="doHibProps" >
17     <if>
18       <istrue value="${propval.app.runnable}" />
19       <then>
20         <antcall target="runnableDoHibProps" inheritRefs="true" />
21       </then>
22       <else>
23         <mkdir dir="${app.dest.classes}"/>
24        
25         <echo file="${app.dest.classes}/hibernate.properties">
26 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N'
27 hibernate.dialect=${org.bedework.global.hibernate.dialect}
28        
29 hibernate.connection.datasource=java:${org.bedework.jboss.datasource.jndiname}
30
31 hibernate.bytecode.use_reflection_optimizer=false
32 hibernate.cache.use_second_level_cache=false
33
34 hibernate.jdbc.use_streams_for_binary false
35 #
36 # Here for better debugging
37 #
38 hibernate.jdbc.batch_size=0
39     </echo>
40       </else>
41     </if>
42   </target>
43  
44   <!-- ================================================================
45        Add libraries
46        ================================================================ -->
47
48   <target name="addLibs">
49     <if>
50       <istrue value="${propval.app.runnable}" />
51       <then>
52         <property name="app.dest.lib"
53                   location="${app.dest.home}/lib" />
54         <antcall target="runnableAddLibs" inheritRefs="true" />
55       </then>
56       <else>
57         <!-- Library in sar file -->
58         <property name="app.dest.lib"
59                   location="${app.dest.webinf}/lib" />
60        
61         <copy todir="${app.dest.lib}" >
62           <fileset dir="${org.bedework.temp.extrajars.dir}" />
63         </copy>
64        
65         <if>
66           <istrue value="${propval.app.in.ear}"/>
67           <then>
68             <!-- Preserve extra jars for later -->
69             <copy todir="${org.bedework.temp.ear.extrajars.dir}" >
70               <fileset dir="${org.bedework.temp.extrajars.dir}" />
71             </copy>
72           </then>
73         </if>
74       </else>
75     </if>
76   </target>
77  
78   <!-- ================================================================
79        Add resources
80        ================================================================ -->
81
82   <target name="addResources">
83     <if>
84       <istrue value="${propval.app.runnable}" />
85       <then>
86         <antcall target="runnableAddResources" inheritRefs="true" />
87       </then>
88       <else>
89         <!-- None for this platform -->
90       </else>
91     </if>
92   </target>
93  
94   <!-- ================================================================
95        Add extras
96        ================================================================ -->
97
98   <target name="addExtras">
99     <if>
100       <istrue value="${propval.app.runnable}" />
101       <then>
102         <antcall target="runnableAddExtras" inheritRefs="true" />
103       </then>
104       <else>
105         <property name="metainf.dir"
106                   location="${app.resources.dir}/../META-INF" />
107    
108         <mkdir dir="${app.dest.home}/META-INF" />
109        
110         <echo file="${app.dest.home}/META-INF/jboss-structure.xml"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
111 <structure>
112   <context>
113     <path name=""/>
114     <metaDataPath>
115       <path name="META-INF"/>
116     </metaDataPath>       
117     <classpath>
118       <path name="classes"/>
119       <path name="lib" suffixes=".jar" />
120     </classpath>
121   </context>
122 </structure>
123 ]]></echo>
124        
125         <copy todir="${app.dest.home}/META-INF">
126           <fileset dir="${metainf.dir}" />
127           <filterset refid="property.filters" />
128         </copy>
129       </else>
130     </if>
131   </target>
132
133   <target name="deployService">
134     <!-- copy the sar - at the moment copy the uncompressed. -->
135
136     <if>
137       <istrue value="${propval.app.runnable}" />
138       <then>
139         <antcall target="runnableDeployService" inheritRefs="true" />
140       </then>
141       <else>
142         <if>
143           <isset property="org.bedework.appserver.deploy.dir" />
144           <then>
145             <property name="app.dest.home"
146                       location="${org.bedework.temp.shellscr.home}/${propval.app.zip.name}" />
147    
148                 <delete dir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar" />
149             <mkdir dir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar" />
150             <copy todir="${org.bedework.appserver.deploy.dir}/${propval.app.zip.name}.sar">
151               <fileset dir="${app.dest.home}"/>
152             </copy>
153           </then>
154         </if>
155       </else>
156     </if>
157   </target>
158 </project>
Note: See TracBrowser for help on using the browser.