On Jun 13, 2009, at 7:40 AM, Helmut Denk wrote:
>
> for the interested user ...
> one way to do this is:
>
>
> task retrieveRuntimeLibs << {
> Set files = configurations.runtime.resolve()
> ant {
> files.each {
> copy(file: it, todir: 'runtimeLibs')
> }
> }
> }
In trunk you can write:
task retrieveRuntimeLibs << {
copy {
from configurations.runtime.files
into 'runtimeLibs'
}
}
With 0.7 you can also specify filters based on dependency properties:
task retrieveRuntimeLibs << {
copy {
from configurations.runtime.files { dep -> dep.group =
'something' }
into 'runtimeLibs'
}
}
In trunk there is also the feature to copy artifacts to necessarily tp
a name they have in the local repository, but based on the properties
of the artifact object.
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email