diff options
Diffstat (limited to 'stage2/LazyDependency.scala')
-rw-r--r-- | stage2/LazyDependency.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stage2/LazyDependency.scala b/stage2/LazyDependency.scala new file mode 100644 index 0000000..afc6263 --- /dev/null +++ b/stage2/LazyDependency.scala @@ -0,0 +1,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 +} |