-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
48 lines (40 loc) · 1.46 KB
/
build.xml
File metadata and controls
48 lines (40 loc) · 1.46 KB
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
<project name="Ewww" default="app" basedir=".">
<description>Build file for the Ewww Java App.</description>
<!-- set global properties for this build -->
<property name="builddir" location="./build"/>
<property name="distdir" location="./dist"/>
<property name="docsdir" location="./docs"/>
<property name="src" value="Ewww.java HTTPRequest.java"/>
<!-- THE BUILD TARGETS -->
<target name="initbuild">
<tstamp/> <!-- Create the time stamp -->
<!-- create the necessary directories -->
<mkdir dir="${builddir}"/>
<mkdir dir="${distdir}/${DSTAMP}"/>
</target>
<target name="app" depends="initbuild" description="build the Ewww application">
<javac includes="${src}" srcdir="." destdir="${builddir}" listfiles="yes"/>
<jar jarfile="${distdir}/${DSTAMP}/Ewww.jar" basedir="${builddir}">
<fileset dir="${builddir}"/>
<manifest>
<attribute name="Main-Class" value="Ewww"/>
</manifest>
</jar>
</target>
<target name="docs" description="build the documentation">
<mkdir dir="${docsdir}"/>
<javadoc destdir="${docsdir}">
<fileset dir=".">
<include name="*.java"/>
<exclude name="*Test*"/>
</fileset>
</javadoc>
</target>
<target name="clean" description="clean up the build files">
<delete dir="${builddir}"/>
</target>
<target name="spotless" depends="clean" description="clean up everything">
<delete dir="${distdir}"/>
<delete dir="${docsdir}"/>
</target>
</project>