2009-06-06 11:46:17 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="K9" default="help">
|
2008-11-02 01:51:00 -04:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
<!-- The local.properties file is created and updated by the 'android' tool.
|
|
|
|
It contains the path to the SDK. It should *NOT* be checked into
|
|
|
|
Version Control Systems. -->
|
2012-06-01 16:41:14 -04:00
|
|
|
<property file="local.properties" />
|
2011-10-25 22:07:06 -04:00
|
|
|
|
|
|
|
<!-- The ant.properties file can be created by you. It is only edited by the
|
|
|
|
'android' tool to add properties to it.
|
|
|
|
This is the place to change some Ant specific build properties.
|
2009-06-06 11:46:17 -04:00
|
|
|
Here are some properties you may want to change/update:
|
|
|
|
|
2010-03-23 21:11:49 -04:00
|
|
|
source.dir
|
2011-02-08 19:17:29 -05:00
|
|
|
The name of the source directory. Default is 'src'.
|
2010-03-23 21:11:49 -04:00
|
|
|
out.dir
|
2011-02-08 19:17:29 -05:00
|
|
|
The name of the output directory. Default is 'bin'.
|
2009-06-06 11:46:17 -04:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
For other overridable properties, look at the beginning of the rules
|
|
|
|
files in the SDK, at tools/ant/build.xml
|
|
|
|
|
2011-02-08 19:17:29 -05:00
|
|
|
Properties related to the SDK location or the project target should
|
|
|
|
be updated using the 'android' tool with the 'update' action.
|
2009-06-06 11:46:17 -04:00
|
|
|
|
2011-02-08 19:17:29 -05:00
|
|
|
This file is an integral part of the build system for your
|
|
|
|
application and should be checked into Version Control Systems.
|
2009-06-06 11:46:17 -04:00
|
|
|
|
|
|
|
-->
|
2011-10-25 22:07:06 -04:00
|
|
|
<property file="ant.properties" />
|
2009-06-06 11:46:17 -04:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
<!-- The project.properties file is created and updated by the 'android'
|
2011-02-08 19:17:29 -05:00
|
|
|
tool, as well as ADT.
|
2011-10-25 22:07:06 -04:00
|
|
|
|
|
|
|
This contains project specific properties such as project target, and library
|
|
|
|
dependencies. Lower level build properties are stored in ant.properties
|
|
|
|
(or in .classpath for Eclipse projects).
|
|
|
|
|
2011-02-08 19:17:29 -05:00
|
|
|
This file is an integral part of the build system for your
|
|
|
|
application and should be checked into Version Control Systems. -->
|
2011-10-25 22:07:06 -04:00
|
|
|
<loadproperties srcFile="project.properties" />
|
2011-02-08 19:17:29 -05:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
<!-- quick check on sdk.dir -->
|
|
|
|
<fail
|
2012-06-01 16:41:14 -04:00
|
|
|
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
|
2011-10-25 22:07:06 -04:00
|
|
|
unless="sdk.dir"
|
|
|
|
/>
|
2010-10-03 13:05:07 -04:00
|
|
|
|
2012-06-01 16:41:14 -04:00
|
|
|
<!--
|
|
|
|
Import per project custom build rules if present at the root of the project.
|
|
|
|
This is the place to put custom intermediary targets such as:
|
|
|
|
-pre-build
|
|
|
|
-pre-compile
|
|
|
|
-post-compile (This is typically used for code obfuscation.
|
|
|
|
Compiled code location: ${out.classes.absolute.dir}
|
|
|
|
If this is not done in place, override ${out.dex.input.absolute.dir})
|
|
|
|
-post-package
|
|
|
|
-post-build
|
|
|
|
-pre-clean
|
|
|
|
-->
|
|
|
|
<import file="custom_rules.xml" optional="true" />
|
2010-10-03 13:05:07 -04:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
<!-- Import the actual build file.
|
2008-10-27 21:12:36 -04:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
To customize existing targets, there are two options:
|
|
|
|
- Customize only one target:
|
|
|
|
- copy/paste the target into this file, *before* the
|
|
|
|
<import> task.
|
|
|
|
- customize it to your needs.
|
|
|
|
- Customize the whole content of build.xml
|
|
|
|
- copy/paste the content of the rules files (minus the top node)
|
|
|
|
into this file, replacing the <import> task.
|
|
|
|
- customize to your needs.
|
2010-01-15 00:02:27 -05:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
***********************
|
|
|
|
****** IMPORTANT ******
|
|
|
|
***********************
|
|
|
|
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
|
|
|
|
in order to avoid having your file be overridden by tools such as "android update project"
|
|
|
|
-->
|
|
|
|
<!-- version-tag: custom -->
|
2012-06-01 16:41:14 -04:00
|
|
|
<import file="${sdk.dir}/tools/ant/build.xml" />
|
2011-10-25 22:07:06 -04:00
|
|
|
|
|
|
|
<!-- K9 CUSTOM STUFF -->
|
2012-05-30 19:02:57 -04:00
|
|
|
|
2012-06-01 16:41:14 -04:00
|
|
|
<!-- out folders for a parent project if this project is an instrumentation project -->
|
|
|
|
<property name="rclib" value="${out.dir}/K9RemoteControl.jar" />
|
|
|
|
<property name="rcdir" value="com/fsck/k9/remotecontrol/**" />
|
|
|
|
|
2013-08-01 10:54:26 -04:00
|
|
|
<property name="changelog-path-src" value="res/xml/changelog_master.xml" />
|
2012-11-19 22:04:42 -05:00
|
|
|
<condition property="android.executable" value="android.bat">
|
|
|
|
<os family="windows" />
|
|
|
|
</condition>
|
|
|
|
<property name="android.executable" value="android" />
|
|
|
|
|
2012-06-01 16:41:14 -04:00
|
|
|
<target name="-get-version" depends="-get-version-name">
|
|
|
|
<echo>Building version number ${current-version-name}</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-get-version-name">
|
|
|
|
<xpath input="AndroidManifest.xml" expression="/manifest/@android:versionName" output="current-version-name" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-get-version-code">
|
|
|
|
<xpath input="AndroidManifest.xml" expression="/manifest/@android:versionCode" output="current-version-code" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-get-version-from-git">
|
|
|
|
<exec executable="git" failonerror="true" outputproperty="current-version-name" errorproperty="current-version-error">
|
|
|
|
<arg line="describe --tags" />
|
|
|
|
</exec>
|
|
|
|
<echo>Building version number ${current-version-name}</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-auto-incr-version">
|
|
|
|
<regex property="major" input="${current-version-name}" regexp="(\d+)\.\d+" select="\1" />
|
|
|
|
<regex property="minor" input="${current-version-name}" regexp="\d+\.(\d+)" select="\1" />
|
|
|
|
<math result="minor" operand1="${minor}" operation="+" operand2="1" datatype="int"/>
|
|
|
|
<if.contrib>
|
|
|
|
<length string="${minor}" when="eq" length="1" />
|
|
|
|
<then>
|
|
|
|
<var name="minor" value="00${minor}" />
|
|
|
|
</then>
|
|
|
|
<elseif>
|
|
|
|
<length string="${minor}" when="eq" length="2" />
|
|
|
|
<then>
|
|
|
|
<var name="minor" value="0${minor}" />
|
|
|
|
</then>
|
|
|
|
</elseif>
|
|
|
|
</if.contrib>
|
|
|
|
<regex property="version-name" input="${major}." regexp="(\d+.)" replace="\1${minor}" />
|
|
|
|
</target>
|
|
|
|
|
2013-08-01 11:21:52 -04:00
|
|
|
<target name="-pre-bump-check" depends="-get-version-name,-auto-incr-version">
|
2013-08-01 10:54:26 -04:00
|
|
|
<xpath
|
|
|
|
input="${changelog-path-src}"
|
|
|
|
expression="/changelog/release[@version='${version-name}']/@version"
|
|
|
|
output="changelog-test" />
|
|
|
|
|
|
|
|
<if.contrib>
|
|
|
|
<equals arg1="${changelog-test}" arg2="${version-name}" />
|
|
|
|
<else>
|
|
|
|
<fail>No changelog for ${version-name}.</fail>
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
|
|
|
|
<exec executable="git" failonerror="true" outputproperty="git-status" errorproperty="git-status-error">
|
|
|
|
<arg line="status -s ${changelog-path-src}" />
|
2013-07-06 23:33:38 -04:00
|
|
|
</exec>
|
2013-08-01 10:54:26 -04:00
|
|
|
<if.contrib>
|
|
|
|
<equals arg1="${git-status}" arg2="" />
|
|
|
|
<else>
|
|
|
|
<fail>Uncomitted changelog edits.</fail>
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
|
2013-08-01 11:21:52 -04:00
|
|
|
<!-- Check for a clean index, because it will be reset in -update-gh-pages-branch -->
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="diff-index --cached --quiet HEAD" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-set-version" depends="-get-version-name,-get-version-code">
|
|
|
|
<!-- pass -Dversion-name=4.200 to define the version instead of auto-incrementing it -->
|
|
|
|
<if.contrib>
|
|
|
|
<isset property="version-name" />
|
|
|
|
<else>
|
|
|
|
<runtarget target="-auto-incr-version" />
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
|
|
|
|
<echo>Setting version to ${version-name}</echo>
|
|
|
|
|
2012-06-01 16:41:14 -04:00
|
|
|
<replace file="AndroidManifest.xml"
|
|
|
|
token="android:versionName="${current-version-name}""
|
|
|
|
value="android:versionName="${version-name}"" summary="true"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<math result="new-version-code" operand1="${current-version-code}" operation="+" operand2="1" datatype="int"/>
|
|
|
|
<replace file="AndroidManifest.xml"
|
|
|
|
token="android:versionCode="${current-version-code}""
|
|
|
|
value="android:versionCode="${new-version-code}"" summary="true"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- rules -->
|
2013-08-01 11:21:52 -04:00
|
|
|
<target name="bump-version" depends="-pre-bump-check,-set-version,-commit-version,-update-gh-pages-branch,-push-version">
|
2012-06-01 16:41:14 -04:00
|
|
|
<echo>Bumped K-9 to ${version-name}</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-commit-version">
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="commit -m'Bumped manifest to ${version-name}' AndroidManifest.xml" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="tag ${version-name}" />
|
|
|
|
</exec>
|
2013-08-01 11:02:49 -04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Copy the changelog to the gh-pages branch. -->
|
|
|
|
<target name="-update-gh-pages-branch">
|
|
|
|
<exec executable="git" failonerror="true" outputproperty="git-branch-ref" errorproperty="git-branch-ref-error">
|
|
|
|
<arg line="symbolic-ref HEAD" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="symbolic-ref HEAD refs/heads/gh-pages" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="reset -q" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true" outputproperty="git-ls-tree" errorproperty="git-ls-tree-error">
|
2013-08-01 10:54:26 -04:00
|
|
|
<arg line="ls-tree ${git-branch-ref} ${changelog-path-src}" />
|
2013-08-01 11:02:49 -04:00
|
|
|
</exec>
|
|
|
|
<regex property="changelog-path-dst" input="${git-branch-ref}" regexp=".*/([^/]+$)" select="changelog_\1_branch.xml" />
|
|
|
|
<regex property="git-index-info" input="${git-ls-tree}" regexp="(.*\t).*" select="\1${changelog-path-dst}" />
|
|
|
|
<exec executable="git" failonerror="true" inputstring="${git-index-info}">
|
|
|
|
<arg line="update-index --index-info" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="commit -m'Update changelog for version ${version-name}'" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="symbolic-ref HEAD ${git-branch-ref}" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="git" failonerror="true">
|
|
|
|
<arg line="reset -q" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-push-version">
|
2012-06-01 16:41:14 -04:00
|
|
|
<exec executable="git" failonerror="true">
|
2013-08-01 10:54:45 -04:00
|
|
|
<arg line="push origin HEAD gh-pages tag ${version-name}" />
|
2012-06-01 16:41:14 -04:00
|
|
|
</exec>
|
|
|
|
</target>
|
2008-10-27 21:12:36 -04:00
|
|
|
|
2011-10-25 22:07:06 -04:00
|
|
|
<!-- Create the output directories if they don't exist yet. -->
|
|
|
|
<target name="rclib" depends="-compile">
|
|
|
|
<echo>Creating library ${rclib} for remote control applications</echo>
|
|
|
|
<jar destfile="${rclib}" basedir="${out.classes.dir}" includes="${rcdir}" />
|
|
|
|
</target>
|
2012-06-01 16:41:14 -04:00
|
|
|
|
|
|
|
<target name="upload" depends="clean,-get-version,release">
|
2009-11-24 12:52:08 -05:00
|
|
|
<echo>Uploading to Google Code using Google::Code::Upload</echo>
|
2012-06-01 16:41:14 -04:00
|
|
|
<move file="${out.final.file}" tofile="bin/k9-${current-version-name}-release.apk" />
|
|
|
|
<property name="gcode-project" value="k9mail" />
|
2009-11-24 12:52:08 -05:00
|
|
|
<exec executable="googlecode_upload.pl" failonerror="true">
|
|
|
|
<arg value="--summary" />
|
2012-06-01 16:41:14 -04:00
|
|
|
<arg value="${ant.project.name} ${current-version-name}" />
|
2009-11-24 12:52:08 -05:00
|
|
|
<arg value="--project" />
|
2012-06-01 16:41:14 -04:00
|
|
|
<arg value="${gcode-project}" />
|
|
|
|
<arg value="--user" />
|
2009-11-24 12:52:08 -05:00
|
|
|
<arg value="${gcode-user}" />
|
2012-06-01 16:41:14 -04:00
|
|
|
<arg value="--pass" />
|
2009-11-24 12:52:08 -05:00
|
|
|
<arg value="${gcode-pass}" />
|
2012-06-01 16:41:14 -04:00
|
|
|
<arg value="--labels" />
|
|
|
|
<arg value="Type-Installer" />
|
|
|
|
<arg value="bin/k9-${current-version-name}-release.apk" />
|
2009-11-24 12:52:08 -05:00
|
|
|
</exec>
|
|
|
|
</target>
|
2012-05-30 19:02:57 -04:00
|
|
|
|
2011-02-06 15:07:05 -05:00
|
|
|
<target name="astyle">
|
2012-06-01 16:41:14 -04:00
|
|
|
<exec executable="astyle" failonerror="true">
|
|
|
|
<arg line="--style=java --indent=spaces=4 --indent-switches --max-instatement-indent=4 --brackets=attach --add-brackets --convert-tabs --unpad-paren --pad-header --pad-oper --suffix=none --recursive 'src/com/fsck/k9/*.java' 'tests/src/com/fsck/k9/*.java'" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
2012-05-30 19:02:57 -04:00
|
|
|
|
|
|
|
<target name="help" depends="android_rules.help">
|
2009-06-06 11:46:17 -04:00
|
|
|
<!-- displays starts at col 13
|
|
|
|
|13 80| -->
|
2012-05-30 19:02:57 -04:00
|
|
|
<echo>Additional targets:</echo>
|
|
|
|
<!--echo> bump-version: ant -Dversion-name=3.123</echo>
|
|
|
|
<echo> Bumps the project version to 3.123,tags and commits it.</echo>
|
2012-06-01 16:41:14 -04:00
|
|
|
<echo> If version-name is not given, it will auto-increment.</echo>
|
2012-05-30 19:02:57 -04:00
|
|
|
<echo> upload: Uploads a new release to google code.</echo-->
|
|
|
|
<echo> rclib: Creates library for remote control applications.</echo>
|
|
|
|
<echo> astyle: Make K-9's source look like it's supposed to.</echo>
|
|
|
|
<echo> eclipse: Apply template Eclipse settings.</echo>
|
|
|
|
<echo> javadoc: Javadoc output to javadoc/. ANDROID_HOME environment</echo>
|
|
|
|
<echo> variable must be set (i.e. /opt/android-sdk-linux/).</echo>
|
|
|
|
<echo> lint-xml: Lint output lint-results.xml.</echo>
|
|
|
|
<echo> lint-html: Lint output to lint-results.html.</echo>
|
|
|
|
<echo> monkey: Runs monkey on the running emulator. Change the</echo>
|
|
|
|
<echo> defaults -Dmonkey.seed=NUM and -Dmonkey.count=NUM</echo>
|
|
|
|
<echo> from 0 and 200, respectively.</echo>
|
2012-06-01 16:41:14 -04:00
|
|
|
</target>
|
2011-02-08 19:17:29 -05:00
|
|
|
|
2011-06-10 14:20:33 -04:00
|
|
|
<target name="eclipse" description="Apply template Eclipse settings">
|
|
|
|
<copy todir=".settings">
|
2012-06-01 16:41:14 -04:00
|
|
|
<fileset dir="tools/eclipse-settings" />
|
2011-06-10 14:20:33 -04:00
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2012-05-30 19:02:57 -04:00
|
|
|
<target name="monkey">
|
|
|
|
<xpath input="AndroidManifest.xml" expression="/manifest/@package" output="manifest.package" />
|
2012-06-01 16:41:14 -04:00
|
|
|
<property name="monkey.count" value="200" />
|
|
|
|
<property name="monkey.seed" value="0" /><!-- largest == 9223372036854775807 == 2**63 - 1 -->
|
2012-05-30 19:02:57 -04:00
|
|
|
<exec executable="${adb}" output="monkey.txt" failonerror="true">
|
|
|
|
<arg line="${adb.device.arg}" />
|
|
|
|
<arg value="-e" />
|
|
|
|
<arg value="shell" />
|
|
|
|
<arg value="monkey" />
|
|
|
|
<arg value="-p" />
|
|
|
|
<arg value="${manifest.package}" />
|
|
|
|
<arg value="-v" />
|
2012-06-01 16:41:14 -04:00
|
|
|
<arg value="-v" />
|
2012-05-30 19:02:57 -04:00
|
|
|
<arg value="-s" />
|
|
|
|
<arg value="${monkey.seed}" />
|
|
|
|
<arg value="${monkey.count}" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2012-06-01 16:41:14 -04:00
|
|
|
<target name="reg" depends="-get-version-code">
|
|
|
|
<regex property="branch" input="${env.GIT_BRANCH}" regexp="(?:.*/)?(.+)" select="\1" global="true"/>
|
|
|
|
<regex property="commit" input="${env.GIT_COMMIT}" regexp="([\da-fA-F]{10})" select="\1" global="true"/>
|
|
|
|
<math result="version-code" operand1="${current-version-code}" operation="+" operand2="1" datatype="int"/>
|
|
|
|
<echo message="branch = ${branch} ${commit} ${current-version-code} ${version-code}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- this is for CloudBees. see tests/build.xml -->
|
2012-05-30 19:02:57 -04:00
|
|
|
<target name="-artifactd" depends="-set-debug-files, -artifact" />
|
|
|
|
<target name="-artifacti" depends="-set-instrumented-mode, -artifact" />
|
|
|
|
<target name="-artifact">
|
2012-06-01 16:41:14 -04:00
|
|
|
<regex property="branch" input="${env.GIT_BRANCH}" regexp="(?:.*/)?(.+)" select="\1" global="true" />
|
|
|
|
<regex property="commit" input="${env.GIT_COMMIT}" regexp="([\da-fA-F]{10})" select="\1" />
|
2012-05-30 19:02:57 -04:00
|
|
|
|
|
|
|
<copy file="${out.final.file}"
|
2012-06-01 16:41:14 -04:00
|
|
|
tofile="${out.dir}/${ant.project.name}-${branch}-${env.BUILD_ID}-${commit}-${env.BUILD_NUMBER}.apk"
|
2012-05-30 19:02:57 -04:00
|
|
|
verbose="on"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="-pre-clean" description="Removes testing output and javadoc">
|
|
|
|
<delete file="monkey.txt" verbose="${verbose}" />
|
|
|
|
<delete file="lint-results.xml" verbose="${verbose}" />
|
|
|
|
<delete file="lint-results.html" verbose="${verbose}" />
|
|
|
|
<delete dir="lint-results_files" verbose="${verbose}" />
|
|
|
|
<delete dir="${javadoc-dir}" verbose="${verbose}" />
|
|
|
|
</target>
|
|
|
|
|
2012-11-24 17:16:45 -05:00
|
|
|
<target name="-update-abs">
|
2012-11-09 15:30:53 -05:00
|
|
|
<if.contrib>
|
|
|
|
<resourceexists>
|
|
|
|
<file file="plugins/ActionBarSherlock/library/build.xml" />
|
|
|
|
</resourceexists>
|
|
|
|
<else>
|
|
|
|
<echo message="android update lib-project -p plugins/ActionBarSherlock/library/" />
|
2012-11-19 22:04:42 -05:00
|
|
|
<exec executable="${sdk.dir}/tools/${android.executable}" failonerror="true">
|
2012-11-09 15:30:53 -05:00
|
|
|
<arg line="update lib-project -p plugins/ActionBarSherlock/library/" />
|
|
|
|
</exec>
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
</target>
|
|
|
|
|
2012-11-24 17:16:45 -05:00
|
|
|
<target name="-update-ptr">
|
2012-11-09 15:30:53 -05:00
|
|
|
<if.contrib>
|
|
|
|
<resourceexists>
|
|
|
|
<file file="plugins/Android-PullToRefresh/library/build.xml" />
|
|
|
|
</resourceexists>
|
|
|
|
<else>
|
|
|
|
<echo message="android update lib-project -p plugins/Android-PullToRefresh/library/" />
|
2012-11-19 22:04:42 -05:00
|
|
|
<exec executable="${sdk.dir}/tools/${android.executable}" failonerror="true">
|
2012-11-09 15:30:53 -05:00
|
|
|
<arg line="update lib-project -p plugins/Android-PullToRefresh/library/" />
|
|
|
|
</exec>
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
</target>
|
|
|
|
|
2013-01-08 03:28:46 -05:00
|
|
|
<target name="-update-cl">
|
|
|
|
<if.contrib>
|
|
|
|
<resourceexists>
|
|
|
|
<file file="plugins/ckChangeLog/library/build.xml" />
|
|
|
|
</resourceexists>
|
|
|
|
<else>
|
|
|
|
<echo message="android update lib-project -p plugins/ckChangeLog/library/" />
|
|
|
|
<exec executable="${sdk.dir}/tools/${android.executable}" failonerror="true">
|
|
|
|
<arg line="update lib-project -p plugins/ckChangeLog/library/" />
|
|
|
|
</exec>
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
</target>
|
2013-01-17 02:57:49 -05:00
|
|
|
|
|
|
|
<target name="-update-hcp">
|
|
|
|
<if.contrib>
|
|
|
|
<resourceexists>
|
|
|
|
<file file="plugins/HoloColorPicker/build.xml" />
|
|
|
|
</resourceexists>
|
|
|
|
<else>
|
|
|
|
<echo message="android update lib-project -p plugins/HoloColorPicker/" />
|
|
|
|
<exec executable="${sdk.dir}/tools/${android.executable}" failonerror="true">
|
|
|
|
<arg line="update lib-project -p plugins/HoloColorPicker/" />
|
|
|
|
</exec>
|
|
|
|
</else>
|
|
|
|
</if.contrib>
|
|
|
|
</target>
|
2013-07-23 14:53:47 -04:00
|
|
|
|
2013-01-17 02:57:49 -05:00
|
|
|
<target name="init" depends="-update-abs, -update-ptr, -update-cl, -update-hcp"
|
2012-11-24 17:16:45 -05:00
|
|
|
description="Initialize environment for building" />
|
2012-11-09 15:30:53 -05:00
|
|
|
|
|
|
|
<!-- overrides default "debug" target" -->
|
|
|
|
<!-- Builds debug output package -->
|
|
|
|
<target name="debug" depends="init, -set-debug-files, -do-debug, -post-build"
|
|
|
|
description="Builds the application and signs it with a debug key.">
|
|
|
|
</target>
|
|
|
|
|
2012-06-01 16:41:14 -04:00
|
|
|
<!-- common to both build.xml and tests/build.xml -->
|
|
|
|
<import file="build_common.xml" />
|
|
|
|
|
|
|
|
<!-- END K-9 CUSTOM STUFF -->
|
2011-10-25 22:07:06 -04:00
|
|
|
|
2008-10-27 21:12:36 -04:00
|
|
|
</project>
|