mirror of https://github.com/sbt/sbt.git
remove code obsolete after 0.7.1
This commit is contained in:
parent
806dc7a638
commit
ea07c941fb
|
|
@ -87,14 +87,5 @@ object ComponentManager
|
|||
lazy val stampedVersion = version + "_" + timestamp
|
||||
|
||||
import java.net.URL
|
||||
private def versionResource: URL =
|
||||
{
|
||||
import java.util.Collections.list
|
||||
// could be just:
|
||||
// getClass.getResource("/xsbt.version.properties")
|
||||
// but the launcher up until 0.7.1 contained a stale xsbt.version.properties.
|
||||
// post-0.7.1, only xsbti.jar contains xsbt.version.properties
|
||||
// for the transition, we take the last one, which is the one we want because of the order resources are searched
|
||||
list(getClass.getClassLoader.getResources("xsbt.version.properties")).toArray(new Array[URL](0)).last
|
||||
}
|
||||
private def versionResource: URL = getClass.getResource("/xsbt.version.properties")
|
||||
}
|
||||
Loading…
Reference in New Issue