Skip to content

Commit b0ecc20

Browse files
author
shuang.bai
committed
groovy file have sufix also can be process, e.g: groovy GroovyWrapper.groovy -m Hello.groovy -c
1 parent 340e302 commit b0ecc20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GroovyWrapper.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (opt.h) {
3939
}
4040

4141
def mainClass = opt.m
42-
def scriptBase = mainClass.replace( '.', '/' )
42+
def scriptBase = mainClass.replace('.groovy', '').replace( '.', '/' )
4343
def scriptFile = new File( scriptBase + '.groovy' )
4444
if (!scriptFile.canRead()) {
4545
println "Cannot read script file: '${scriptFile}'"

0 commit comments

Comments
 (0)