You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gi...@apache.org on 2018/02/03 17:38:56 UTC
ant git commit: Correct use of remoteRepository
Repository: ant
Updated Branches:
refs/heads/master 314eb433e -> de5602261
Correct use of remoteRepository
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/de560226
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/de560226
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/de560226
Branch: refs/heads/master
Commit: de56022619aa861b474cfc8af8fa97988c6f1219
Parents: 314eb43
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Sat Feb 3 18:38:46 2018 +0100
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Sat Feb 3 18:38:46 2018 +0100
----------------------------------------------------------------------
fetch.xml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/de560226/fetch.xml
----------------------------------------------------------------------
diff --git a/fetch.xml b/fetch.xml
index 899b0f3..166a2bb 100644
--- a/fetch.xml
+++ b/fetch.xml
@@ -109,6 +109,7 @@ Set -Ddest=LOCATION on the command line
<attribute name="project"/>
<attribute name="archive" default="@{project}"/>
<attribute name="repository" default="${m2.repo}"/>
+ <attribute name="id" default="central"/>
<sequential>
<fail>
Unknown archive @{archive} -no property @{archive}.version defined in ${lib.dir}/libraries.properties.
@@ -118,7 +119,6 @@ Set -Ddest=LOCATION on the command line
</not>
</condition>
</fail>
- <artifact:remoteRepository url="@{repository}" id="central"/>
<artifact:dependencies pathID="@{archive}.path" useScope="runtime">
<dependency groupId="@{project}"
artifactId="@{archive}"
@@ -127,6 +127,7 @@ Set -Ddest=LOCATION on the command line
<exclusion groupId="org.apache.ant" artifactId="ant"/>
<exclusion groupId="org.apache.ant" artifactId="ant-launcher"/>
</dependency>
+ <artifact:remoteRepository url="@{repository}" id="@{id}"/>
</artifact:dependencies>
<!-- now we are left with the problem of getting the files into our directory -->
<copy todir="${dest.dir}">
@@ -328,9 +329,9 @@ Set -Ddest=LOCATION on the command line
<target name="jai"
description="load Java Advanced Imaging"
depends="init">
- <f2 project="javax.media" archive="jai-core"
+ <f2 project="javax.media" archive="jai-core" id="jboss"
repository="https://repository.jboss.org/nexus/content/groups/public/"/>
- <f2 project="com.sun.media" archive="jai-codec"
+ <f2 project="com.sun.media" archive="jai-codec" id="jboss"
repository="https://repository.jboss.org/nexus/content/groups/public/"/>
</target>