mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
buildFileClasspath work.
This commit is contained in:
parent
afeccdc614
commit
3bb1a74452
1 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@ package com.beust.kobalt.app
|
||||||
import com.beust.kobalt.KobaltException
|
import com.beust.kobalt.KobaltException
|
||||||
import com.beust.kobalt.Plugins
|
import com.beust.kobalt.Plugins
|
||||||
import com.beust.kobalt.api.IPlugin
|
import com.beust.kobalt.api.IPlugin
|
||||||
|
import com.beust.kobalt.api.Kobalt
|
||||||
import com.beust.kobalt.api.KobaltContext
|
import com.beust.kobalt.api.KobaltContext
|
||||||
import com.beust.kobalt.api.Project
|
import com.beust.kobalt.api.Project
|
||||||
import com.beust.kobalt.api.annotation.IncrementalTask
|
import com.beust.kobalt.api.annotation.IncrementalTask
|
||||||
|
@ -40,7 +41,8 @@ class BuildScriptUtil @Inject constructor(val plugins: Plugins, val files: KFile
|
||||||
// - all the plug-ins found in the build file
|
// - all the plug-ins found in the build file
|
||||||
// - kobalt's own jar file
|
// - kobalt's own jar file
|
||||||
val allUrls = (urls + arrayOf(buildScriptJarFile.toURI().toURL())
|
val allUrls = (urls + arrayOf(buildScriptJarFile.toURI().toURL())
|
||||||
+ files.kobaltJar.map {File(it).toURI().toURL() })
|
+ files.kobaltJar.map {File(it).toURI().toURL() }
|
||||||
|
+ Kobalt.buildFileClasspath.map { it.jarFile.get().toURI().toURL()})
|
||||||
.toTypedArray()
|
.toTypedArray()
|
||||||
val classLoader = URLClassLoader(allUrls)
|
val classLoader = URLClassLoader(allUrls)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue