blob: 99384a6e1b7b3484bce7deb1c4830b7c4460a0cb (
plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "project.dtd">
<project basedir="." default="all" name="TableLayout">
<!-- Set up the classpath for compilation and execution -->
<path id="project.class.path">
<pathelement location="."/>
</path>
<!-- Common settings for all targets -->
<target name="init" description="Initialize.">
<tstamp/>
</target>
<!-- Compile everything -->
<target depends="init" name="compile" description="Compile the project.">
<javac debug="true" deprecation="true" destdir="." srcdir=".">
<include name="org/freixas/**"/>
<include name="doc/example/**"/>
<classpath refid="project.class.path"/>
</javac>
</target>
<!-- Place the class files in a jar file -->
<target depends="compile" name="jar" description="Create a jar file.">
<mkdir dir="build"/>
<jar basedir="." compress="false" jarfile="build/tablelayout.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<section name="TableLayout">
<attribute name="Specification-Title" value="TableLayout Library"/>
<attribute name="Specification-Version" value="${version}"/>
<attribute name="Implementation-Title" value="TableLayout"/>
<attribute name="Implementation-Version" value="${version} ${TODAY}"/>
</section>
</manifest>
<exclude name="**/*.java"/>
<exclude name="doc"/>
<exclude name="build"/>
<include name="org/freixas/tablelayout/*.class"/>
<include name="**/*.gif"/>
<include name="**/*.properties"/>
</jar>
</target>
<!-- Build all -->
<target depends="jar" name="all" description="Build everything.">
<echo message="TableLayout library built."/>
</target>
<!-- Run Example1 -->
<target depends="compile" name="runExample1" description="Run Example1.">
<java classname="doc.example.Example1" failonerror="true" fork="true">
<classpath refid="project.class.path"/>
</java>
</target>
<!-- Run TableExplorer -->
<target depends="compile" name="runTableExplorer" description="Run TableExplorer.">
<java classname="doc.example.TableExplorer" failonerror="true" fork="true">
<classpath refid="project.class.path"/>
</java>
</target>
<!-- Build the documentation -->
<target depends="init" name="javadoc" description="Javadoc for TableLayout.">
<mkdir dir="doc/api"/>
<copy todir="doc/api">
<fileset dir="doc-templates">
<include name="**/*.html"/>
</fileset>
</copy>
<javadoc
sourcepath="org"
destdir="doc/api"
use="true"
author="true"
windowtitle="TableLayout"
footer="<small>Copyright © 2000-2005 Credence Systems Corporation<br>Licensed under the <a href='{@docRoot}/License.html' target='_top'>Artistic License</a></small>">
<classpath refid="project.class.path"/>
<packageset dir=".">
<include name="org/freixas/**"/>
</packageset>
<link href="http://java.sun.com/j2se/1.5/docs/api/" />
</javadoc>
</target>
<!-- Clean the build tree -->
<target depends="init" name="clean" description="Clean all build products.">
<delete>
<fileset dir="org/freixas">
<include name="**/*.class"/>
</fileset>
</delete>
<delete>
<fileset dir="doc/example">
<include name="**/*.class"/>
</fileset>
</delete>
<delete dir="build"/>
<delete dir="doc/api"/>
</target>
<!-- Generate a DTD for this buildfile -->
<target name="dtd" description="Generate a DTD">
<antstructure output="project.dtd"/>
</target>
</project>
|