root/trunk/deployment/testsuite/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.

  • Property svn:eol-style set to LF
Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      testsuite deployer
5      =================================================================== -->
6
7 <project name="testsuite.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}/bwruntest.sh" />
20
21     <property name="app.run.batscr"
22               location="${app.resources.dir}/bwruntest.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.default.lib}" >
46       <include name="${junit4.jar.name}" />
47     </fileset>
48
49     <!-- from  the bin directory -->
50     <fileset id="app.bin.files" dir="${bin.home}" >
51       <include name="bw-appcommon*.jar"/>
52       <include name="bw-testsuite*.jar" />
53     </fileset>
54
55     <!-- Extra resources -->
56     <property name="app.temp.home"
57               location="${org.bedework.temp.shellscr.home}/bldtemp/${propval.app.zip.name}" />
58     <mkdir dir="${app.temp.home}"/>
59     <mkdir dir="${app.temp.home}/resources"/>
60     <echo file="${app.temp.home}/resources/hibernate.properties">
61 hibernate.query.substitutions true 'T', false 'F', yes 'Y', no 'N'
62 hibernate.dialect=${org.bedework.global.hibernate.dialect}
63 hibernate.connection.driver_class=${org.bedework.global.jdbcdriver}
64 hibernate.connection.username=${org.bedework.global.jdbcid}
65 hibernate.connection.password=${org.bedework.global.jdbcpw}
66 hibernate.connection.url=${org.bedework.global.jdbcurl}
67 hibernate.cglib.use_reflection_optimizer=false
68 hibernate.cache.use_second_level_cache=false
69 #
70 # Here for better debugging
71 #
72 hibernate.jdbc.batch_size=0
73     </echo>
74
75     <fileset id="org.bedework.extra.resources" dir="${app.temp.home}/resources" />
76
77     <fileset id="org.bedework.shellscr.data" dir="${org.bedework.empty.dir}" >
78     </fileset>
79
80     <!-- ===============================================================
81          Build the shell script
82          =============================================================== -->
83
84     <ant antfile="${buildsh}" inheritRefs="true" target="build" />
85   </target>
86 </project>
87
Note: See TracBrowser for help on using the browser.