-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
128 lines (106 loc) · 4.6 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="segyrest">
<target name="init">
<tstamp />
<echo message="java home: ${java.home}" />
<echo message="java version: ${java.version}" />
<echo message="ant java version: ${ant.java.version}" />
<echo message="${ant.version}" />
<property name="build.dir" value="build"/>
</target>
<path id="build.classpath">
<pathelement location="../Environment/Jena-2.0/lib/jena.jar"/>
<pathelement location="../Environment/win32/j2sdkee-1.3.1/lib/j2ee.jar"/>
</path>
<target name="clean" depends="init">
<delete dir="${build.dir}" verbose="false"/>
<delete>
<fileset dir="." includes="*.jar *.war"/>
</delete>
</target>
<target name="all" depends="init, war"/>
<target name="war" depends="init,jar">
<war warfile="segy.war" webxml="./WEB-INF/web.xml">
<!--fileset dir="./" includes="*.jar"/-->
<webinf dir="./WEB-INF" includes="**/*" excludes="web.xml, **/*.jar, **/*.class"/>
<lib dir="../Environment/Jena-2.0/lib" includes="*.jar" excludes="junit.jar"/>
<classes dir="${build.dir}/SegyServlet/classes" includes="**/*" />
<classes dir="${build.dir}/SegyShare/classes" includes="**/*" />
<classes dir="${build.dir}/RenderTag/classes" includes="**/*" />
<classes dir="${build.dir}/scout/classes" includes="**/*" />
</war>
</target>
<target name="jar" depends="init,jar.SegyShare, jar.RenderTag, jar.SegyServlet, jar.scout"/>
<target name="jar.SegyShare" depends="compile.SegyShare">
<jar destfile="SegyShare.jar"
basedir="${build.dir}/SegyShare/classes"
excludes="**/Test.class"
/>
</target>
<target name="jar.SegyServlet" depends="compile.SegyServlet">
<jar destfile="SegyServlet.jar"
basedir="${build.dir}/SegyServlet/classes"
excludes="**/Test.class"
/>
</target>
<target name="jar.RenderTag" depends="compile.RenderTag">
<jar destfile="RenderTag.jar"
basedir="${build.dir}/RenderTag/classes"
excludes="**/Test.class"
/>
</target>
<target name="jar.scout" depends="compile.scout">
<jar destfile="scout.jar"
basedir="${build.dir}/scout/classes"
excludes="**/Test.class"
/>
</target>
<target name="compile.SegyShare" depends="init">
<mkdir dir="${build.dir}/SegyShare/classes"/>
<javac
srcdir="SegyShare/src"
destdir="${build.dir}/SegyShare/classes"
excludes="**/.svn/**/*" debug="on" deprecation="on" >
<classpath refid="build.classpath"/>
</javac>
</target>
<target name="compile.SegyServlet" depends="init, jar.scout">
<mkdir dir="${build.dir}/SegyServlet/classes"/>
<javac
srcdir="SegyServlet/src"
destdir="${build.dir}/SegyServlet/classes"
excludes="**/.svn/**/*" debug="on" deprecation="on" >
<classpath refid="build.classpath"/>
<classpath>
<pathelement location="scout.jar"/>
</classpath>
</javac>
<copy todir="${build.dir}/SegyServlet/classes">
<fileset dir="SegyServlet/src" includes="**/*" excludes="**/*.java,**/.svn/**/*"/>
</copy>
</target>
<target name="compile.RenderTag" depends="init, jar.scout">
<mkdir dir="${build.dir}/RenderTag/classes"/>
<javac
srcdir="RenderTag/src"
destdir="${build.dir}/RenderTag/classes"
excludes="**/.svn/**/*" debug="on" deprecation="on">
<classpath refid="build.classpath"/>
<classpath>
<pathelement location="scout.jar"/>
</classpath>
</javac>
</target>
<target name="compile.scout" depends="init">
<mkdir dir="${build.dir}/scout/classes"/>
<javac
srcdir="scout/src"
destdir="${build.dir}/scout/classes"
excludes="**/.svn/**/*" debug="on" deprecation="on" >
<classpath refid="build.classpath"/>
</javac>
<copy todir="${build.dir}/scout/classes">
<fileset dir="scout/src" includes="**/*" excludes="**/*.java,**/.svn/**/*" />
</copy>
</target>
</project>