mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
IPluginActor fixes.
This commit is contained in:
parent
f0ca73e8d2
commit
8e7ffcc26f
3 changed files with 5 additions and 3 deletions
|
@ -5,6 +5,6 @@ import com.beust.kobalt.internal.CompilerActionInfo
|
||||||
/**
|
/**
|
||||||
* Plug-ins can alter what is passed to the compiler by implementing this interface.
|
* 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
|
fun intercept(project: Project, context: KobaltContext, actionInfo: CompilerActionInfo) : CompilerActionInfo
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,4 +4,6 @@ interface IPluginActor
|
||||||
|
|
||||||
interface IContributor : IPluginActor
|
interface IContributor : IPluginActor
|
||||||
|
|
||||||
|
interface IInterceptor : IPluginActor
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package com.beust.kobalt.api
|
package com.beust.kobalt.api
|
||||||
|
|
||||||
import com.beust.kobalt.BasePluginTask
|
import com.beust.kobalt.BasePluginTask
|
||||||
|
import com.beust.kobalt.TaskResult
|
||||||
import com.beust.kobalt.api.annotation.Task
|
import com.beust.kobalt.api.annotation.Task
|
||||||
import com.beust.kobalt.internal.TaskManager
|
import com.beust.kobalt.internal.TaskManager
|
||||||
import com.beust.kobalt.TaskResult
|
|
||||||
import com.beust.kobalt.internal.TaskResult2
|
import com.beust.kobalt.internal.TaskResult2
|
||||||
import java.lang.reflect.Method
|
import java.lang.reflect.Method
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
public interface IPlugin {
|
public interface IPlugin : IPluginActor {
|
||||||
val name: String
|
val name: String
|
||||||
val tasks : ArrayList<PluginTask>
|
val tasks : ArrayList<PluginTask>
|
||||||
fun accept(project: Project) : Boolean
|
fun accept(project: Project) : Boolean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue