mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Temporary fix for kotlinc 1.1.
This commit is contained in:
parent
9fb3eb87a2
commit
6ac1260e8b
9 changed files with 33 additions and 11 deletions
|
@ -5,6 +5,7 @@ import com.beust.kobalt.api.Kobalt
|
|||
import com.beust.kobalt.app.ProjectFinder
|
||||
import com.beust.kobalt.internal.build.BuildFile
|
||||
import com.beust.kobalt.internal.eventbus.ArtifactDownloadedEvent
|
||||
import com.beust.kobalt.maven.aether.Exceptions
|
||||
import com.google.common.eventbus.EventBus
|
||||
import com.google.common.eventbus.Subscribe
|
||||
import com.google.gson.Gson
|
||||
|
@ -28,7 +29,7 @@ class GetDependencyGraphHandler : WebSocketListener {
|
|||
}
|
||||
|
||||
override fun onWebSocketError(cause: Throwable?) {
|
||||
cause?.printStackTrace()
|
||||
Exceptions.printStackTrace(cause)
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
@ -72,7 +73,7 @@ class GetDependencyGraphHandler : WebSocketListener {
|
|||
}
|
||||
}, useGraph = true)
|
||||
} catch(ex: Throwable) {
|
||||
ex.printStackTrace()
|
||||
Exceptions.printStackTrace(ex)
|
||||
val errorMessage = ex.stackTrace.map { it.toString() }.joinToString("\n<p>")
|
||||
DependencyData.GetDependenciesData(errorMessage = errorMessage)
|
||||
} finally {
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.beust.kobalt.api.Kobalt
|
|||
import com.beust.kobalt.app.MainModule
|
||||
import com.beust.kobalt.homeDir
|
||||
import com.beust.kobalt.internal.KobaltSettings
|
||||
import com.beust.kobalt.maven.aether.Exceptions
|
||||
import com.beust.kobalt.misc.KFiles
|
||||
import com.beust.kobalt.misc.kobaltLog
|
||||
import com.beust.kobalt.misc.warn
|
||||
|
@ -71,7 +72,7 @@ class KobaltWebSocketClient : Runnable {
|
|||
}
|
||||
|
||||
override fun onFailure(ex: IOException, response: Response?) {
|
||||
ex.printStackTrace()
|
||||
Exceptions.printStackTrace(ex)
|
||||
error("WebSocket failure: ${ex.message} response: $response")
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.beust.kobalt.app.remote
|
|||
import com.beust.kobalt.api.Project
|
||||
import com.beust.kobalt.homeDir
|
||||
import com.beust.kobalt.internal.PluginInfo
|
||||
import com.beust.kobalt.maven.aether.Exceptions
|
||||
import com.beust.kobalt.misc.KFiles
|
||||
import com.beust.kobalt.misc.kobaltLog
|
||||
import com.google.inject.Inject
|
||||
|
@ -56,7 +57,7 @@ class KobaltServer @Inject constructor(@Assisted val force: Boolean, @Assisted @
|
|||
// WasabiServer(initCallback, cleanUpCallback).run(port)
|
||||
}
|
||||
} catch(ex: Exception) {
|
||||
ex.printStackTrace()
|
||||
Exceptions.printStackTrace(ex)
|
||||
} finally {
|
||||
// deleteServerFile()
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.beust.kobalt.app.Templates
|
|||
import com.beust.kobalt.internal.PluginInfo
|
||||
import com.beust.kobalt.internal.build.BuildFile
|
||||
import com.beust.kobalt.internal.eventbus.ArtifactDownloadedEvent
|
||||
import com.beust.kobalt.maven.aether.Exceptions
|
||||
import com.google.common.collect.ListMultimap
|
||||
import com.google.common.eventbus.EventBus
|
||||
import com.google.common.eventbus.Subscribe
|
||||
|
@ -110,7 +111,7 @@ class GetDependenciesHandler : WebSocketListener {
|
|||
}
|
||||
|
||||
override fun onWebSocketError(cause: Throwable?) {
|
||||
cause?.printStackTrace()
|
||||
Exceptions.printStackTrace(cause)
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue