-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
38 lines (32 loc) · 1.6 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="DroidBook" default="help">
<loadproperties srcFile="local.properties" />
<loadproperties srcFile="project.properties" />
<!-- version-tag: custom -->
<import file="${sdk.dir}/tools/ant/build.xml" />
<target name="-build-setup" depends="retrieve,android_rules.-build-setup">
<fileset id="libs.contents" dir="${jar.libs.dir}" />
<property name="prop.libs.contents" refid="libs.contents" />
<echo>The "${jar.libs.dir}" directory contains: ${prop.libs.contents}</echo>
</target>
<property name="ivy.install.version" value="2.3.0-rc1" />
<condition property="ivy.home" value="${env.IVY_HOME}">
<isset property="env.IVY_HOME" />
</condition>
<property name="ivy.home" value="${user.home}/.ant" />
<property name="ivy.jar.dir" value="${ivy.home}/lib" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
<target name="-download-ivy">
<mkdir dir="${ivy.jar.dir}" />
<get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" dest="${ivy.jar.file}" usetimestamp="true" />
</target>
<target name="-init-ivy" depends="-download-ivy">
<path id="ivy.lib.path">
<fileset dir="${ivy.jar.dir}" includes="*.jar" />
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
</target>
<target name="retrieve" depends="-init-ivy" description="--> retrieve dependencies with ivy">
<ivy:retrieve pattern="${jar.libs.dir}/[artifact](-[revision])(-[classifier]).[ext]" />
</target>
</project>