diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-03 14:30:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 14:30:33 -0400 |
commit | 775a9582942e64bf492687194e016f2034a81feb (patch) | |
tree | 92ac88a45f77f033dd58a003df942fa3aa67362a /stage2/BasicBuild.scala | |
parent | 131954279c0937b499bddc52c15a300b1af7b9bc (diff) | |
parent | eb21b485fbc3972f66bed7d8af62900712cb3b0b (diff) | |
download | cbt-775a9582942e64bf492687194e016f2034a81feb.tar.gz cbt-775a9582942e64bf492687194e016f2034a81feb.tar.bz2 cbt-775a9582942e64bf492687194e016f2034a81feb.zip |
Merge pull request #293 from cvogt/resources
Add support for resources (still limited by CBT's classloader visibil…
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 ========== |