1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Return URI's for local Maven repo paths.

Partial fix for https://github.com/cbeust/kobalt/issues/289
This commit is contained in:
Cedric Beust 2016-07-20 18:17:06 -07:00
parent 3562682cb4
commit c5a79ea673

View file

@ -77,10 +77,10 @@ fun glob(g: String) : IFileSpec.GlobSpec = IFileSpec.GlobSpec(g)
*/
@Directive
fun localMaven() : String {
var result = file(Kobalt.INJECTOR.getInstance(KobaltSettings::class.java).localMavenRepo.path)
var result = Kobalt.INJECTOR.getInstance(KobaltSettings::class.java).localMavenRepo
val pluginInfo = Kobalt.INJECTOR.getInstance(PluginInfo::class.java)
pluginInfo.localMavenRepoPathInterceptors.forEach {
result = it.repoPath(result)
result = File(it.repoPath(result.absolutePath))
}
return result
return result.toURI().toString()
}