-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
133 lines (113 loc) · 4.3 KB
/
build.xml
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<project name="ISN" default="all" basedir=".">
<property name="version" value="R39"/>
<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="resources" value="${source}/resources"/>
<property name="ctp" value="../CTP"/>
<property name="isn" value="org/rsna/isn"/>
<property name="libraries" value="${basedir}/libraries"/>
<property name="isnlib" value="${basedir}/libraries/isn"/>
<property name="ohtlib" value="${basedir}/libraries/oht"/>
<property name="xmllib" value="${basedir}/libraries/xml"/>
<property name="products" value="${basedir}/products"/>
<property name="documentation" value="${basedir}/documentation"/>
<property name="title" value="ISN"/>
<property name="copyright" value="Copyright 2012 Radiological Society of North America"/>
<property name="description" value="CTP/ISN for the Image Sharing Project"/>
<property name="ctpisn" value="D:/Development/ISN-CTP"/>
<path id="classpath">
<pathelement location="${ctp}/libraries/CTP.jar"/>
<pathelement location="${ctp}/libraries/util.jar"/>
<pathelement location="${ctp}/libraries/dcm4che.jar"/>
<pathelement location="${ctp}/libraries/log4j.jar"/>
<pathelement location="${ctp}/libraries/jdbm.jar"/>
<fileset dir="${isnlib}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${xmllib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build}" failonerror="false"/>
<delete dir="${documentation}" failonerror="false"/>
</target>
<target name="init">
<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.version = ${ant.version}" />
<echo message="ant.java.version = ${ant.java.version}" />
<mkdir dir="${build}"/>
<mkdir dir="${build}/CTP"/>
<mkdir dir="${build}/CTP/libraries"/>
<mkdir dir="${products}"/>
</target>
<target name="compile" depends="init">
<javac destdir="${build}" optimize="on"
classpathref="classpath"
includeantruntime="true"
debug="true" debuglevel="lines,vars,source">
<src path="${java}"/>
<!--<compilerarg value="-Xlint:unchecked"/>-->
</javac>
</target>
<target name="jar" depends="compile">
<copy overwrite="true" todir="${build}">
<fileset dir="${resources}"/>
</copy>
<jar jarfile="${build}/CTP/libraries/isn/ISN.jar">
<manifest>
<attribute name="Version" value="${version}"/>
<attribute name="Date" value="${today} at ${now}"/>
<attribute name="Java-Version" value="${ant.java.version}"/>
</manifest>
<fileset dir="${build}" includes="**"/>
</jar>
</target>
<target name="installer" depends="jar">
<copy overwrite="true" todir="${build}/CTP/libraries">
<fileset dir="${libraries}" includes="**"/>
</copy>
<copy overwrite="true" todir="${build}/CTP">
<fileset dir="${files}" includes="**"/>
</copy>
<copy overwrite="true" todir="${build}/config">
<fileset dir="${source}/config" includes="*.*"/>
</copy>
<jar destfile="${products}/ISN-installer.jar">
<manifest>
<attribute name="Main-Class" value="org.rsna.installer.Installer"/>
<attribute name="Date" value="${today} at ${now}"/>
<attribute name="Java-Version" value="${ant.java.version}"/>
<attribute name="Version" value="${version}"/>
<attribute name="Description" value="${description}"/>
</manifest>
<fileset dir="${ctp}/build"
includes="org/rsna/installer/Installer** CTP/**"
excludes="CTP/log4j.properties"/>
<fileset dir="${build}"
includes="CTP/** config/**"/>
</jar>
<copy overwrite="true" todir="${ctpisn}">
<fileset dir="${products}" includes="ISN-installer.jar"/>
</copy>
</target>
<target name="javadocs">
<mkdir dir="${documentation}"/>
<javadoc destdir="${documentation}" sourcepath="${java}" classpathref="classpath"
doctitle="${title}" windowtitle="${title}" bottom="${copyright}">
<package name="org.rsna.isn.*"/>
</javadoc>
</target>
<target name="all" depends="clean, installer, javadocs">
<tstamp>
<format property="end" pattern="HH:mm:ss"/>
</tstamp>
<echo message="Time now ${end}"/>
</target>
</project>