diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-03 02:47:31 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-03 14:17:38 -0400 |
commit | eb21b485fbc3972f66bed7d8af62900712cb3b0b (patch) | |
tree | 92ac88a45f77f033dd58a003df942fa3aa67362a /stage2/BasicBuild.scala | |
parent | 131954279c0937b499bddc52c15a300b1af7b9bc (diff) | |
download | cbt-eb21b485fbc3972f66bed7d8af62900712cb3b0b.tar.gz cbt-eb21b485fbc3972f66bed7d8af62900712cb3b0b.tar.bz2 cbt-eb21b485fbc3972f66bed7d8af62900712cb3b0b.zip |
Add support for resources (still limited by CBT's classloader visibility)
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r-- | stage2/BasicBuild.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala index 8c65f3f..128d2f8 100644 --- a/stage2/BasicBuild.scala +++ b/stage2/BasicBuild.scala @@ -101,7 +101,11 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge final def compileClasspath : ClassPath = dependencyClasspath ++ ClassPath( compileDependencies.flatMap(_.exportedClasspath.files).distinct ) - def exportedClasspath : ClassPath = ClassPath(compile.toSeq) + def resourceClasspath: ClassPath = { + val resourcesDirectory = projectDirectory ++ "/resources" + ClassPath( if(resourcesDirectory.exists) Seq(resourcesDirectory) else Nil ) + } + def exportedClasspath : ClassPath = ClassPath(compile.toSeq) ++ resourceClasspath def targetClasspath = ClassPath(Seq(compileTarget)) // ========== compile, run, test ========== |