On 29/07/2011, at 3:45 PM, Ingo Richter wrote:

> Hey, 
> 
> a couple of days ago I started to work on my plugin to build flex projects 
> with gradle. 
> 
> Currently I'm working on downloading the specified Flex SDK version from the 
> Adobe servers. This seems to work with this configuration: 
> 
> repositories { 
>     add(new org.apache.ivy.plugins.resolver.URLResolver()) { 
>         name = 'flexOSSSDKRepository' 
>         artifactPattern = 
> 'http://fpdownload.adobe.com/pub/flex/sdk/builds/[module]/flex_sdk_[revision]_mpl.zip'
>  
>     } 
> }

Ivy will use the pattern first to locate an ivy.xml, then the artifact itself. 
Substituting values into the pattern above, Ivy will end up looking for an 
ivy.xml called 'flex_sdk_4.0.0.14159_mpl.zip', find something with that name, 
and then blow up trying to parse it.

You should change the pattern to replace '.zip' with '.[ext]' and maybe set an 
ivyPattern too (doesn't matter if it points at something that will not exist).


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to