forked from fjalvingh/domui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
51 lines (46 loc) · 1.42 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="to.etc.webapp.core" default="deploy" basedir=".">
<!--Initialization-->
<target name="init">
<!--Classpath-->
<path id="project.class.path">
<fileset dir="../..">
<include name="**/j2ee.jar"/>
<include name="**/to.etc.alg.jar"/>
<include name="**/jsr305.jar"/>
<include name="**/slf4j-api-*.jar"/>
<include name="**/logback-*.jar"/>
</fileset>
</path>
</target>
<!--Cleanup previous builds-->
<target name="clean" depends="init">
<delete dir="bin" />
</target>
<!--Prepare for compilation-->
<target name="prepare" depends="clean">
<mkdir dir="bin" />
</target>
<!--Compile project-->
<target name="compile" depends="prepare">
<javac srcdir="src" destDir="bin" classpathref="project.class.path" debug="on" source="1.5" target="1.5" />
<copy todir="bin" >
<fileset dir="src" casesensitive="no">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="doc" depends="init">
<mkdir dir="doc" />
<javadoc destdir="javadoc">
<fileset dir="src">
<include name="**/*.java" />
</fileset>
</javadoc>
<jar jarfile="${ant.project.name}-doc.jar" basedir="doc" compress="false" />
</target>
<!--Deploy project-->
<target name="deploy" depends="compile">
<jar jarfile="${ant.project.name}.jar" basedir="bin" compress="false" />
</target>
</project>