| 814 |
mhunt |
1 |
<?xml version="1.0"?>
|
|
|
2 |
|
|
|
3 |
<project name="utf" default="package" basedir=".">
|
|
|
4 |
|
|
|
5 |
<property name="src.dir" value="${basedir}"/>
|
|
|
6 |
<property name="build.dir" value="${basedir}/java.build"/>
|
|
|
7 |
<property name="build.classes.dir" value="${build.dir}/classes"/>
|
| 822 |
mhunt |
8 |
<property name="build.jar.dir" value="${build.dir}/jar"/>
|
| 814 |
mhunt |
9 |
<property name="pkg.dir" value="${build.dir}/jar"/>
|
|
|
10 |
|
|
|
11 |
<path id="base.path">
|
|
|
12 |
<pathelement location="${build.classes.dir}" />
|
|
|
13 |
<fileset dir="${PACKAGE_junit}">
|
|
|
14 |
<include name="**/*.jar"/>
|
|
|
15 |
</fileset>
|
|
|
16 |
<fileset dir="${PACKAGE_log4j}">
|
|
|
17 |
<include name="**/*.jar"/>
|
|
|
18 |
</fileset>
|
|
|
19 |
</path>
|
|
|
20 |
|
|
|
21 |
<condition property="debug_mode" value="on" else="off" >
|
|
|
22 |
<equals arg1="${GBE_TYPE}" arg2="D"/>
|
|
|
23 |
</condition>
|
|
|
24 |
<echo message="debug_mode : ${debug_mode}"/>
|
|
|
25 |
|
|
|
26 |
<target name="compile"
|
|
|
27 |
description="Compiles the source code.">
|
|
|
28 |
|
|
|
29 |
<mkdir dir="${build.classes.dir}"/>
|
|
|
30 |
<javac destdir="${build.classes.dir}"
|
|
|
31 |
sourcepath=""
|
|
|
32 |
srcdir="${src.dir}"
|
|
|
33 |
includes = "com/erggroup/buildtool/utf/*.java"
|
|
|
34 |
includeAntRuntime = "off"
|
|
|
35 |
debug = "${debug_mode}"
|
|
|
36 |
deprecation = "off"
|
|
|
37 |
optimize = "on"
|
|
|
38 |
verbose = "off"
|
|
|
39 |
classpathref = "base.path">
|
|
|
40 |
</javac>
|
|
|
41 |
</target>
|
|
|
42 |
|
|
|
43 |
<target name="package"
|
|
|
44 |
depends="compile"
|
|
|
45 |
description="Creates the jar archives.">
|
|
|
46 |
|
|
|
47 |
<mkdir dir="${pkg.dir}"/>
|
|
|
48 |
<jar jarfile="${pkg.dir}/${ant.project.name}${GBE_TYPE}.jar"
|
|
|
49 |
basedir="${build.classes.dir}"
|
|
|
50 |
includes = "com/erggroup/buildtool/utf/*.class">
|
|
|
51 |
</jar>
|
|
|
52 |
</target>
|
|
|
53 |
|
|
|
54 |
<target name="run_tests" depends="package">
|
|
|
55 |
<!--junit fork="true" includeantruntime="false">
|
|
|
56 |
<classpath refid="test.classpath"/>
|
|
|
57 |
<test name="com.erggroup.buildtool.utf.DaemonBuildTestCase"/>
|
|
|
58 |
<test name="com/erggroup/buildtool/utf/ESCROWBuildTestCase"/ >
|
|
|
59 |
</junit-->
|
| 4285 |
dpurdie |
60 |
|
|
|
61 |
<echo message="--- ReleaseConfigTest"/>
|
|
|
62 |
<exec dir=".\work" executable="java" failOnError="true">
|
|
|
63 |
<arg value="-classpath"/>
|
|
|
64 |
<arg value="${build.jar.dir}/utfD.jar;${build.jar.dir}/escrowD.jar;${build.jar.dir}/rippleEngineD.jar;${PACKAGE_junit}/junit.jar;${PACKAGE_apache-ant}/ant.jar;${PACKAGE_oraclient}/classes12.jar;${PACKAGE_log4j}/log4j-1.2.14.jar"/>
|
|
|
65 |
<arg value="com.erggroup.buildtool.utf.ReleaseConfigTest"/>
|
|
|
66 |
</exec>
|
|
|
67 |
|
|
|
68 |
<echo message="--- DaemonBuildTestCase"/>
|
| 814 |
mhunt |
69 |
<exec dir=".\work" executable="java" failOnError="true">
|
|
|
70 |
<arg value="-classpath"/>
|
| 4285 |
dpurdie |
71 |
<arg value="${build.jar.dir}/utfD.jar;${build.jar.dir}/abtdD.jar;${build.jar.dir}/rippleEngineD.jar;${PACKAGE_junit}/junit.jar;${PACKAGE_apache-ant}/ant.jar;${PACKAGE_oraclient}/classes12.jar;${PACKAGE_log4j}/log4j-1.2.14.jar;${PACKAGE_javaxmail}/mail.jar"/>
|
| 814 |
mhunt |
72 |
<arg value="com.erggroup.buildtool.utf.DaemonBuildTestCase"/>
|
|
|
73 |
</exec>
|
| 4285 |
dpurdie |
74 |
|
|
|
75 |
<echo message="--- ESCROWBuildTestCase"/>
|
|
|
76 |
<exec dir=".\work" executable="java" failOnError="true">
|
| 814 |
mhunt |
77 |
<arg value="-classpath"/>
|
| 822 |
mhunt |
78 |
<arg value="${build.jar.dir}/utfD.jar;${build.jar.dir}/escrowD.jar;${build.jar.dir}/rippleEngineD.jar;${PACKAGE_junit}/junit.jar;${PACKAGE_apache-ant}/ant.jar;${PACKAGE_oraclient}/classes12.jar;${PACKAGE_log4j}/log4j-1.2.14.jar"/>
|
| 814 |
mhunt |
79 |
<arg value="com.erggroup.buildtool.utf.ESCROWBuildTestCase"/>
|
|
|
80 |
</exec>
|
|
|
81 |
</target>
|
|
|
82 |
|
|
|
83 |
<target name="clean"
|
|
|
84 |
description="Cleans up the artifacts from previous builds.">
|
|
|
85 |
|
|
|
86 |
<delete dir="${build.dir}"/>
|
|
|
87 |
|
|
|
88 |
</target>
|
|
|
89 |
|
|
|
90 |
</project>
|
|
|
91 |
|