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:
parent
3562682cb4
commit
c5a79ea673
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue