<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">
		<javac srcdir="${src}" destdir="${build}"
		       includeantruntime="false"/>
	</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>

<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">
		<javac srcdir="${src}" destdir="${build}"
		       source="1.5" target="1.5" includeantruntime="false"/>
	</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>

Build for Java 1.5 to avoid compatibility issues
Build for Java 1.5 to avoid compatibility issues

cf. https://code.google.com/p/android/issues/detail?id=22970

Signed-off-by: David Woodhouse <b460d66aaf00c296a3db1c1d9eeafc081d5f7d70@intel.com>
