File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,12 @@ class Tags {
2525 mainMethod = block. contains(' main(String[] args)' )
2626 fileRoot = lines[0 ]. split(" /" )[-1 ] - " .java"
2727 mainClass = fileRoot
28- javaCmd = extract(' main: ' )
29- if (javaCmd)
28+ javaCmd = extract(' java ' )
29+ if (javaCmd) {
3030 mainClass = javaCmd
31+ println (" fileRoot: " + fileRoot)
32+ println (" mainClass: " + mainClass)
33+ }
3134 compileTimeError = testFor(' CompileTimeError' )
3235 throwsException = testFor(' ThrowsException' )
3336 errorOutputExpected = testFor(' ErrorOutputExpected' )
@@ -58,6 +61,7 @@ class Tags {
5861 if (tagline. getCount()) {
5962 def rtrim = tagline[0 ]. reverse(). dropWhile{ it != ' }' }. reverse()[0 .. -2 ]
6063 def ltrim = rtrim - (" // {" + marker)
64+ ltrim = ltrim. replaceAll(" //" , " " )
6165 return ltrim. trim()
6266 } else {
6367 println " Searching for: " + re
You can’t perform that action at this time.
0 commit comments