We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e09d39f + 3f0d825 commit e971340Copy full SHA for e971340
1 file changed
build.gradle
@@ -22,7 +22,7 @@ class Tags {
22
block = file.text
23
hasMainMethod = block.contains('main(String[] args)')
24
def firstLine = block.substring(0, block.indexOf("\n"))
25
- fileRoot = firstLine.split("/")[-1] - ".java"
+ fileRoot = (firstLine.split("/")[-1] - ".java").trim() // Remove \r if it exists
26
mainClass = fileRoot
27
javaCmd = extract('java')
28
if(javaCmd) {
0 commit comments