Permalink
Browse files

attempt discovery of Groovy jar from compile classpath before using c…

…urrent JVM jar
  • Loading branch information...
1 parent 24326f1 commit fc54c30e62a7bcfcbc4a8ab815a36f1af61a278f @graemerocher graemerocher committed Jan 24, 2013
@@ -285,7 +285,13 @@ abstract class ForkedGrailsProcess {
public static List<File> buildMinimalIsolatedClasspath(BuildSettings buildSettings) {
List<File> buildDependencies = []
- buildDependencies.add findJarFile(GroovySystem)
+ File groovyJar = buildSettings.compileDependencies.find { File f -> f.name.contains "groovy-all" }
+
+ if (!groovyJar)
+ groovyJar = findJarFile(GroovySystem)
+
+
+ buildDependencies.add groovyJar
buildDependencies.add findJarFile(Log)
buildDependencies.add findJarFile(Gant)

0 comments on commit fc54c30

Please sign in to comment.