-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
84 lines (77 loc) · 3.15 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
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="jFUSE">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="java.target.level" value="1.5"/>
<property name="java.source.level" value="1.5"/>
<property name="java.source.dir" value="src/java"/>
<property name="manifest.source.dir" value="src/META-INF"/>
<property name="builddir" value=".build~"/>
<property name="libdir" value="lib"/>
<property name="manifest.filename" value="${manifest.source.dir}/MANIFEST.MF"/>
<property name="outjar.filename" value="${libdir}/jfuse.jar"/>
<path id="build.classpath">
<pathelement location="${builddir}"/>
<!-- <pathelement location="${libdir}/swing-layout-1.0.3.jar"/> -->
</path>
<path id="javadoc.classpath">
<!-- empty because jFUSE doesn't depend on any external libraries at the moment -->
</path>
<target name="all" description="Builds everything from scratch and generates the internal development javadocs." depends="cleanall,jar,javadoc-internal"/>
<target name="init">
<mkdir dir="${builddir}"/>
</target>
<target name="clean" description="Cleans all intermediate build files.">
<delete dir="${builddir}"/>
</target>
<target name="cleanall" depends="clean"/>
<!--<target name="build" depends="build-subprojects,build-project"/>-->
<!--<target name="build-subprojects"/>-->
<target name="build-project" depends="init">
<!-- <echo message="${ant.project.name}: ${ant.file}"/> -->
<javac debug="true"
debuglevel="${debuglevel}"
destdir="${builddir}"
source="${java.source.level}"
target="${java.target.level}"
deprecation="on">
<compilerarg value="-Xlint:all"/>
<src path="${java.source.dir}"/>
<classpath refid="build.classpath"/>
</javac>
</target>
<!--<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>-->
<target name="jar" description="Build the jfuse.jar file." depends="build-project">
<jar destfile="${outjar.filename}" basedir="${builddir}" manifest="${manifest.filename}"/>
</target>
<target name="javadoc-internal" description="Builds the internal development javadocs (all private fields included).">
<javadoc destdir="javadoc.~"
packagenames="org.catacombae.*"
sourcepath="${java.source.dir}"
access="private"
author="true"
version="true"
use="true"
windowtitle="jFUSE API">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<classpath>
<path refid="javadoc.classpath"/>
</classpath>
</javadoc>
</target>
<target name="javadoc-user" description="Builds the API javadocs.">
<javadoc destdir="javadoc"
packagenames="org.catacombae.*"
sourcepath="${java.source.dir}"
access="protected"
author="true"
version="true"
use="true"
windowtitle="jFUSE API">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<classpath>
<path refid="javadoc.classpath"/>
</classpath>
</javadoc>
</target>
</project>