Skip to content

Commit

Permalink
Fixed classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Apr 25, 2011
1 parent c41df8f commit 2e3c88f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -59,6 +59,8 @@ What exactly does the plugin?

## Release notes

* 0.1.2 - Fixed eclipse classpath setup task (rootDir not referenced from the project object)

* 0.1.1 - Removed libs cleaning task until its working more reliably

* 0.1 - Initial version
2 changes: 1 addition & 1 deletion build.gradle
@@ -1,7 +1,7 @@
apply plugin: 'groovy'
apply plugin: 'eclipse'

version = '0.1.1'
version = '0.1.2'


repositories {
Expand Down
Expand Up @@ -86,7 +86,7 @@ class EclipseGaelykPlugin implements Plugin<Project>{
xml.asNode().appendNode("classpathentry", [kind:"src", output:"war/WEB-INF/classes", path:"war/WEB-INF/groovy"])
xml.asNode().classpathentry.findAll{ it.@path =~ sdkJars.collect{ java.util.regex.Pattern.quote(it)}.join("|")}*.replaceNode {}
project.fileTree(dir: 'war/WEB-INF/lib', includes: ['*.jar'], excludes: project.configurations.runtime.collect{ it.name } + sdkJars.collect{ "${it}-*.jar"}).each{
xml.asNode().appendNode("classpathentry", [kind:"lib", path: (it.path - rootDir)[1..-1]])
xml.asNode().appendNode("classpathentry", [kind:"lib", path: (it.path - project.rootDir)[1..-1]])
}
}
}
Expand Down

0 comments on commit 2e3c88f

Please sign in to comment.