aboutsummaryrefslogtreecommitdiff
path: root/docker/ant/files/jdk-8/classpath/build.xml
blob: 2fc3887914537297c0bb2bbe4fd049dbad547140 (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
<project name="example" default="dist" basedir=".">
	<property name="src" location="src/main/java"/>
	<property name="build" location="build"/>
	<property name="dist" location="dist"/>
	<property name="build.sysclasspath" value="ignore"/>
	
	<target name="init">
		<tstamp/>
		<mkdir dir="${build}"/>
	</target>
	
	<target name="compile" depends="init" description="compile the source">
		<javac classpath="lombok.jar" srcdir="${src}" destdir="${build}" fork="true"/>
	</target>
	
	<target name="dist" depends="compile" description="generate the distribution">
		<mkdir dir="${dist}/lib"/>
		<jar jarfile="${dist}/lib/example-${DSTAMP}.jar" basedir="${build}"/>
	</target>
	
	<target name="clean" description="clean up">
		<delete dir="${build}"/>
		<delete dir="${dist}"/>
	</target>
</project>