ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Cross <...@goots.org>
Subject Inline Retrieve Task
Date Wed, 16 May 2012 10:21:02 GMT


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

Mime
View raw message