Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…urrent JVM jar
  • Loading branch information...
commit fc54c30e62a7bcfcbc4a8ab815a36f1af61a278f 1 parent 24326f1
@graemerocher graemerocher authored
View
8 grails-bootstrap/src/main/groovy/org/codehaus/groovy/grails/cli/fork/ForkedGrailsProcess.groovy
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.