You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case toolArg("scalac", _) => sys.error(s"`// scalac: args` not supported. Please use `//> using options args`${filename.fold("")(f =>s" in file $f")}")
100
+
case toolArg("javac", _) => sys.error(s"`// javac: args` not supported. Please use `//> using javacOpt args`${filename.fold("")(f =>s" in file $f")}")
93
101
case toolArg(name, args) =>List((name, args))
94
102
case _ =>Nil
95
103
} ++
96
-
lines.flatMap { case directiveOptionsArg(args) =>List(("scalac", args)) case _ =>Nil }
104
+
lines.flatMap {
105
+
case directiveOptionsArg(args) =>List(("scalac", args))
106
+
case directiveJavacOptions(args) =>List(("javac", args))
107
+
case _ =>Nil
108
+
}
97
109
98
110
importorg.junit.Test
99
111
importorg.junit.Assert._
@@ -104,6 +116,6 @@ class ToolArgsTest:
104
116
@Testdef`tool is present`:Unit= assertEquals("-hey"::Nil, toolArgsFor(ToolName.Test, None)("// test: -hey"::Nil))
105
117
@Testdef`missing tool is absent`:Unit= assertEquals(Nil, toolArgsFor(ToolName.Javac, None)("// test: -hey"::Nil))
0 commit comments