[GRADLE-524] ide task in gradle's own build.gradle doesn't work Created: 17/Jun/09  Updated: 04/Jan/13  Resolved: 24/Jun/09

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.7

Type: Bug
Reporter: Steve Appling Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

In main trunk as of revision 1594, the ide task generates errors.
Small patch follows:

Index: build.gradle
===================================================================
— build.gradle (revision 1594)
+++ build.gradle (working copy)
@@ -664,7 +664,7 @@
def libDir = file('lib')
ant.delete(dir: libDir)
[configurations.runtime, configurations.testRuntime].each {config ->

  • config.files.each
    Unknown macro: {file ->+ config.copyRecursive(DependencySpecs.type(Type.EXTERNAL)).files.each {file -> ant.copy(file: file, todir: libDir) } }


 Comments   
Comment by Steve Appling [ 17/Jun/09 ]

Messed up the formatting in the initial comment. Should have been:

 
Index: build.gradle
===================================================================
--- build.gradle	(revision 1594)
+++ build.gradle	(working copy)
@@ -664,7 +664,7 @@
     def libDir = file('lib')
     ant.delete(dir: libDir)
     [configurations.runtime, configurations.testRuntime].each {config ->
-        config.files.each {file ->
+        config.copyRecursive(DependencySpecs.type(Type.EXTERNAL)).files.each {file ->
             ant.copy(file: file, todir: libDir)
         }
     }

Generated at Wed Jun 30 11:32:18 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.