It does work! Thank you very much for the help
Yan Pujante On Mon, Nov 22, 2010 at 2:53 PM, Rene Groeschke <[email protected]> wrote: > Hi Yan > Am 22.11.10 22:28, schrieb Yan (pongasoft): > > > Hello > > > > I am trying to do the following: > > > > ####### apply plugin: 'base' > > > > repositories { add(new > > org.apache.ivy.plugins.resolver.FileSystemResolver()) { name = > > "ivyrepo" addIvyPattern > > > "/tmp/repository/[organisation]/[module]/[revision]/[module]-[revision].ivy" > > > > > addArtifactPattern > > > "/tmp/repository/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" > > > > > m2compatible = true > > } } > > > > configurations { downloadTar } > > > > dependencies { downloadTar group: 'test.gradle', name: 'project1', > > version: version, configuration: 'tarArchive' } > > > > task download(dependsOn: configurations.downloadTar) << { println > > configurations.downloadTar.artifacts } ####### > > > > I need to get a hold of a tar file that is stored in an ivy > > repository for further processing. When I execute this I get: [] > > > > which is essentially telling me that there is no artifacts ? What > > am I doing wrong ? > > > > Thanks Yan Pujante > > > > The easiest way to get all resolved files of a configuration is to call > > configurations.downloadTar.resolve() > > which returns a Set of files. > > regards, > René > > > -- > > ------------------------------------ > Rene Groeschke > > [email protected] > http://www.breskeby.com > http://twitter.com/breskeby > ------------------------------------ > >
