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

@ -2,6 +2,11 @@
<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" />
<path id="res.classpath">
<fileset dir="/opt/android-sdk/platforms/android-22/" includes="**/*.jar" />
</path>
<target name="init"> <target name="init">
<mkdir dir="${build.dir}" /> <mkdir dir="${build.dir}" />
@ -10,11 +15,12 @@
<target name="compile" depends="init"> <target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} --> <!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build.dir}"/> <javac srcdir="${src}" destdir="${build.dir}" classpathref="res.classpath" includeantruntime="false" />
</target> </target>
<target name="dist" depends="compile"> <target name="dist" depends="compile">
<jar destfile="${dist.dir}/nrz-androidlib.jar" basedir="${build.dir}" /> <jar destfile="${dist.dir}/nrz-androidlib.jar" basedir="${build.dir}">
</jar>
</target> </target>
<target name="clean"> <target name="clean">