mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Delete server file on exit.
This commit is contained in:
parent
ec7d24a6f8
commit
7e86b5ae86
1 changed files with 1 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
package com.beust.kobalt.app.remote
|
package com.beust.kobalt.app.remote
|
||||||
|
|
||||||
import com.beust.kobalt.api.Project
|
|
||||||
import com.beust.kobalt.homeDir
|
import com.beust.kobalt.homeDir
|
||||||
import com.beust.kobalt.internal.PluginInfo
|
import com.beust.kobalt.internal.PluginInfo
|
||||||
import com.beust.kobalt.maven.aether.Exceptions
|
import com.beust.kobalt.maven.aether.Exceptions
|
||||||
|
@ -74,15 +73,12 @@ class KobaltServer @Inject constructor(@Assisted val force: Boolean, @Assisted @
|
||||||
try {
|
try {
|
||||||
if (createServerFile(port, force)) {
|
if (createServerFile(port, force)) {
|
||||||
kobaltLog(1, "KobaltServer listening on port $port")
|
kobaltLog(1, "KobaltServer listening on port $port")
|
||||||
// OldServer(initCallback, cleanUpCallback).run(port)
|
|
||||||
// JerseyServer(initCallback, cleanUpCallback).run(port)
|
|
||||||
SparkServer(cleanUpCallback, pluginInfo).run(port)
|
SparkServer(cleanUpCallback, pluginInfo).run(port)
|
||||||
// WasabiServer(initCallback, cleanUpCallback).run(port)
|
|
||||||
}
|
}
|
||||||
} catch(ex: Exception) {
|
} catch(ex: Exception) {
|
||||||
Exceptions.printStackTrace(ex)
|
Exceptions.printStackTrace(ex)
|
||||||
} finally {
|
} finally {
|
||||||
// deleteServerFile()
|
deleteServerFile()
|
||||||
}
|
}
|
||||||
return port
|
return port
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue