ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Stover" <bxsto...@yahoo.co.uk>
Subject How to declare artifact dependencies for versions X.Y OR NEWER (!) ?
Date Thu, 08 Jan 2009 19:51:32 GMT
In an Ant script I can declare dependencies similar to the sample shown at the bottom.
However, if the version coded in the Ant script is outdated then the version is NOT found/downloaded.
How can I tell Ant that if the specified version is NOT existing (any more) but a newer one

then this newer version should be downloaded instead?

Sample snippet where the download is NOT found and nothing is downloaded:

	<target name="copyextradependencies">
		<artifact:dependencies filesetId="icefaces.fileset" versionsId="icefaces.versions">
			<dependency groupId="org.icefaces" artifactId="icefaces" version="1.7.2">
				<exclusion groupId="javax.el" artifactId="el-api" />
			</dependency>
			<dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.7.2">
				<exclusion groupId="javax.el" artifactId="el-api" />
			</dependency>
			<dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.7.2">
				<exclusion groupId="javax.el" artifactId="el-api" />
			</dependency>
			<remoteRepository refId="repository.jboss.org" />
		</artifact:dependencies>
		<copy todir="${example.tmp.lib.dir}">
			<fileset refid="icefaces.fileset" />
			<mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper"

from="${icefaces.versions}" to="flatten" />
		</copy>
	</target>




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message