• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<project name="tween-engine-java" default="all" basedir=".">
2
3	<!-- ****************************************************************** -->
4	<!-- Definitions -->
5	<!-- ****************************************************************** -->
6
7	<!-- version -->
8	<property name="version" value="6.3.3" />
9
10	<!-- projects properties -->
11	<property name="api.dir" value="api/" />
12	<property name="api.name" value="tween-engine-api" />
13
14	<!-- ****************************************************************** -->
15	<!-- Build tasks -->
16	<!-- ****************************************************************** -->
17
18	<!-- clean -->
19	<target name="clean">
20		<delete dir="build/" />
21	</target>
22
23	<!-- init -->
24	<target name="init" depends="clean">
25		<mkdir dir="build/${api.dir}/bin/" />
26	</target>
27
28	<!-- compile -->
29	<target name="compile" depends="init">
30		<javac target="1.6" source="1.6" debug="on" srcdir="${api.dir}/src/" destdir="build/${api.dir}/bin/" />
31	</target>
32
33	<!-- package -->
34	<target name="package" depends="compile">
35		<!-- api -->
36		<jar destfile="build/${api.dir}/${api.name}.jar" basedir="build/${api.dir}/bin/" />
37		<jar destfile="build/${api.dir}/${api.name}-sources.jar" basedir="${api.dir}/src/" />
38	</target>
39
40	<!-- zip -->
41	<target name="zip" depends="package">
42		<zip destfile="${api.name}-${version}.zip">
43			<fileset dir="build/${api.dir}/" includes="*.jar" />
44		</zip>
45	</target>
46
47	<!-- all -->
48	<target name="all" depends="zip">
49		<antcall target="clean"/>
50	</target>
51</project>
52