summaryrefslogtreecommitdiff
blob: fbcd199a4d9ea498a103c75fb41bce1342025446 (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
<project name="laf_plugin" default="dist" basedir=".">
	<description>
		Simple build file made by Alistair Bush for the kunststoff
		project.
	</description>

	<property name="src" location="./src"/>
	<property name="build" location="./build"/>
	<property name="dist" location="./dist"/>
	<property name="api" location="api"/>
	
	<target name="init">
		<tstamp/>
		<mkdir dir="${build}"/>
		<mkdir dir="${api}"/>
	</target>

	<target name="javadoc" depends="init" description="Produce JavaDoc">
		<javadoc sourcepath="${src}" destdir="${api}"/>
	</target>

	<target name="compile" depends="init" description="compile the source">
		<javac srcdir="${src}" destdir="${build}" >
		<include name="**/*.java" />
		</javac>
	</target>

	<target name="dist" depends="compile"
		description="generate the distribution" >
	
		<copy todir="build">
			<fileset dir="src">
				<exclude name="**/*.java"/>
			</fileset>
		</copy>
		<mkdir dir="${dist}" />
		<jar jarfile="${dist}/laf-plugin.jar" basedir="${build}"/>
	</target>

	<target name="clean" description="Clean up">
		<delete dir="${build}" />
		<delete dir="${dist}" />
		<delete file="./*.jar" />
	</target>

</project>