什麼這些詞組的意思是:SBT程序集插件PathList中的「xs @ _ *」是什麼意思?
XS @ _ *
PS @ _ *
從documentation複製:
assemblyMergeStrategy in assembly := {
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "unwanted.txt" => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
它是Scala正則表達式語法嗎? –