Skip to content

Commit 0a55500

Browse files
authored
Update src/main/groovy/com/github/mrsarm/jshell/plugin/JShellPlugin.groovy
1 parent 9a7bf7b commit 0a55500

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/groovy/com/github/mrsarm/jshell/plugin/JShellPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class JShellPlugin implements Plugin<Project> {
6565
}
6666

6767
// Exclude non-directory / non-jar files that jshell doesn't deal with
68-
pathSet = pathSet.findAll{ it.isDirectory() || it.toString().endsWith('.jar') }
68+
pathSet = pathSet.findAll{ new File(it.toString()).isDirectory() || it.toString().endsWith('.jar') }
6969

7070
def path = pathSet.join(System.getProperty("path.separator"))
7171
jshellTask.logger.info(":jshell executing with --class-path {}", path)

0 commit comments

Comments
 (0)