1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

IPluginActor fixes.

This commit is contained in:
Cedric Beust 2015-11-27 05:29:24 -08:00
parent f0ca73e8d2
commit 8e7ffcc26f
3 changed files with 5 additions and 3 deletions

View file

@ -5,6 +5,6 @@ import com.beust.kobalt.internal.CompilerActionInfo
/**
* Plug-ins can alter what is passed to the compiler by implementing this interface.
*/
interface ICompilerInterceptor : IPluginActor {
interface ICompilerInterceptor : IInterceptor {
fun intercept(project: Project, context: KobaltContext, actionInfo: CompilerActionInfo) : CompilerActionInfo
}

View file

@ -4,4 +4,6 @@ interface IPluginActor
interface IContributor : IPluginActor
interface IInterceptor : IPluginActor

View file

@ -1,14 +1,14 @@
package com.beust.kobalt.api
import com.beust.kobalt.BasePluginTask
import com.beust.kobalt.TaskResult
import com.beust.kobalt.api.annotation.Task
import com.beust.kobalt.internal.TaskManager
import com.beust.kobalt.TaskResult
import com.beust.kobalt.internal.TaskResult2
import java.lang.reflect.Method
import java.util.*
public interface IPlugin {
public interface IPlugin : IPluginActor {
val name: String
val tasks : ArrayList<PluginTask>
fun accept(project: Project) : Boolean