Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
814 mhunt 1
<?xml version="1.0"?>
2
 
3
<project name="abtd" 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"/>
8
    <property name="pkg.dir"                value="${build.dir}/jar"/>
9
 
10
    <path id="base.path">
11
        <pathelement location="${build.classes.dir}" />
12
        <fileset dir="${PACKAGE_apache-ant}">
13
            <include name="**/*.jar"/>
14
        </fileset>
15
       <fileset dir="${PACKAGE_log4j}">
16
            <include name="**/*.jar"/>
17
        </fileset>
18
    </path>
19
 
20
    <condition property="debug_mode" value="on" else="off" >
21
        <equals arg1="${GBE_TYPE}" arg2="D"/>
22
    </condition>
23
    <echo message="debug_mode       : ${debug_mode}"/>
24
 
25
    <target name="compile" 
26
            description="Compiles the source code.">
27
 
28
        <mkdir dir="${build.classes.dir}"/>
29
        <javac  destdir="${build.classes.dir}"
30
				sourcepath=""
31
				srcdir="${src.dir}"
32
				includes = "com/erggroup/buildtool/daemon/*.java"
33
                includeAntRuntime   =	"off"
34
                debug               =   "${debug_mode}"
35
                deprecation         =   "off"
36
                optimize            =   "on"
37
                verbose             =   "off"
38
                classpathref        =   "base.path">
39
        </javac>
40
    </target>
41
 
42
    <target name="package" 
43
            depends="compile"
44
            description="Creates the jar archives.">
45
 
822 mhunt 46
			<delete file="DaemonManifest.txt"/>
47
			<property file="../version.properties"/>
48
 
49
			<manifest file="DaemonManifest.txt">
50
				<attribute name="Specification-Title" value="${PACKAGE}"/>
51
				<attribute name="Specification-Version" value="${MAJOR}"/>
52
				<attribute name="Specification-Vendor" value="ERG Transit Systems"/>
53
				<attribute name="Implementation-Title" value="com.erggroup.buildtool.daemon"/>
54
				<attribute name="Implementation-Version" value="${VERSION}"/>
55
				<attribute name="Implementation-Vendor" value="Technology Group"/>
56
				<attribute name="Built-By" value="${user.name}"/>
57
				<attribute name="Built-Date" value="${BUILDDATE}"/>
58
				<attribute name="Main-Class" value="com.erggroup.buildtool.daemon.BuildDaemon"/>
866 mhunt 59
				<attribute name="Class-Path" value="rippleEngineD.jar ant-abtD.jar smtpD.jar ant.jar ant-launcher.jar mail.jar ojdbc6.jar log4j-1.2.14.jar"/>
822 mhunt 60
			</manifest>
61
 
814 mhunt 62
            <mkdir dir="${pkg.dir}"/>
822 mhunt 63
            <jar jarfile="${pkg.dir}/${ant.project.name}${GBE_TYPE}.jar"
64
					manifest="${basedir}/DaemonManifest.txt"
814 mhunt 65
					basedir="${build.classes.dir}"
66
					includes = "com/erggroup/buildtool/daemon/*.class">
67
            </jar>
68
    </target>
69
 
70
    <target name="clean" 
71
            description="Cleans up the artifacts from previous builds.">
72
 
73
            <delete dir="${build.dir}"/>
74
 
75
    </target>
76
 
77
</project>
78