Skip to content

Commit a56c284

Browse files
committed
use slash-agnostic globdir test to recombine globbed classpath
1 parent 87461be commit a56c284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/MainGenericRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ object MainGenericRunner {
109109
(tail, cp)
110110
else
111111
// combine globbed classpath entries into a classpath
112-
val globdir = cp.replace('\\', '/').replaceAll("/[^/]*$","")
112+
val globdir = cp.replaceAll("[\\/][^\\/]*$","") // must be forward-backward-slash-agnostic
113113
val jarfiles = cp :: tail
114114
val cpfiles = jarfiles.takeWhile( f => f.startsWith(globdir) && ((f.toLowerCase.endsWith(".jar") || f.endsWith(".zip"))) )
115115
val tailargs = jarfiles.drop(cpfiles.size)

0 commit comments

Comments
 (0)