We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 340e302 commit b0ecc20Copy full SHA for b0ecc20
GroovyWrapper.groovy
@@ -39,7 +39,7 @@ if (opt.h) {
39
}
40
41
def mainClass = opt.m
42
-def scriptBase = mainClass.replace( '.', '/' )
+def scriptBase = mainClass.replace('.groovy', '').replace( '.', '/' )
43
def scriptFile = new File( scriptBase + '.groovy' )
44
if (!scriptFile.canRead()) {
45
println "Cannot read script file: '${scriptFile}'"
0 commit comments