-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.xml
92 lines (83 loc) · 3.85 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="oviyam2" default="main">
<property name="vendor" value="Raster Images" />
<property name="version" value="2.0" />
<property name="source" location="src" />
<property name="output" location="target" />
<property name="web.dir" location="web" />
<property name="lib.dir" location="${web.dir}/WEB-INF/lib" />
<property name="classes" location="${web.dir}/WEB-INF/classes" />
<property name="war.dir" location="${output}/war" />
<property name="commons-cli-1.2.jar" value="${lib.dir}/commons-cli-1.2.jar" />
<property name="dcm4che-core-2.0.27.jar" value="${lib.dir}/dcm4che-core-2.0.27.jar" />
<property name="dcm4che-filecache-2.0.27.jar" value="${lib.dir}/dcm4che-filecache-2.0.27.jar" />
<property name="dcm4che-net-2.0.27.jar" value="${lib.dir}/dcm4che-net-2.0.27.jar" />
<property name="dcm4che-tool-dcmqr-2.0.27.jar" value="${lib.dir}/dcm4che-tool-dcmqr-2.0.27.jar" />
<property name="getopt.jar" value="${lib.dir}/getopt.jar" />
<property name="json.jar" value="${lib.dir}/json.jar" />
<property name="jstl.jar" value="${lib.dir}/jstl.jar" />
<property name="standard.jar" value="${lib.dir}/standard.jar" />
<property name="dcm4che-image-2.0.27.jar" value="${lib.dir}/dcm4che-image-2.0.27.jar" />
<property name="dcm4che-imageio-2.0.27.jar" value="${lib.dir}/dcm4che-imageio-2.0.27.jar" />
<property name="dcm4che.jar" value="${lib.dir}/dcm4che.jar" />
<property name="jboss-system.jar" value="${lib.dir}/jboss-system.jar" />
<property name="json_simple-1.1.jar" value="${lib.dir}/json_simple-1.1.jar" />
<property name="jsp-api.jar" value="${lib.dir}/jsp-api.jar" />
<property name="log4j-1.2.13.jar" value="${lib.dir}/log4j-1.2.13.jar" />
<property name="servlet-api.jar" value="${lib.dir}/servlet-api.jar" />
<property name="simple-xml-2.6.7.jar" value="${lib.dir}/simple-xml-2.6.7.jar" />
<property name="slf4j-api-1.4.3.jar" value="${lib.dir}/slf4j-api-1.4.3.jar" />
<property name="slf4j-log4j12-1.4.3.jar" value="${lib.dir}/slf4j-log4j12-1.4.3.jar" />
<property name="vtk.jar" value="${lib.dir}/vtk.jar" />
<path id="ref.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="main" depends="init,compile,war">
<property name="cp" refid="ref.classpath" />
<echo message="${cp}" />
</target>
<target name="clean">
<delete dir="${output}" />
</target>
<target name="init">
<mkdir dir="${output}/classes" />
<mkdir dir="${output}/classes/resources" />
<mkdir dir="${output}/classes/conf" />
</target>
<target name="compile" depends="init">
<javac srcdir="${source}" debug="on" destdir="${output}/classes">
<classpath refid="ref.classpath"/>
</javac>
<copy todir="${output}/classes/resources">
<fileset dir="${source}/resources" includes="**/*" />
</copy>
<copy todir="${output}/classes/conf">
<fileset dir="${source}/conf" includes="**/*" />
</copy>
</target>
<target name="war" depends="compile">
<copy todir="${classes}">
<fileset dir="${output}/classes" includes="**/*" />
</copy>
<mkdir dir="${classes}" />
<mkdir dir="${output}/war" />
<war destFile="${war.dir}/${ant.project.name}.war" webxml="${web.dir}/WEB-INF/web.xml" update="true">
<manifest>
<attribute name="Implementation-Title" value="oviyam2-web"/>
<attribute name="Implementation-Version" value="${version} ${TODAY}"/>
<attribute name="Implementation-Vendor" value="${vendor}"/>
</manifest>
<fileset dir="${web.dir}">
<exclude name="**/web.xml" />
<exclude name="WEB-INF/lib/dcm4che.jar" />
<exclude name="WEB-INF/lib/log4j-1.2.13.jar"/>
<exclude name="WEB-INF/lib/slf4j-api-1.4.3.jar" />
<exclude name="WEB-INF/lib/slf4j-log4j12-1.4.3.jar" />
<exclude name="WEB-INF/lib/jsp-api.jar"/>
<exclude name="WEB-INF/lib/servlet-api.jar"/>
</fileset>
</war>
</target>
</project>