[GRADLE-1125] eclipseWtp does not work properly when a dependency resolves to a location for which no Eclipse variable has been defined Created: 17/Aug/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9-rc-3

Type: Bug
Reporter: Paulo Silveira Assignee: Hans Dockter
Resolution: Fixed Votes: 0

Attachments: File jira-1125-failing-example.tar.gz    

 Description   

As talked to Adam in Mirc, using this gradle build file: http://gist.github.com/532185, and uncommenting the apply war, we have this stacktrace: http://pastie.org/1098680

This only happens because of our compile files(fileTree(dir: lib as File, includes: ['*.jar']))

The proposed workaround by adam that works is as follows:
eclipseWtp

{ variables['PROJECT_DIR'] = projectDir.absolutePath }

 Comments   
Comment by Andrew Thorburn [ 28/Oct/10 ]

That works fine provided you've only got one project. It seems to collapse if you've got two or more. See the attached archive for an example that fails with gradle-0.9rc1.

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