forked from Zutubi/pulse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.xml
34 lines (33 loc) · 1.49 KB
/
macros.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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="Common macros" basedir=".">
<macrodef name="retrieve-dependencies">
<attribute name="ivyfile" default="ivy.xml"/>
<attribute name="conf" default="default"/>
<attribute name="dest" default="lib"/>
<sequential>
<ivy:resolve file="@{ivyfile}" conf="@{conf}"/>
<ivy:retrieve pattern="@{dest}/[artifact]-[revision].[ext]" validate="true" conf="@{conf}"/>
</sequential>
</macrodef>
<!-- If ivy is not installed in the running version of ant, then load the
ivy task definitions from the project.root/etc directory. -->
<macrodef name="load-ivy-taskdef">
<sequential>
<if>
<not>
<typefound uri="antlib:org.apache.ivy.ant" name="info"/>
</not>
<then>
<echo>Loading ivy from ${project.root.dir}/etc</echo>
<path id="ivy.task.path">
<fileset dir="${project.root.dir}/etc">
<include name="ivy*.jar"/>
<include name="svnkit-*.jar"/>
</fileset>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.task.path"/>
</then>
</if>
</sequential>
</macrodef>
</project>