-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
61 lines (54 loc) · 1.79 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
<project default="jar">
<target name="clean">
<delete dir="build" />
<delete file="HyperbolicStorage.war" />
<delete file="HyperbolicStorage.jar" />
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="WebContent/WEB-INF/classes">
<include name="**/*.class" />
</fileset>
</delete>
</target>
<target name="compile">
<mkdir dir="build" />
<javac srcdir="src" destdir="build" includeantruntime="true">
<classpath>
<pathelement location="/usr/share/java/servlet-api-2.5.jar" />
<fileset dir="WebContent/WEB-INF/lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="war" depends="compile">
<copy todir="WebContent/WEB-INF/classes">
<fileset dir="build">
<include name="**/*.class" />
</fileset>
</copy>
<war destfile="HyperbolicStorage.war" webxml="WebContent/WEB-INF/web.xml">
<fileset dir="WebContent/">
<include name="**/*.jsp"/>
<include name="**/*.html"/>
<include name="**/*.js"/>
<include name="**/*.css"/>
<include name="**/*.png"/>
<include name="**/*.jpg"/>
<include name="**/*.gif"/>
<include name="WEB-INF/**/*.class"/>
<include name="WEB-INF/**/*.jar"/>
<exclude name="**/*~"/>
<exclude name="**/.svn/**"/>
<exclude name="src/**"/>
</fileset>
</war>
</target>
<target name="jar" depends="compile">
<jar jarfile="HyperbolicStorage.jar" basedir="build">
<!-- <manifest> -->
<!-- <attribute name="Main-Class" value="???" /> -->
<!-- </manifest> -->
<zipfileset src="WebContent/WEB-INF/lib/BabuDB-0.5.6.jar" includes="**/*.class" />
</jar>
</target>
</project>