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

Revision 952 (checked in by douglm, 7 years ago)

--

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