If you happen to use Ivy 2.3, you could try: <ivy:retrieve> <dependency org="org.myorganisation" name="foo" rev="5.3.0.ER2"> <artifact name="foo" ext="zip"/> </dependency> </ivy:resolve>
See "Child elements" in http://ant.apache.org/ivy/history/latest-milestone/use/postresolvetask.html Nicolas Le 16 mai 2012 à 12:21, Nick Cross a écrit : > > > Hi, > > I have been experimenting with Ivy/Ant and have a question about the retrieve > task. > > > While specifying in my build.xml > > <ivy:resolve transitive="false"/> > > and having an ivy.xml containing e.g. > > <ivy-module version="2.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" > > <info organisation="org.myorganisation" module="foo-5.3.0.ER2"/> > <dependencies> > <dependency org="org.myorganisation" name="foo" rev="5.3.0.ER2"> > <artifact name="foo" ext="zip"/> > </dependency> > </dependencies> > </ivy-module> > > > However, what I really would like to do is in the build.xml have > > <ivy:retrieve keep="true" inline="true" organisation="org.myorganisation" > module="foo" revision="5.3.0.ER2" type="zip"/> > > However, I cannot get it to recognise the zip extension it keeps attempting > to download foo-version.jar. > > I have tried variations of patterns in my ivysettings but that seems to have > no effect. Currently it has: > > <resolvers> > <chain name="default" returnFirst="true"> > <url name="SOA-BRMS-5.2" m2compatible="true"> > <ivy > pattern="http://download.myrepo.com/mypath/maven/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" > /> > > > > Does anyone know how to get inline working with a zip extension? > > Thanks! > > Nick