How to include custom Jars to the build ?

Monkey Targets Forums/Android/How to include custom Jars to the build ?

Rushino(Posted 2012) [#1]
Hi there,

I was wondering how do you add custom jars to the ant build script ? Any ideas ?

Thanks!


Rushino(Posted 2012) [#2]
I think ive been able to do it ! It seem to work.

I added this..

<path id="build.classpath">
<fileset dir="libs">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>

to the ant.properties and build.properties file and then added my libs to the libs directory (of the target). Do not forget to backup yoiur target specific directory before modifying any files.


Xaron(Posted 2012) [#3]
Thanks for that!


Sub_Zero(Posted 2012) [#4]
Nice

To include .java files, have a look here: http://www.monkeycoder.co.nz/Community/posts.php?topic=3377#36957


Rushino(Posted 2012) [#5]
Thanks Sub_Zero.