build.xml 953 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<project name="LibOpenConnect" default="dist" basedir=".">
	<property name="build" location="build"/>
	<property name="dist"  location="dist"/>
	<property name="src"   location="src"/>

	<property name="jar_lib" location="${dist}/openconnect-wrapper.jar"/>
	<property name="jar_app" location="${dist}/example.jar"/>

	<target name="init">
		<mkdir dir="${build}"/>
	</target>

	<target name="compile" depends="init">
14
		<javac srcdir="${src}" destdir="${build}" encoding="utf-8"
Kevin Cernekee's avatar
Kevin Cernekee committed
15
		       source="1.8" target="1.8" includeantruntime="false"/>
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
	</target>

	<target name="dist" depends="compile">
		<jar jarfile="${jar_lib}" basedir="${build}"
		     includes="org/infradead/libopenconnect/*" />

		<jar jarfile="${jar_app}" basedir="${build}">
			<manifest>
				<attribute name="Main-Class" value="com.example.LibTest" />
			</manifest>
		</jar>
	</target>

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