mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Comment.
This commit is contained in:
parent
e1ee30c0c7
commit
ca1fd23b76
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ class BuildScriptUtil @Inject constructor(val plugins: Plugins, val files: KFile
|
||||||
fun runBuildScriptJarFile(buildScriptJarFile: File, urls: List<URL>,
|
fun runBuildScriptJarFile(buildScriptJarFile: File, urls: List<URL>,
|
||||||
context: KobaltContext) : List<Project> {
|
context: KobaltContext) : List<Project> {
|
||||||
var stream : InputStream? = null
|
var stream : InputStream? = null
|
||||||
|
// The jar files used to load the plug-ins are:
|
||||||
|
// - all the plug-ins found in the build 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() })
|
||||||
.toTypedArray()
|
.toTypedArray()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue