mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Forward slashes.
This commit is contained in:
parent
a7616b7b78
commit
fba509445f
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
package com.beust.kobalt.api
|
package com.beust.kobalt.api
|
||||||
|
|
||||||
import com.beust.kobalt.maven.IClasspathDependency
|
import com.beust.kobalt.maven.IClasspathDependency
|
||||||
import com.beust.kobalt.misc.KFiles
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
import java.io.OutputStream
|
import java.io.OutputStream
|
||||||
|
@ -119,7 +118,8 @@ class PluginInfo(val xml: KobaltPluginXml) {
|
||||||
* Read Kobalt's own plugin.xml.
|
* Read Kobalt's own plugin.xml.
|
||||||
*/
|
*/
|
||||||
fun readKobaltPluginXml() : PluginInfo {
|
fun readKobaltPluginXml() : PluginInfo {
|
||||||
val pluginXml = KFiles.joinDir("META-INF", "plugin.xml") // Plugins.PLUGIN_XML)
|
// Note: use forward slash here since we're looking up this file in a .jar file
|
||||||
|
val pluginXml = "META-INF/plugin.xml" // Plugins.PLUGIN_XML)
|
||||||
val url = Kobalt::class.java.classLoader.getResource(pluginXml)
|
val url = Kobalt::class.java.classLoader.getResource(pluginXml)
|
||||||
if (url != null) {
|
if (url != null) {
|
||||||
return readPluginXml(url.openConnection().inputStream)
|
return readPluginXml(url.openConnection().inputStream)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue