root/trunk/build/platforms/jbossService.xml

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

deploy target for jboss now copies sars and ear into a new deploy directory

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