1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-04-25 22:10:59 -08:00
parent a6cb4c3314
commit d02def081a
5 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -229,7 +229,7 @@ open class JvmCompilerPlugin @Inject constructor(
// IProjectContributor
override fun projects() = allProjects
override fun shutdownActors() {
override fun cleanUpActors() {
allProjects.clear()
}

View file

@ -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()
}
}
}

View file

@ -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()