Copy dx.jar from ANDROID_SDK dir.

This commit is contained in:
Michael Herzberg 2015-10-05 23:49:00 +02:00
parent ae9e06a95b
commit 130ac94991
1 changed files with 15 additions and 1 deletions

View File

@ -35,6 +35,8 @@
<property name="bundleJavacTarget" value="${javacTarget}"/>
<property name="bundleBootClasspath" value="${bootclasspath}"/>
<property environment="env"/>
<target name="sampleLexPresent" depends="init">
<available file="${plugin.destination}/data/sample.lex" property="sample.lex.present"/>
</target>
@ -59,7 +61,19 @@
<available file="${plugin.destination}/data/android.jar" property="android.jar.present"/>
</target>
<target name="getJars" depends="fetchSampleLex,fetchSampleCup,fetchAndroidJar" />
<target name="copyDxJar" depends="dxJarPresent" unless="dx.jar.present">
<copy tofile="${basedir}/lib/dx.jar">
<first>
<fileset dir="${env.ANDROID_HOME}" includes="build-tools/*/lib/dx.jar"/>
</first>
</copy>
</target>
<target name="dxJarPresent" depends="init">
<available file="${basedir}/lib/dx.jar" property="dx.jar.present"/>
</target>
<target name="getJars" depends="fetchSampleLex,fetchSampleCup,fetchAndroidJar,copyDxJar" />
<target name="init" depends="properties">
<condition property="pluginTemp" value="${buildTempFolder}/plugins">