mirror of https://github.com/sbt/sbt.git
Merge pull request #247 from alexarchambault/topic/properties-special-characters
Don't restrict Maven property name characters too much
This commit is contained in:
commit
bb77e85f1e
|
|
@ -71,7 +71,7 @@ object Resolution {
|
||||||
}
|
}
|
||||||
|
|
||||||
val propRegex = (
|
val propRegex = (
|
||||||
quote("${") + "([a-zA-Z0-9-.]*)" + quote("}")
|
quote("${") + "([^" + quote("{}") + "]*)" + quote("}")
|
||||||
).r
|
).r
|
||||||
|
|
||||||
def substituteProps(s: String, properties: Map[String, String]) = {
|
def substituteProps(s: String, properties: Map[String, String]) = {
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,11 @@ object ResolutionTests extends TestSuite {
|
||||||
|
|
||||||
Project(Module("acme", "play"), "2.4.1",
|
Project(Module("acme", "play"), "2.4.1",
|
||||||
dependencies = Seq(
|
dependencies = Seq(
|
||||||
"" -> Dependency(Module("acme", "play-json"), "${playJsonVersion}"),
|
"" -> Dependency(Module("acme", "play-json"), "${play_json_version}"),
|
||||||
"" -> Dependency(Module("${project.groupId}", "${configName}"), "1.3.0")),
|
"" -> Dependency(Module("${project.groupId}", "${WithSpecialChar©}"), "1.3.0")),
|
||||||
properties = Seq(
|
properties = Seq(
|
||||||
"playJsonVersion" -> "2.4.0",
|
"play_json_version" -> "2.4.0",
|
||||||
"configName" -> "config")),
|
"WithSpecialChar©" -> "config")),
|
||||||
|
|
||||||
Project(Module("acme", "play-extra-no-config"), "2.4.1",
|
Project(Module("acme", "play-extra-no-config"), "2.4.1",
|
||||||
Seq(
|
Seq(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue