We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87461be commit a56c284Copy full SHA for a56c284
compiler/src/dotty/tools/MainGenericRunner.scala
@@ -109,7 +109,7 @@ object MainGenericRunner {
109
(tail, cp)
110
else
111
// combine globbed classpath entries into a classpath
112
- val globdir = cp.replace('\\', '/').replaceAll("/[^/]*$","")
+ val globdir = cp.replaceAll("[\\/][^\\/]*$","") // must be forward-backward-slash-agnostic
113
val jarfiles = cp :: tail
114
val cpfiles = jarfiles.takeWhile( f => f.startsWith(globdir) && ((f.toLowerCase.endsWith(".jar") || f.endsWith(".zip"))) )
115
val tailargs = jarfiles.drop(cpfiles.size)
0 commit comments