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

Revision 1895 (checked in by douglm, 5 years ago)

Near completion of build rebuild.

Each deployment fetches the extra jars it needs out of the project and places them in a well-known directory.

Less copying of files takes place now.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Dump/restore shell script deployer
5      =================================================================== -->
6
7 <project name="bwdumpres.deploy" default="deploy" >
8   <import file="${org.bedework.deployment.base}/deployprops.xml" />
9
10   <dirname property="this.dir" file="${ant.file}"/>
11
12   <import file="${this.dir}/appjars.xml" />
13
14   <target name="init" >
15     <getExtraJars />
16
17     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
18
19     <property name="app.resources.dir"
20               location="${this.dir}/resources" />
21
22     <property name="app.run.shellscr"
23               location="${app.resources.dir}/dumpres.sh" />
24
25     <property name="app.run.batscr"
26               location="${app.resources.dir}/dumpres.bat" />
27
28     <property name="org.bedework.runsh.log4j.xml"
29               location="${app.resources.dir}/log4j.xml" />
30   </target>
31
32   <!-- =================================================================
33        The "deploy" target first builds a configured component then copies
34        all required files to the appropriate servlet container directories.
35
36        Currently this only works for the quickstart distribution.
37        For example, it does not handle deploying into jboss and copying
38        resource files (images, stylesheets) to external locations.
39        ================================================================= -->
40
41   <target name="deploy" depends="init,build.configured" >
42   </target>
43
44   <target name="build.configured" depends="init" >
45     <!-- ===============================================================
46          Libraries for this application
47          =============================================================== -->
48
49     <!-- Extra resources -->
50     <property name="app.temp.home"
51               location="${org.bedework.temp.shellscr.home}/bldtemp/${propval.app.zip.name}" />
52     <mkdir dir="${app.temp.home}"/>
53     <mkdir dir="${app.temp.home}/resources"/>
54     <echo file="${app.temp.home}/resources/hibernate.properties">
55 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N'
56 hibernate.dialect=${org.bedework.global.hibernate.dialect}
57 hibernate.connection.driver_class=${org.bedework.global.jdbcdriver}
58 hibernate.connection.username=${org.bedework.global.jdbcid}
59 hibernate.connection.password=${org.bedework.global.jdbcpw}
60 hibernate.connection.url=${org.bedework.global.jdbcurl}
61 hibernate.cglib.use_reflection_optimizer=false
62 hibernate.cache.use_second_level_cache=false
63 #
64 # Here for better debugging
65 #
66 hibernate.jdbc.batch_size=0
67     </echo>
68
69     <mkdir dir="${app.temp.home}/data"/>
70     <copy todir="${app.temp.home}/data" file="${app.sou.dir}/resources/initbedework.xml" />
71
72     <fileset id="org.bedework.extra.resources" dir="${app.temp.home}/resources" />
73     <fileset id="org.bedework.shellscr.data" dir="${app.temp.home}/data" />
74
75     <!-- ===============================================================
76          Build the shell script
77          =============================================================== -->
78
79     <ant antfile="${buildsh}" inheritRefs="true" target="build" />
80   </target>
81 </project>
82
Note: See TracBrowser for help on using the browser.