-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.xml
129 lines (112 loc) · 4.34 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
<project name="MIRC" default="all" basedir=".">
<property name="version" value="Z206"/>
<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="libraries" value="${basedir}/libraries"/>
<property name="products" value="${basedir}/products"/>
<property name="documentation" value="${basedir}/documentation"/>
<property name="title" value="MIRC"/>
<property name="copyright" value="Copyright 2017 Radiological Society of North America"/>
<property name="description" value="CTP/TFS for teaching files"/>
<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"/>
<pathelement location="${libraries}/mirc/gif.jar"/>
<!--<pathelement location="${libraries}/mirc/jcodec.jar"/>-->
<pathelement location="${libraries}/mirc/batik-rasterizer-partial.jar"/>
</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.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="false"
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="${files}"/>
<fileset dir="${resources}"/>
</copy>
<jar jarfile="${build}/CTP/libraries/MIRC.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="**" excludes="copier**"/>
</jar>
<jar jarfile="${build}/CTP/Copier.jar">
<manifest>
<attribute name="Main-Class" value="copier.MircSiteCopier"/>
<attribute name="Implementation-Version" value="${today} @ ${now}"/>
<attribute name="Class-Path" value="
libraries/CTP.jar
libraries/MIRC.jar
libraries/dcm4che.jar
libraries/jdbm.jar
libraries/util.jar
libraries/log4j.jar"/>
</manifest>
<fileset dir="${build}" includes="copier/**" excludes="mirc/**"/>
</jar>
</target>
<target name="installer" depends="jar">
<copy overwrite="true" todir="${build}/CTP/libraries">
<fileset dir="${libraries}" includes="**"/>
</copy>
<copy overwrite="true" todir="${build}/config">
<fileset dir="${source}/config" includes="*.*"/>
</copy>
<jar destfile="${products}/TFS-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/**"/>
<fileset dir="${build}"
includes="CTP/** config/**"/>
</jar>
</target>
<target name="javadocs">
<mkdir dir="${documentation}"/>
<javadoc destdir="${documentation}" sourcepath="${java}" classpathref="classpath"
doctitle="${title}" windowtitle="${title}" bottom="${copyright}">
<package name="mirc.*"/>
</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>