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'
}
}
Now I stick with this error, which also fails the build:
<output>
Download
http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4/flex_sdk_4.0.0.14159_mpl.zip
:: problems summary ::
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: #flex4;4.0.0.14159: java.text.ParseException: [[Fatal Error]
ivy-4.0.0.14159.xml.original:1:1: Content is not allowed in prolog. in
file:/Users/irichter/.gradle/cache/flex4/ivy-4.0.0.14159.xml.original
]
::::::::::::::::::::::::::::::::::::::::::::::
</output>
It seems to me, that there are different expectations about the downloaded
artifacts. Somehow gradle or ivy assumes an xml file for the downloaded
artifact.
What I can find in the cache directory is the ivydata.properties file and the
downloaded zip file, but it got renamed to ivy-4.0.0.14159.xml.original instead
ivy-4.0.0.14159.zip.
I tried the same repository/resolver setup in plain ivy and it downloads the
file without failing my build at all.
Is there something wrong with my definition of the repository in my
build.gradle?
I tried this with gradle milestone-3 and milestone-4.
Thank you,
Ingo