summaryrefslogtreecommitdiff
blob: 3d4d4fba16e13796d57d219a0ddaacb71afbd8c0 (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
<?xml version="1.0" ?><project default="jar" name="cxprolog">

	<!-- some properties -->
	<property name="src.dir" value="lib/cxprolog/java/prolog"/>
	<property name="build.dir" value="build"/>
	<property name="dist.dir" value="dist"/>
	<property file="build.properties"/>

	<path id="compile.classpath">
		<pathelement path="${gentoo.classpath}"/>
	</path>

	<!-- init -->
	<target name="init">
		<tstamp/>
		<mkdir dir="${dist.dir}"/>
		<mkdir dir="${build.dir}"/>
	</target>	

	<!-- compile everything -->
	<target depends="init" name="compile">
		<javac deprecation="off"
			destdir="${build.dir}"
			encoding="ISO-8859-1"
			srcdir="${src.dir}"
			source="1.8"
			target="1.8">
			<classpath>
				<path refid="compile.classpath"/>
			</classpath>
		</javac>
		<copy todir="${build.dir}">
			<fileset dir="${src.dir}">
				<exclude name="**/*.java"/>
			</fileset>
		</copy>
	</target>

	<!-- build the jar file -->
	<target depends="compile" name="jar">
		<jar basedir="${build.dir}" jarfile="${dist.dir}/prolog.jar"/>
	</target>

	<!-- clean up -->
	<target name="clean">
		<delete dir="${build.dir}"/>
		<delete dir="${dist.dir}"/>
	</target>
</project>