mirror of https://github.com/sbt/sbt.git
deprecations
This commit is contained in:
parent
4e1aa282b7
commit
825f9b54b8
|
|
@ -32,7 +32,7 @@ object ConflictWarning
|
|||
log.log(config.level, conflictMsgs.mkString(msg, "\n ", ""))
|
||||
|
||||
if(config.failOnConflict)
|
||||
error("Conflicts in " + conflicts.map(_._1).mkString(", ") )
|
||||
sys.error("Conflicts in " + conflicts.map(_._1).mkString(", ") )
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ object ConflictWarning
|
|||
log.log(config.level, conflictMsgs.mkString(pre, "\n ", ""))
|
||||
if(config.failOnConflict) {
|
||||
val summary = crossMismatches.map{ case ((org,raw),_) => idString(org,raw)}.mkString(", ")
|
||||
error("Conflicting cross-version suffixes in: " + summary)
|
||||
sys.error("Conflicting cross-version suffixes in: " + summary)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -478,10 +478,10 @@ private object IvySbt
|
|||
{
|
||||
def check(found: NodeSeq, expected: String, label: String) =
|
||||
if(found.isEmpty)
|
||||
error("Missing " + label + " in inline Ivy XML.")
|
||||
sys.error("Missing " + label + " in inline Ivy XML.")
|
||||
else {
|
||||
val str = found.text
|
||||
if(str != expected) error("Inconsistent " + label + " in inline Ivy XML. Expected '" + expected + "', got '" + str + "'")
|
||||
if(str != expected) sys.error("Inconsistent " + label + " in inline Ivy XML. Expected '" + expected + "', got '" + str + "'")
|
||||
}
|
||||
check(info \ "@organisation", module.organization, "organisation")
|
||||
check(info \ "@module", module.name, "name")
|
||||
|
|
@ -637,7 +637,7 @@ private object IvySbt
|
|||
md match
|
||||
{
|
||||
case dmd: DefaultModuleDescriptor => dmd
|
||||
case _ => error("Unknown ModuleDescriptor type.")
|
||||
case _ => sys.error("Unknown ModuleDescriptor type.")
|
||||
}
|
||||
def getConfigurations(module: ModuleDescriptor, configurations: Option[Iterable[Configuration]]) =
|
||||
configurations match
|
||||
|
|
|
|||
|
|
@ -102,6 +102,6 @@ private class FileDownloader extends ResourceDownloader with NotNull
|
|||
val part = new File(dest.getAbsolutePath + ".part")
|
||||
FileUtil.copy(resource.openStream, part, null)
|
||||
if(!part.renameTo(dest))
|
||||
error("Could not move temporary file " + part + " to final location " + dest)
|
||||
sys.error("Could not move temporary file " + part + " to final location " + dest)
|
||||
}
|
||||
}
|
||||
|
|
@ -275,7 +275,7 @@ class MakePom(val log: Logger)
|
|||
|
||||
def toID(name: String) = checkID(name.filter(isValidIDCharacter).mkString, name)
|
||||
def isValidIDCharacter(c: Char) = c.isLetterOrDigit
|
||||
private def checkID(id: String, name: String) = if(id.isEmpty) error("Could not convert '" + name + "' to an ID") else id
|
||||
private def checkID(id: String, name: String) = if(id.isEmpty) sys.error("Could not convert '" + name + "' to an ID") else id
|
||||
def mavenRepository(repo: MavenRepository): XNode =
|
||||
mavenRepository(toID(repo.name), repo.name, repo.root)
|
||||
def mavenRepository(id: String, name: String, root: String): XNode =
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ package sbt
|
|||
class ProjectResolver(name: String, map: Map[ModuleRevisionId, ModuleDescriptor]) extends ResolverAdapter
|
||||
{
|
||||
def getName = name
|
||||
def setName(name: String) = error("Setting name not supported by ProjectResolver")
|
||||
def setName(name: String) = sys.error("Setting name not supported by ProjectResolver")
|
||||
override def toString = "ProjectResolver(" + name + ", mapped: " + map.keys.mkString(", ") + ")"
|
||||
|
||||
def getDependency(dd: DependencyDescriptor, data: ResolveData): ResolvedModuleRevision =
|
||||
|
|
@ -59,7 +59,7 @@ class ProjectResolver(name: String, map: Map[ModuleRevisionId, ModuleDescriptor]
|
|||
}
|
||||
|
||||
// doesn't support publishing
|
||||
def publish(artifact: IArtifact, src: File, overwrite: Boolean) = error("Publish not supported by ProjectResolver")
|
||||
def publish(artifact: IArtifact, src: File, overwrite: Boolean) = sys.error("Publish not supported by ProjectResolver")
|
||||
def beginPublishTransaction(module: ModuleRevisionId, overwrite: Boolean) {}
|
||||
def abortPublishTransaction() {}
|
||||
def commitPublishTransaction() {}
|
||||
|
|
@ -77,5 +77,5 @@ class ProjectResolver(name: String, map: Map[ModuleRevisionId, ModuleDescriptor]
|
|||
|
||||
def dumpSettings() {}
|
||||
def setSettings(settings: ResolverSettings) { this.settings = Some(settings) }
|
||||
def getRepositoryCacheManager = settings match { case Some(s) => s.getDefaultRepositoryCacheManager; case None => error("No settings defined for ProjectResolver") }
|
||||
def getRepositoryCacheManager = settings match { case Some(s) => s.getDefaultRepositoryCacheManager; case None => sys.error("No settings defined for ProjectResolver") }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue