We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea49f0b commit fd6d981Copy full SHA for fd6d981
grails-bootstrap/src/main/groovy/org/grails/io/support/MainClassFinder.groovy
@@ -2,6 +2,7 @@ package org.grails.io.support
2
3
import grails.util.BuildSettings
4
import groovy.transform.CompileStatic
5
+import groovy.transform.Memoized
6
import groovyjarjarasm.asm.ClassReader
7
import groovyjarjarasm.asm.ClassVisitor
8
import groovyjarjarasm.asm.MethodVisitor
@@ -83,7 +84,10 @@ class MainClassFinder {
83
84
85
static String findMainClass(File rootFolder = BuildSettings.CLASSES_DIR) {
86
if(mainClassName) return mainClassName
-
87
+ if( rootFolder == null) {
88
+ // try current directory
89
+ rootFolder = new File("build/classes/main")
90
+ }
91
if (!rootFolder.exists()) {
92
return null // nothing to do
93
}
0 commit comments