This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathivy-targets.xml
53 lines (45 loc) · 1.85 KB
/
ivy-targets.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version ="1.0"?>
<project name="DynamicExtensions-ivy"
xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="ivy.install.version" value="2.2.0"/>
<property name="ivy.jar.dir" location="ivylib"/>
<property name="ivy.jar.file" location="${ivy.jar.dir}/ivy-${ivy.install.version}.jar"/>
<property name="ivy.jar.url"
value="https://ncimvn.nci.nih.gov/nexus/content/groups/public/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"/>
<path id="ivy.classpath">
<fileset dir="${ivy.jar.dir}">
<include name="ivy-*.jar" />
</fileset>
</path>
<target name="download-ivy" unless="skip.download">
<mkdir dir="${ivy.jar.dir}"/>
<echo message="Installing ivy..."/>
<get src="${ivy.jar.url}"
dest="${ivy.jar.file}"
usetimestamp="true"
verbose="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.classpath" />
</target>
<target name="ivy-settings" depends="init-ivy">
<ivy:settings file="ivysettings.xml"/>
</target>
<target name="ivy-compile" depends="ivy-settings">
<ivy:resolve file="ivy.xml"
conf="compile" />
<ivy:retrieve conf="compile"
pattern="ivylib/[conf]/[artifact]-[revision].[ext]" />
</target>
<target name="ivy-runtime" depends="ivy-settings">
<ivy:resolve file="ivy.xml"
conf="runtime" />
<ivy:retrieve conf="runtime"
pattern="ivylib/[conf]/[artifact]-[revision].[ext]" />
</target>
</project>