-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
81 lines (73 loc) · 2.62 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
<project name="fms" basedir= "." default="compile" >
<property name = "app-name" value = "fms" />
<property name = "project-dir" value = "${basedir}" />
<property name = "build-dir" value = "${project-dir}/build" />
<property name = "lib-dir" value = "${build-dir}/lib" />
<property name = "src-dir" value = "${project-dir}/src" />
<property name = "doc-dir" value = "${build-dir}/docs" />
<property name = "class-dir" value = "${build-dir}/classes" />
<property name = "build.compiler" value = "modern" />
<property name = "commons.net.dir" value = "${basedir}/3p/commons-net-3.3" />
<property name = "net.jar" value = "${lib-dir}/commons-net-3.3.jar" />
<path id="deps.classpath">
<pathelement location="${net.jar}" />
</path>
<target name = "init">
<mkdir dir = "${build-dir}" />
<mkdir dir = "${lib-dir}" />
<mkdir dir = "${doc-dir}"/>
<mkdir dir = "${class-dir}" />
<tstamp/>
</target>
<target name = "depend">
<copy file="${commons.net.dir}/commons-net-3.3.jar" todir="${lib-dir}" />
</target>
<target name = "compile" depends = "init, depend">
<javac destdir = "${class-dir}" classpathref="deps.classpath" debug="on" includeAntRuntime="false">
<src path="${src-dir}"/>
<include name="*/**"/>
</javac>
</target>
<target name="clean">
<delete dir="${build-dir}"/>
</target>
<target name="docs" depends="compile">
<mkdir dir="${doc-dir}/api"/>
<javadoc
packagenames="net.dougharris.stak"
sourcepath="${project-dir}/src"
destdir="${doc-dir}/api"
author="true"
version="true"
use="true"
doctitle="stak"
windowtitle="stak"
bottom = "Copyright © 2002 Keep It Simple Advice. All Rights Reserved"
/>
</target>
<target name="dist-jar" depends="init,compile">
<jar jarfile="${build-dir}/${app-name}.jar" >
<manifest>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Main-Class" value="fms/fms"/>
</manifest>
<fileset dir="${class-dir}">
<include name="*/**" />
</fileset>
<fileset dir="${src-dir}">
<include name="images/**" />
<include name="org/team537/fms/images/**" />
<exclude name="images/*.xcf" />
</fileset>
</jar>
</target>
<target name="src-jar" depends="init,compile">
<jar jarfile="${build-dir}/${app-name}.src.jar">
<fileset dir="${src-dir}">
<patternset id="sources">
<include name="*/**"/>
</patternset>
</fileset>
</jar>
</target>
</project>