I have a catalog full of cans (felix bundles). I want to iterate over all these banks and create dex'd versions. I intend to deploy each of these dex'd jars as a standalone apk, as they are links. Feel free to straighten me if I approach this from the wrong direction.
This first part is just trying to create the appropriate .dex file for each jar. However, when I run this, I get a "no resources" error coming from Ant.
Is this correct, or is there a simpler approach to simply enter the jar and display the dex'd version of this jar? $ {File} is valid because it splashes out the file name in the echo command.
<target name="dexBundles" description="Run dex on all the bundles"> <taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${basedir}/libs/ant-contrib.jar" /> <echo>Starting</echo> <for param="file"> <path> <fileset dir="${pre.dex.dir}"> <include name="**/*.jar" /> </fileset> </path> <sequential> <echo message="@{file}" /> <echo>Converting jar file @{file} into ${post.dex.dir}/@{file}.class...</echo> <apply executable="${dx}" failonerror="true" parallel="true" verbose="true"> <arg value="--dex" /> <arg value="--output=${post.dex.dir}/${file}.dex" /> <arg path="@{file}" /> </apply> </sequential> </for> <echo>Finished</echo> </target>
source share