Baur, Thomas wrote:
> 
> I am facing the task that I need to pull a zip-file from an ivy repository
> which contains some additional resources and I would like to deploy some
> of the files contained in that resource zip (like database DDL-scripts)
> into the "targets" directory of my own project after a new version has
> been fetched.
> 

Here is a way to achieve this:

configurations {
  additionalResources
}

dependencies {
  additionalResources "foo:bar:1.0" 
}

task copyAdditionalResources(type: Copy) {
  from { zipTree(configurations.additionalResources.singleFile) }
  into sourceSets.main.classesDir
  include ...
}

classes.dependsOn(copyAdditionalResources)

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Extension-point-to-dependency-resolution-tp4357975p4362167.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


Reply via email to