mirror of https://github.com/sbt/sbt.git
Ignore 'unknown resolver' errors, work with published version of SBinary, work towards fixing OOME:PermGen issues on reload
This commit is contained in:
parent
9f9cbd55c7
commit
088ea15754
|
|
@ -36,7 +36,9 @@ private final class IvyLoggerInterface(logger: IvyLogger) extends MessageLogger
|
||||||
def info(msg: String) = logger.info(msg)
|
def info(msg: String) = logger.info(msg)
|
||||||
def rawinfo(msg: String) = info(msg)
|
def rawinfo(msg: String) = info(msg)
|
||||||
def warn(msg: String) = logger.warn(msg)
|
def warn(msg: String) = logger.warn(msg)
|
||||||
def error(msg: String) = logger.error(msg)
|
def error(msg: String) =
|
||||||
|
if(!msg.startsWith("unknown resolver")) // hack to suppress these kinds of messages
|
||||||
|
logger.error(msg)
|
||||||
|
|
||||||
private def emptyList = java.util.Collections.emptyList[T forSome { type T}]
|
private def emptyList = java.util.Collections.emptyList[T forSome { type T}]
|
||||||
def getProblems = emptyList
|
def getProblems = emptyList
|
||||||
|
|
@ -52,3 +54,10 @@ private final class IvyLoggerInterface(logger: IvyLogger) extends MessageLogger
|
||||||
def isShowProgress = false
|
def isShowProgress = false
|
||||||
def setShowProgress(progress: Boolean) {}
|
def setShowProgress(progress: Boolean) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** This is a hack to filter error messages about 'unknown resolver ...'. */
|
||||||
|
private final class SbtMessageLoggerEngine extends MessageLoggerEngine
|
||||||
|
{
|
||||||
|
override def error(msg: String) = if(acceptError(msg)) super.error(msg)
|
||||||
|
def acceptError(msg: String) = (msg ne null) && !msg.startsWith("unknown resolver")
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue