aboutsummaryrefslogtreecommitdiff
path: root/stage2/LazyDependency.scala
blob: afc6263116c808645ac43afff280c5214fd6b401 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package cbt
class LazyDependency( _dependency: => Dependency )( implicit logger: Logger, transientCache: java.util.Map[AnyRef, AnyRef], classLoaderCache: ClassLoaderCache ) extends Dependency {
  lazy val dependency = _dependency
  def classLoader = dependency.classLoader
  def dependenciesArray = Array( dependency )
  def exportedClasspathArray = Array()
  def lastModified = dependency.lastModified
  lazy val moduleKey = show
  def show = s"LazyDependency(${dependency.show})"
  override def toString = show
  override def equals( other: Any ) = other match {
    case d: LazyDependency => d.dependency === dependency
    case _                 => false
  }
  def dependencyClasspathArray = dependency.classpath.files.toArray
  def needsUpdateCompat = false
}