root/trunk/build/platforms/jbossService.xml

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

JBoss support. First stage in deploying applications as services in jboss.

Restructure shell script builds to provide platform specific options. Use that feature to create jboss services (sar files) that can be deployed within the server.

All this work is based on jboss 5.1.0.GA

In addition there is some partial support for geronimo. This is not complete

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      =================================================================== -->
11
12 <project name="bedework.platformService" default="doHibProps" >
13   <target name="doHibProps" >
14     <echo file="${app.dest.classes}/hibernate.properties">
15 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N'
16 hibernate.dialect=${org.bedework.global.hibernate.dialect}
17        
18 hibernate.connection.datasource=java:${org.bedework.global.jboss.db.datasource.jndiname}
19
20 hibernate.bytecode.use_reflection_optimizer=false
21 hibernate.cache.use_second_level_cache=false
22 #
23 # Here for better debugging
24 #
25 hibernate.jdbc.batch_size=0
26     </echo>
27   </target>
28  
29   <!-- ================================================================
30        Add libraries
31        ================================================================ -->
32
33   <target name="addLibs">
34     <!-- hibernate jars -->
35     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" />
36     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm-attrs}" />
37     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm}" />
38     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.cglib}" />
39     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.dom4j}" />
40     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ehcache}" />
41     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hibernate}" />
42     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.javassist}" />
43     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jgroups}" />
44     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" />
45     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-collections}"/>
46     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-api}" />
47     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-log4j12}" />
48
49     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-logging}"/>
50
51     <!-- core files -->
52
53     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiaccess}" />
54     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiutil}" />
55     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-davio}" />
56
57     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-annotations}" />
58     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-apiutil}" />
59     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcore}" />
60     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcorei}" />
61     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calfacade}" />
62     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvc}" />
63     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvci}" />
64     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-icalendar}" />
65     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-logging}" />
66     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-mail}" />
67     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-sysevents}" />
68
69     <!-- any extra files-->
70    <copy todir="${app.dest.lib}" >
71      <fileset dir="${org.bedework.temp.extrajars.dir}" />
72    </copy>
73
74     <!-- Some more standard libs -->
75     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/>
76     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/>
77     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/>
78     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/>
79     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/>
80     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/>
81     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/>
82     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/>
83   </target>
84  
85   <!-- ================================================================
86        Add resources
87        ================================================================ -->
88
89   <target name="addResources">
90         <!-- None for this platform -->
91   </target>
92  
93   <!-- ================================================================
94        Add extras
95        ================================================================ -->
96
97   <target name="addExtras">
98     <property name="metainf.dir"
99               location="${app.resources.dir}/../META-INF" />
100
101         <mkdir dir="${app.dest.home}/META-INF" />
102        
103     <echo file="${app.dest.home}/META-INF/jboss-structure.xml"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
104 <structure>
105   <context>
106     <path name=""/>
107     <metaDataPath>
108       <path name="META-INF"/>
109     </metaDataPath>       
110     <classpath>
111       <path name="classes"/>
112       <path name="lib" suffixes=".jar" />
113     </classpath>
114   </context>
115 </structure>
116 ]]></echo>
117        
118     <copy todir="${app.dest.home}/META-INF">
119           <fileset dir="${metainf.dir}" />
120       <filterset refid="property.filters" />
121     </copy>
122   </target>
123 </project>
Note: See TracBrowser for help on using the browser.