这些短语的含义是:
从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)
}
最佳答案
在您的示例中,_*
表示所有内容,@
用于匹配xs @ _*
是大小写模式,意味着选择与第一种情况匹配的所有内容/javax/servlet/*
ps @ _*
表示选择所有匹配为/*并带有html
扩展名的匹配项