1
0
mirror of https://github.com/nerzhul/nrz-androidlib.git synced 2025-06-07 16:06:21 +00:00

Fix ant build

This commit is contained in:
Loic Blot 2015-04-02 13:56:56 +02:00
parent 78d19167f1
commit 3299cdafd0
2 changed files with 27 additions and 21 deletions

View File

@ -1 +1 @@
jar.libs.dir=./libs jar.libs.dir=libs

View File

@ -1,24 +1,30 @@
<project name="nrz-androidlib" default="dist" basedir="."> <project name="nrz-androidlib" default="dist" basedir=".">
<property name="dist.dir" location="dist" /> <property name="dist.dir" location="dist" />
<property name="src" location="src"/> <property name="src" location="src"/>
<property name="build.dir" location="build"/> <property name="build.dir" location="build"/>
<property file="ant.properties" />
<target name="init">
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build.dir}"/>
</target>
<target name="dist" depends="compile"> <path id="res.classpath">
<jar destfile="${dist.dir}/nrz-androidlib.jar" basedir="${build.dir}" /> <fileset dir="/opt/android-sdk/platforms/android-22/" includes="**/*.jar" />
</target> </path>
<target name="clean"> <target name="init">
<delete dir="${build.dir}" /> <mkdir dir="${build.dir}" />
<delete dir="${dist.dir}" /> <mkdir dir="${dist.dir}" />
</target> </target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build.dir}" classpathref="res.classpath" includeantruntime="false" />
</target>
<target name="dist" depends="compile">
<jar destfile="${dist.dir}/nrz-androidlib.jar" basedir="${build.dir}">
</jar>
</target>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
</project> </project>