Make ant plugin only use one remote repository for gets

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion
2003-03-02 14:22:46 +00:00
parent c63d54b317
commit ceec3c5183
3 changed files with 17 additions and 7 deletions

View File

@@ -24,6 +24,10 @@
description="Generate an Ant build file">
<tstamp />
<!-- get first repo in the list -->
<u:tokenize var="repos" delim=",">${maven.repo.remote}</u:tokenize>
<j:set var="repo">${repos[0]}</j:set>
<j:file name="${maven.ant.generatebuild.file}" prettyPrint="true">
<j:whitespace xmlns="dummy">
<x:comment>
@@ -308,24 +312,24 @@
<j:forEach var="dep" items="${pom.dependencies}">
<get
src="${maven.repo.remote}/${dep.artifactDirectory}/jars/${dep.artifact}"
src="${repo}/${dep.artifactDirectory}/jars/${dep.artifact}"
dest="$${libdir}/${dep.artifact}"
usetimestamp="true"
ignoreerrors="true"
/></j:forEach>
<!-- force junit for tests -->
<get
src="${maven.repo.remote}/junit/jars/junit-3.8.1.jar"
src="${repo}/junit/jars/junit-3.8.1.jar"
dest="$${libdir}/junit-3.8.1.jar"
usetimestamp="true"
ignoreerrors="true"/>
<get
src="${maven.repo.remote}/ant/jars/ant-1.5.jar"
src="${repo}/ant/jars/ant-1.5.jar"
dest="$${libdir}/ant-1.5.jar"
usetimestamp="true"
ignoreerrors="true"/>
<get
src="${maven.repo.remote}/ant/jars/ant-optional-1.5.jar"
src="${repo}/ant/jars/ant-optional-1.5.jar"
dest="$${libdir}/ant-optional-1.5.jar"
usetimestamp="true"
ignoreerrors="true"/>
@@ -353,7 +357,7 @@
-->
<get
src="$${maven.repo.remote}/maven/maven-install-latest.jar"
src="$${repo}/maven/maven-install-latest.jar"
dest="$${user.home}/maven-install-latest.jar"
usetimestamp="true"
/>

View File

@@ -5,7 +5,7 @@
<pomVersion>3</pomVersion>
<id>maven-ant-plugin</id>
<name>Maven Ant Plug-in</name>
<currentVersion>1.2</currentVersion>
<currentVersion>1.3-SNAPSHOT</currentVersion>
<description>Generates ant build files from a maven project, so that plain ant users can build your project</description>
<shortDescription>Java Project Management Tools</shortDescription>
<url>http://jakarta.apache.org/turbine/maven/reference/plugins/ant/</url>

View File

@@ -6,7 +6,13 @@
</properties>
<body>
<release version="1.2" date="in CVS">
<release version="1.3" date="in cvs">
<action dev="dion" type="fix">
Use first remote repo the user has specified for gets
</action>
</release>
<release version="1.2" date="2003-02-12">
<action dev="dion" type="add">
Added the new maven.ant.excludedTests property
</action>