On 9/12/09 1:42 AM, Narco wrote:
1) No I can`t use this. There is no hard rule for library and version name so
dependency.name and dependency.version must be used. The problem is that
from Dependency I can`t get corresponding File.

You want the resolved artifacts, then:

task libs << {
    File libsDir = file('libs')
    ant.delete(dir: libsDir)
    subprojects.each { p ->
def config = p.configurations.runtime.copyRecursive(DependencySpecs.type(Type.EXTERNAL))
        config.resolvedConfiguration.resolvedArtifacts.each {a ->
ant.copy(file: a.file, tofile: new File(libsDir, "${a.name}-${a.version}.jar"))
        }
    }
}


3) new JIRA issue - http://jira.codehaus.org/browse/GRADLE-773


Thanks.

--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to