forked from imcdonagh/image4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
43 lines (34 loc) · 1.31 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="image4j" default="all" basedir=".">
<property name="src.dir" value="${basedir}/src"/>
<property name="build.dir" value="${basedir}/build/classes"/>
<property name="dist.dir" value="${basedir}/dist"/>
<property name="docs.dir" value="${dist.dir}/javadoc"/>
<target name="all" depends="clean,build,jar,docs,sources"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="build" depends="init">
<javac destdir="${build.dir}" srcdir="${src.dir}" source="1.7" target="1.7">
</javac>
</target>
<target name="jar" depends="init">
<jar basedir="${build.dir}" file="${dist.dir}/image4j.jar"/>
</target>
<target name="docs" depends="init">
<javadoc destdir="${docs.dir}" windowtitle="image4j" overview="${src.dir}/overview.html">
<fileset dir="${src.dir}"/>
</javadoc>
<jar basedir="${docs.dir}" file="${dist.dir}/image4j-javadoc.jar"/>
<delete dir="${docs.dir}"/>
</target>
<target name="sources" depends="init">
<jar basedir="${src.dir}" file="${dist.dir}/image4j-sources.jar"/>
</target>
<target name="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${docs.dir}"/>
</target>
</project>