-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.xml
More file actions
90 lines (79 loc) · 2.91 KB
/
build.xml
File metadata and controls
90 lines (79 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<project name="Util" default="all" basedir=".">
<property name="name" value="util"/>
<property name="build" value="${basedir}/build"/>
<property name="source" value="${basedir}/source"/>
<property name="java" value="${source}/java"/>
<property name="files" value="${source}/files"/>
<property name="libraries" value="${basedir}/libraries"/>
<property name="products" value="${basedir}/products"/>
<property name="documentation" value="${basedir}/documentation"/>
<property name="title" value="Util"/>
<property name="copyright" value="Copyright 2010 Radiological Society of North America"/>
<property name="ctp" value="D:/Development/CTP"/>
<path id="classpath">
<pathelement location="${ctp}/libraries/jdbm.jar"/>
<pathelement location="${ctp}/libraries/log4j/log4j-1.2-api-2.17.2.jar"/>
</path>
<target name="clean">
<delete dir="${build}" failonerror="false"/>
<delete dir="${documentation}" failonerror="false"/>
</target>
<target name="init">
<echo message="=================================================="/>
<echo message="Building ${ant.project.name}"/>
<echo message="=================================================="/>
<tstamp>
<format property="today" pattern="yyyy.MM.dd"/>
<format property="now" pattern="HH:mm:ss z"/>
</tstamp>
<echo message="Time now ${now}"/>
<echo message="ant.java.version = ${ant.java.version}" />
<mkdir dir="${build}"/>
<mkdir dir="${products}"/>
</target>
<target name="compile" depends="init">
<javac destdir="${build}" optimize="on"
classpathref="classpath"
includeantruntime="false"
debug="true" debuglevel="lines,vars,source">
<src path="${java}"/>
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:deprecation"/>
</javac>
<copy overwrite="true" todir="${build}">
<fileset dir="${files}"/>
</copy>
</target>
<target name="jar" depends="compile">
<jar jarfile="${products}/${name}.jar">
<manifest>
<attribute name="Date" value="${today} at ${now}"/>
<attribute name="Java-Version" value="${ant.java.version}"/>
<attribute name="Class-Path" value=""/>
</manifest>
<fileset dir="${build}" />
</jar>
</target>
<target name="deploy">
<copy overwrite="true" file="${products}/${name}.jar" todir="${ctp}/libraries"/>
<tstamp>
<format property="end" pattern="HH:mm:ss"/>
</tstamp>
<echo message="Time now ${end}"/>
</target>
<target name="javadocs">
<mkdir dir="${documentation}"/>
<javadoc destdir="${documentation}" sourcepath="${java}" classpathref="classpath"
additionalparam="-Xdoclint:none"
doctitle="${title}" windowtitle="${title}" bottom="${copyright}">
<package name="org.*"/>
</javadoc>
</target>
<target name="all" depends="clean, jar, deploy, javadocs">
<tstamp>
<format property="today" pattern="yyyy.MM.dd"/>
<format property="now" pattern="HH:mm:ss z"/>
</tstamp>
<echo message="Time now ${now}"/>
</target>
</project>