mirror of https://github.com/sbt/sbt.git
make NoClassDefError a one line warning message in dependency analysis of Java classes
This commit is contained in:
parent
a27f24c307
commit
414043b7f4
|
|
@ -51,8 +51,10 @@ private[sbt] object Analyze
|
|||
{
|
||||
Control.trapAndLog(log)
|
||||
{
|
||||
val clazz = Class.forName(tpe, false, loader)
|
||||
for(file <- Control.convertException(FileUtilities.classLocationFile(clazz)).right)
|
||||
val loaded =
|
||||
try { Some(Class.forName(tpe, false, loader)) }
|
||||
catch { case e: NoClassDefFoundError => log.warn("Problem processing dependencies of source " + source + " : " +e.toString); None }
|
||||
for(clazz <- loaded; file <- Control.convertException(FileUtilities.classLocationFile(clazz)).right)
|
||||
{
|
||||
if(file.isDirectory)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue