Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 3.7.6
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (45 sloc) 1.695 kb
<project name="astrid-project">
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="astrid/antlib/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<target name="clean">
<delete dir="release" />
</target>
<target name="get-version">
<loadfile property="manifest" srcFile="astrid/AndroidManifest.xml" />
<propertyregex property="manifest.version.code"
input="${manifest}"
regexp="android:versionCode=&quot;(.*)&quot;"
select="\1" />
<propertyregex property="manifest.version.name"
input="${manifest}"
regexp="android:versionName=&quot;([^&quot; ]*)"
select="\1" />
<echo message="Astrid Project: version ${manifest.version.code}, named ${manifest.version.name}" />
</target>
<target name="release" depends="clean,get-version">
<subant target="release">
<fileset file="astrid/build.xml" />
</subant>
</target>
<target name="release-all" depends="clean,get-version,release">
<!-- custom builds -->
<for list="-getjar,-verizon,-sprint,-orange,-vodafone,-other" param="name">
<sequential>
<subant target="release-custom">
<fileset file="astrid/build.xml" />
<property name="custom.version.name" value="@{name}" />
</subant>
</sequential>
</for>
<!-- amazon -->
<subant>
<fileset file="astrid/build.xml" />
<property name="custom.version.name" value=".1000" />
<property name="custom.market.disabled" value="true" />
<target name="release-custom" />
</subant>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.