aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
diff options
context:
space:
mode:
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r--stage2/BasicBuild.scala6
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 ==========