root/trunk/build/platforms/jboss-bedework.xml

Revision 3333 (checked in by douglm, 2 years ago)

Move a number of property files into a common subdirectory of the configs.

Include the overrides first from the actual config and then the common properties.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by termination/build.xml and adds the targets
5      which will be invoked by that file.
6         doPlatform - misc stuff
7      =================================================================== -->
8
9 <project name="bedework.platformTermination" default="doPlatform" >
10   <target name="doPlatform" >
11     <!-- copy startup website that sends you to the applications -->
12     <property name="startup.website.dir"
13               location="${org.bedework.appserver.dir}/${org.bedework.server.resource.root.dir}/bedework" />
14     <delete dir="${startup.website.dir}"/>
15     <mkdir dir="${startup.website.dir}"/>
16     <copy todir="${startup.website.dir}">
17       <fileset dir="${app.root.dir}/resources/bedework"/>
18     </copy>
19
20     <!-- copy any jars required in the server lib (jdbc etc) -->
21     <if>
22       <available file="${org.bedework.global.ext.lib}/server" type="dir" />
23       <then>
24         <copy todir="${appserver.lib.dir}" flatten="yes" >
25           <fileset dir="${org.bedework.global.ext.lib}/server">
26             <include name="*.jar"/>
27           </fileset>
28         </copy>
29       </then>
30     </if>
31    
32     <if>
33       <isset property="org.bedework.global.extra.jars" />
34       <then>
35         <foreach list="${org.bedework.global.extra.jars}"
36                  target="copyToServer"
37                  param="org.bedework.extra.jar"
38                  inheritall="true"
39                  trim="true" />
40       </then>
41     </if>
42
43     <if>
44       <available file="${java.tools.jar}" />
45       <then>
46         <copy todir="${appserver.lib.dir}" file="${java.tools.jar}"/>
47       </then>
48     </if>
49    
50     <if>
51       <isset property="org.bedework.appserver.deploy.dir" />
52       <then>
53         <!-- If requested copy in the activemq configuration. -->
54
55         <if>
56           <istrue value="${org.bedework.global.copy.activemq.config}" />
57           <then>
58             <copy file="${org.bedework.activemq.configurations}/activemq-ra.xml"
59                   tofile="${org.bedework.global.activemq.dir}/META-INF/ra.xml"
60                   overwrite="yes" />
61             <copy file="${org.bedework.activemq.configurations}/activemq-broker-config.xml"
62                   tofile="${org.bedework.global.activemq.dir}/broker-config.xml"
63                   overwrite="yes" />
64             <copy file="${org.bedework.activemq.configurations}/activemq-jms-ds.xml"
65                   tofile="${org.bedework.appserver.deploy.dir}/activemq-jms-ds.xml"
66                   overwrite="yes" />
67           </then>
68         </if>
69         <!-- If requested copy in the db configuration. -->
70
71         <if>
72           <istrue value="${org.bedework.global.copy.bedeworkds.config}" />
73           <then>
74             <copy file="${org.bedework.config.home}/bedework-ds.xml"
75                   tofile="${org.bedework.appserver.deploy.dir}/bedework-ds.xml"
76                   overwrite="yes" />
77           </then>
78         </if>
79       </then>
80     </if>
81   </target>
82 </project>
Note: See TracBrowser for help on using the browser.