mirror of https://github.com/sbt/sbt.git
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:
parent
aa2bd76e5e
commit
169a88dd30
|
|
@ -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]
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue