mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix the build path.
This commit is contained in:
parent
58ad7179d5
commit
db15c8ef5b
1 changed files with 8 additions and 4 deletions
|
@ -75,12 +75,16 @@ class CompilerUtils @Inject constructor(val files: KFiles,
|
|||
else File(project.classesDir(context))
|
||||
File(project.directory, buildDirectory.path).mkdirs()
|
||||
|
||||
// Remove all the excluded dependencies from the classpath
|
||||
var classpath = fullClasspath.filter {
|
||||
! isDependencyExcluded(it, project.excludedDependencies)
|
||||
}
|
||||
|
||||
// The classpath needs to contain $buildDirectory/classes as well so that projects that contain
|
||||
// multiple languages can use classes compiled by the compiler run before them.
|
||||
// We also need to remove all the excluded dependencies from the classpath
|
||||
val classpath = fullClasspath.filter {
|
||||
! isDependencyExcluded(it, project.excludedDependencies)
|
||||
} + FileDependency(buildDirectory.path)
|
||||
if (buildDirectory.exists()) {
|
||||
classpath += FileDependency(buildDirectory.path)
|
||||
}
|
||||
|
||||
val initialSourceDirectories = ArrayList<File>(sourceDirectories)
|
||||
// Source directories from the contributors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue