| 4543 |
dpurdie |
1 |
<?xml version="1.0"?>
|
|
|
2 |
|
|
|
3 |
<!-- ======================================================================= -->
|
|
|
4 |
<!-- Template build file -->
|
|
|
5 |
<!-- ======================================================================= -->
|
|
|
6 |
|
|
|
7 |
<project name="ReleaseManagerSelect" default="package" basedir=".">
|
|
|
8 |
|
|
|
9 |
<description>Automate the Release Process</description>
|
|
|
10 |
|
|
|
11 |
<property file="${user.home}/.ant.properties" />
|
|
|
12 |
<property name="src.dir" value="${basedir}/com"/>
|
|
|
13 |
<property name="build.dir" value="${basedir}/java.build"/>
|
|
|
14 |
<property name="build.classes.dir" value="${build.dir}/classes"/>
|
|
|
15 |
<property name="pkg.dir" value="${build.dir}/jar"/>
|
|
|
16 |
|
|
|
17 |
<!-- =========================================================== -->
|
|
|
18 |
<!-- Extend the class path with all JARs found in the interface -->
|
|
|
19 |
<!-- directory. A BuildPkgArchive directive must be used to -->
|
|
|
20 |
<!-- populate the interface directory -->
|
|
|
21 |
<!-- -->
|
|
|
22 |
<!-- =========================================================== -->
|
|
|
23 |
<path id="base.path">
|
|
|
24 |
<pathelement location="${build.classes.dir}" />
|
|
|
25 |
<fileset dir="${INTERFACEDIR}">
|
|
|
26 |
<include name="**/*.jar"/>
|
|
|
27 |
</fileset>
|
|
|
28 |
</path>
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
<echo message="Passed Parameters: INTERFACEDIR: ${INTERFACEDIR}"/>
|
|
|
32 |
<echo message="Passed Parameters: GBE_TYPE: ${GBE_TYPE}"/>
|
|
|
33 |
|
|
|
34 |
<condition property="debug_mode" value="on" else="off" >
|
|
|
35 |
<equals arg1="${GBE_TYPE}" arg2="D"/>
|
|
|
36 |
</condition>
|
|
|
37 |
<echo message="debug_mode : ${debug_mode}"/>
|
|
|
38 |
|
|
|
39 |
<!--
|
|
|
40 |
C O M P I L E
|
|
|
41 |
-->
|
|
|
42 |
<target name="compile"
|
|
|
43 |
description="Compiles the source code.">
|
|
|
44 |
|
|
|
45 |
<mkdir dir="${build.classes.dir}"/>
|
|
|
46 |
<javac destdir="${build.classes.dir}"
|
|
|
47 |
includeAntRuntime = "off"
|
|
|
48 |
debug = "${debug_mode}"
|
|
|
49 |
deprecation = "off"
|
|
|
50 |
optimize = "on"
|
|
|
51 |
verbose = "off"
|
|
|
52 |
classpathref = "base.path">
|
|
|
53 |
<src path="${src.dir}"/>
|
|
|
54 |
</javac>
|
|
|
55 |
</target>
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
<!--
|
|
|
59 |
P A C K A G E
|
|
|
60 |
-->
|
|
|
61 |
<target name="package"
|
|
|
62 |
depends="compile"
|
|
|
63 |
description="Creates the jar archives.">
|
|
|
64 |
|
|
|
65 |
<mkdir dir="${pkg.dir}"/>
|
|
|
66 |
<jar jarfile="${pkg.dir}/${ant.project.name}.jar" manifest="${basedir}/Manifest.txt">
|
|
|
67 |
<fileset dir="${build.classes.dir}">
|
|
|
68 |
<include name="**/*.class"/>
|
|
|
69 |
</fileset>
|
|
|
70 |
<fileset dir="${src.dir}">
|
|
|
71 |
<include name="**/*.properties"/>
|
|
|
72 |
</fileset>
|
|
|
73 |
</jar>
|
|
|
74 |
</target>
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
<!--
|
|
|
78 |
C L E A N
|
|
|
79 |
-->
|
|
|
80 |
<target name="clean"
|
|
|
81 |
description="Cleans up the artifacts from previous builds.">
|
|
|
82 |
|
|
|
83 |
<delete dir="${build.dir}"/>
|
|
|
84 |
|
|
|
85 |
</target>
|
|
|
86 |
|
|
|
87 |
</project>
|
|
|
88 |
|