Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed May 30, 2014
1 parent 8ee94a4 commit 987806f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions gradle/ide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ eclipse.classpath.file.whenMerged { classpath ->
def projectOutputDependencies = classpath.entries.findAll { entry -> entry.path =~ regexp }
projectOutputDependencies.each { entry ->
def matcher = (entry.path =~ regexp)
if(matcher) {
if (matcher) {
def projectName = matcher[0][1]
def path = "/${projectName}"
if(!classpath.entries.find { e -> e instanceof ProjectDependency && e.path == path }) {
Expand Down Expand Up @@ -50,12 +50,11 @@ eclipse.classpath.file.whenMerged { classpath ->
// Ensure project dependencies come after 3rd-party libs (SPR-11836)
// https://jira.spring.io/browse/SPR-11836
eclipse.classpath.file.whenMerged { classpath ->
def projectOutputDependencies = classpath.entries.findAll { entry -> entry instanceof ProjectDependency }
projectOutputDependencies.each { entry ->
classpath.entries.findAll { it instanceof ProjectDependency }.each {
// delete from original position
classpath.entries.remove(entry)
classpath.entries.remove(it)
// append to end of classpath
classpath.entries.add(entry)
classpath.entries.add(it)
}
}

Expand Down

0 comments on commit 987806f

Please sign in to comment.