1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-02-13 18:25:07 -08:00
parent e1ee30c0c7
commit ca1fd23b76

View file

@ -37,6 +37,9 @@ class BuildScriptUtil @Inject constructor(val plugins: Plugins, val files: KFile
fun runBuildScriptJarFile(buildScriptJarFile: File, urls: List<URL>,
context: KobaltContext) : List<Project> {
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())
+ files.kobaltJar.map {File(it).toURI().toURL() })
.toTypedArray()