Require projects to have unique target directories.

Configuring projects so that target directories overlap is usually
unintentional and the error message that results is usually unrelated
to the cause.
This commit is contained in:
Mark Harrah 2013-06-18 18:29:01 -04:00
parent aa2bd76e5e
commit 169a88dd30
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ trait Init[Scope]
def mapConstant(g: MapConstant): Initialize[T] = new Optional(a map mapConstantT(g).fn, f)
def evaluate(ss: Settings[Scope]): T = f( a.flatMap( i => trapBadRef(evaluateT(ss)(i)) ) )
// proper solution is for evaluate to be deprecated or for external use only and a new internal method returning Either be used
private[this] def trapBadRef[A](run: => A): Option[A] = try Some(run) catch { case e: InvalidReferenceException => None }
private[this] def trapBadRef[A](run: => A): Option[A] = try Some(run) catch { case e: InvalidReference => None }
}
private[sbt] final class Value[T](val value: () => T) extends Initialize[T]
{