root/trunk/deployment/inoutsched/shellscr/build.xml

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

Small change to incorporate bedework services in ear file. Should reduce startup time and build/deploy time as well as memory usage

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      System event logger shell script deployer
5      =================================================================== -->
6
7 <project name="bwcrawler.deploy" default="deploy" >
8   <import file="${org.bedework.deployment.base}/deployprops.xml" />
9
10   <import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}Service.xml" />
11
12   <dirname property="this.dir" file="${ant.file}"/>
13
14   <import file="${this.dir}/appjars.xml" />
15
16   <target name="init" >
17     <getExtraJars />
18
19     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
20
21     <property name="app.resources.dir"
22               location="${this.dir}/resources" />
23
24     <property name="app.run.shellscr"
25               location="${app.resources.dir}/bwrun.sh" />
26
27     <property name="app.run.batscr"
28               location="${app.resources.dir}/bwrun.bat" />
29
30     <property name="org.bedework.runsh.log4j.xml"
31               location="${app.resources.dir}/log4j.xml" />
32   </target>
33
34   <!-- =================================================================
35        The "deploy" target first builds a configured component then copies
36        all required files to the appropriate servlet container directories.
37
38        Currently this only works for the quickstart distribution.
39        For example, it does not handle deploying into jboss and copying
40        resource files (images, stylesheets) to external locations.
41        ================================================================= -->
42
43   <target name="deploy" depends="init,build.configured" >
44     <if>
45       <not>
46         <istrue value="${propval.app.in.ear}"/>
47       </not>
48       <then>
49         <antcall target="deployService" inheritRefs="true" />
50       </then>
51     </if>
52   </target>
53
54   <target name="build.configured" depends="init" >
55     <!-- ===============================================================
56          Build the shell script
57          =============================================================== -->
58
59     <ant antfile="${buildsh}" inheritRefs="true" target="build" />
60   </target>
61 </project>
62
Note: See TracBrowser for help on using the browser.