mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Rename.
This commit is contained in:
parent
a6cb4c3314
commit
d02def081a
5 changed files with 8 additions and 8 deletions
|
@ -4,7 +4,7 @@ interface IPluginActor {
|
|||
/**
|
||||
* Clean up any state that your actor might have saved so it can be run again.
|
||||
*/
|
||||
fun shutdownActors() {}
|
||||
fun cleanUpActors() {}
|
||||
}
|
||||
|
||||
interface IContributor : IPluginActor
|
||||
|
|
|
@ -229,7 +229,7 @@ open class JvmCompilerPlugin @Inject constructor(
|
|||
// IProjectContributor
|
||||
override fun projects() = allProjects
|
||||
|
||||
override fun shutdownActors() {
|
||||
override fun cleanUpActors() {
|
||||
allProjects.clear()
|
||||
}
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ class PluginInfo(val xml: KobaltPluginXml, val classLoader: ClassLoader?) {
|
|||
}
|
||||
}
|
||||
|
||||
fun shutdown() {
|
||||
fun cleanUp() {
|
||||
listOf(projectContributors, classpathContributors, initContributors,
|
||||
repoContributors, compilerFlagContributors, compilerInterceptors,
|
||||
sourceDirectoriesInterceptors, buildDirectoryInterceptors,
|
||||
|
@ -179,7 +179,7 @@ class PluginInfo(val xml: KobaltPluginXml, val classLoader: ClassLoader?) {
|
|||
incrementalAssemblyContributors
|
||||
).forEach {
|
||||
it.forEach {
|
||||
it.shutdownActors()
|
||||
it.cleanUpActors()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -343,7 +343,7 @@ class TaskManager @Inject constructor(val args: Args,
|
|||
/**
|
||||
* Invoked by the server whenever it's done processing a command so the state can be reset for the next command.
|
||||
*/
|
||||
private fun cleanUp() {
|
||||
fun cleanUp() {
|
||||
annotationTasks.clear()
|
||||
dynamicTasks.clear()
|
||||
taskAnnotations.clear()
|
||||
|
|
|
@ -45,7 +45,7 @@ fun mainNoExit(argv: Array<String>): Int {
|
|||
Kobalt.init(MainModule(args, KobaltSettings.readSettingsXml()))
|
||||
val result = Kobalt.INJECTOR.getInstance(Main::class.java).run {
|
||||
val runResult = run(jc, args, argv)
|
||||
pluginInfo.shutdown()
|
||||
pluginInfo.cleanUp()
|
||||
executors.shutdown()
|
||||
runResult
|
||||
}
|
||||
|
@ -221,8 +221,8 @@ private class Main @Inject constructor(
|
|||
}
|
||||
|
||||
private fun cleanUp() {
|
||||
pluginInfo.shutdown()
|
||||
taskManager.shutdown()
|
||||
pluginInfo.cleanUp()
|
||||
taskManager.cleanUp()
|
||||
}
|
||||
|
||||
private fun initForBuildFile(buildFile: BuildFile, args: Args): List<Project> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue