Sorry, I hadn't read enough of the manual:
configurations.groovy.files.each { file -> println ( 'XXXXX: ' + file
) }
works as needed.
On Sat, 2010-03-27 at 18:13 +0000, Russel Winder wrote:
> I need to get hold of the path to the jar represented by:
>
> dependencies { groovy ( group : 'org.codehaus.groovy' , name :
> groovyArtefactName , version : groovyVersion ) }
>
> I tried:
>
> configurations.groovy.dependencies.each { dependency ->
> dependency.artifacts.each { artifact -> println ( 'XXXXX: ' + artifact ) } }
>
> but the artifacts property (calls getArtifacts method?) always seems to
> deliver an empty sequence. Anyone any idea how I can get the path to
> the Groovy jar being used due to the dependency.
>
> Thanks.
--
Russel.
=============================================================================
Dr Russel Winder Partner
xmpp: [email protected]
Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084 voip: sip:[email protected]
London SW11 1EN, UK m: +44 7770 465 077 skype: russel_winder
signature.asc
Description: This is a digitally signed message part
