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

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

More changes to the build process. Main build now pulls jars out of the archive and out of each projects bin directory.

Also remove some unused ant build code.

Not yet complete but close.

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   <target name="init" >
11     <dirname property="this.dir" file="${ant.file}"/>
12
13     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
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     <fileset id="org.bedework.run.lib.jars" dir="${org.bedework.empty.dir}" >
46     </fileset>
47
48     <!-- from  the bin directory -->
49     <fileset id="app.bin.files" dir="${bin.home}" >
50       <include name="bw-dumpres*.jar" />
51     </fileset>
52
53     <!-- Extra resources -->
54     <property name="app.temp.home"
55               location="${org.bedework.temp.shellscr.home}/bldtemp/${propval.app.zip.name}" />
56     <mkdir dir="${app.temp.home}"/>
57     <mkdir dir="${app.temp.home}/resources"/>
58     <echo file="${app.temp.home}/resources/hibernate.properties">
59 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N'
60 hibernate.dialect=${org.bedework.global.hibernate.dialect}
61 hibernate.connection.driver_class=${org.bedework.global.jdbcdriver}
62 hibernate.connection.username=${org.bedework.global.jdbcid}
63 hibernate.connection.password=${org.bedework.global.jdbcpw}
64 hibernate.connection.url=${org.bedework.global.jdbcurl}
65 hibernate.cglib.use_reflection_optimizer=false
66 hibernate.cache.use_second_level_cache=false
67 #
68 # Here for better debugging
69 #
70 hibernate.jdbc.batch_size=0
71     </echo>
72
73     <mkdir dir="${app.temp.home}/data"/>
74     <copy todir="${app.temp.home}/data" file="${app.sou.dir}/resources/initbedework.xml" />
75
76     <fileset id="org.bedework.extra.resources" dir="${app.temp.home}/resources" />
77     <fileset id="org.bedework.shellscr.data" dir="${app.temp.home}/data" />
78
79     <!-- ===============================================================
80          Build the shell script
81          =============================================================== -->
82
83     <ant antfile="${buildsh}" inheritRefs="true" target="build" />
84   </target>
85 </project>
86
Note: See TracBrowser for help on using the browser.