diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-01 23:53:08 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-01 23:53:08 -0500 |
commit | 0d98155071d75dd135adca9d5977b365088f8190 (patch) | |
tree | 7f1c88fb4f1f59fd394c15fa29a9e0fe271c607f /stage1/Stage1Lib.scala | |
parent | e56f8afa03035140280bc8d3d878ad225def381e (diff) | |
download | cbt-0d98155071d75dd135adca9d5977b365088f8190.tar.gz cbt-0d98155071d75dd135adca9d5977b365088f8190.tar.bz2 cbt-0d98155071d75dd135adca9d5977b365088f8190.zip |
make full dependencies available to compile instead of only classpath
this will make it possible to access lastModified times and cache them
in the following commits
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r-- | stage1/Stage1Lib.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala index 9b48409..296581c 100644 --- a/stage1/Stage1Lib.scala +++ b/stage1/Stage1Lib.scala @@ -194,7 +194,7 @@ class Stage1Lib( val logger: Logger ) extends BaseLib{ files: Seq[File], compileTarget: File, statusFile: File, - classpath: ClassPath, + dependencies: Seq[Dependency], mavenCache: File, scalacOptions: Seq[String] = Seq(), classLoaderCache: ClassLoaderCache, @@ -202,6 +202,7 @@ class Stage1Lib( val logger: Logger ) extends BaseLib{ scalaVersion: String ): Option[File] = { + val classpath = Dependencies(dependencies).classpath val cp = classpath.string if(classpath.files.isEmpty) throw new Exception("Trying to compile with empty classpath. Source files: " ++ files.toString) |