fix ProjectDefinition.equals not considering base directory, ref #54

This commit is contained in:
Mark Harrah 2011-06-15 19:08:49 -04:00
parent 09c05dea97
commit 0fa5b85736
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ sealed trait ProjectDefinition[PR <: ProjectReference]
def uses: Seq[PR] = aggregate ++ dependencies.map(_.project)
def referenced: Seq[PR] = delegates ++ uses
override final def hashCode = id.hashCode
override final def hashCode: Int = id.hashCode ^ base.hashCode ^ getClass.hashCode
override final def equals(o: Any) = o match {
case p: ProjectDefinition[_] => p.getClass == this.getClass && p.id == id
case p: ProjectDefinition[_] => p.getClass == this.getClass && p.id == id && p.base == base
case _ => false
}
}