Created
June 19, 2012 11:01
-
-
Save otarza/2953539 to your computer and use it in GitHub Desktop.
Titanium module build xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="calc" default="cleanup"> | |
<description> | |
Ant build script for Titanium Android module calc | |
</description> | |
<property name="modcopy" location="/home/oto/TitaniumStudioWorkspace1/tweetie/modules/android"/> | |
<property name="module.archive" value="org.appcelerator.calc-android-0.1.zip" /> | |
<property name="build.dir" value="${basedir}/build"/> | |
<property name="ti.module.root" location="${basedir}"/> | |
<property file="build.properties" /> | |
<import file="${titanium.platform}/../module/android/build.xml"/> | |
<target name="cleanup"> | |
<delete includeEmptyDirs="true"> | |
<fileset dir="${ti.module.root}/dist" includes="**/*"/> | |
</delete> | |
<delete includeEmptyDirs="true"> | |
<fileset dir="${ti.module.root}/build" includes="**/*"/> | |
</delete> | |
<delete includeEmptyDirs="true"> | |
<fileset dir="${modcopy}" includes="**/*" /> | |
</delete> | |
<antcall target="dist"/> | |
<unzip src="${ti.module.root}/dist/${module.archive}" dest="${ti.module.root}/dist"/> | |
<copy todir="${modcopy}" overwrite="true"> | |
<fileset dir="${ti.module.root}/dist/modules/android"/> | |
</copy> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment