mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Fix the Osgi plug-in.
This commit is contained in:
parent
18c6f38948
commit
323bfae756
1 changed files with 1 additions and 5 deletions
|
@ -14,7 +14,6 @@ import com.google.inject.Inject
|
||||||
import com.google.inject.Singleton
|
import com.google.inject.Singleton
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.net.URI
|
|
||||||
import java.net.URLClassLoader
|
import java.net.URLClassLoader
|
||||||
import java.nio.file.*
|
import java.nio.file.*
|
||||||
import java.time.LocalDate
|
import java.time.LocalDate
|
||||||
|
@ -88,10 +87,7 @@ class OsgiPlugin @Inject constructor(val configActor: ConfigActor<OsgiConfig>, v
|
||||||
//
|
//
|
||||||
KFiles.copy(Paths.get(jarFile.toURI()), Paths.get(toFile.toUri()))
|
KFiles.copy(Paths.get(jarFile.toURI()), Paths.get(toFile.toUri()))
|
||||||
|
|
||||||
val uri = URI.create(KFiles.fixSlashes("jar:file:/" + toFile))
|
val fileSystem = FileSystems.newFileSystem(toFile, null)
|
||||||
|
|
||||||
val options = hashMapOf<String, String>()
|
|
||||||
val fileSystem = FileSystems.newFileSystem(uri, options)
|
|
||||||
fileSystem.use { fs ->
|
fileSystem.use { fs ->
|
||||||
JarFile(jarFile).use { jf ->
|
JarFile(jarFile).use { jf ->
|
||||||
val mf = jf.getEntry(MetaArchive.MANIFEST_MF)
|
val mf = jf.getEntry(MetaArchive.MANIFEST_MF)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue