mirror of https://github.com/sbt/sbt.git
Fixed issue with sbt versioning for RC releases in windows.
This commit is contained in:
parent
7b69501c8b
commit
df31ed1fcb
|
|
@ -190,7 +190,7 @@ object Packaging {
|
|||
)
|
||||
|
||||
def makeWindowsXml(sbtVersion: String, sourceDir: File): scala.xml.Node = {
|
||||
val version = (sbtVersion split "\\.") match {
|
||||
val version = (sbtVersion split "[^\\d]" filterNot (_.isEmpty)) match {
|
||||
case Array(major,minor,bugfix, _*) => Seq(major,minor,bugfix, "1") mkString "."
|
||||
case Array(major,minor) => Seq(major,minor,"0","1") mkString "."
|
||||
case Array(major) => Seq(major,"0","0","1") mkString "."
|
||||
|
|
|
|||
Loading…
Reference in New Issue