I don't know why, but if you copy "into configurations.runtime" instead
(which is the preferred syntax anyway), it will work as expected. The fact
that configurations.runtime.files doesn't produce the desired result might
be worth a bug report.
Additionally, it's important to copy the files at execution time, not at
configuration time. (Currently, the files will be copied every time, even if
the copyRuntimeLibraries task isn't invoked). Here is an improved task
definition:
task copyRuntimeLibraries(type: Sync) {
def webAppLibDirName = 'war/WEB-INF/lib'
description = "Copies runtime libraries to $webAppLibDirName."
into webAppLibDirName
from configurations.runtime
}
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Error-using-build-gradle-in-Gaelyk-in-Ubuntu-11-04-Error-naming-copying-jars-to-WEB-INF-lib-tp4686802p4690894.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email