mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Refactor.
This commit is contained in:
parent
ad72434b39
commit
6313888a21
2 changed files with 14 additions and 7 deletions
14
src/main/kotlin/com/beust/kobalt/api/CompilerActionInfo.kt
Normal file
14
src/main/kotlin/com/beust/kobalt/api/CompilerActionInfo.kt
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
package com.beust.kobalt.api
|
||||||
|
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Describe the information necessary to run a compiler.
|
||||||
|
*/
|
||||||
|
data class CompilerActionInfo(val directory: String?,
|
||||||
|
val dependencies: List<IClasspathDependency>,
|
||||||
|
val sourceFiles: List<String>,
|
||||||
|
val outputDir: File,
|
||||||
|
val compilerArgs: List<String>)
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,3 @@ import java.io.File
|
||||||
interface ICompilerContributor : IAffinity {
|
interface ICompilerContributor : IAffinity {
|
||||||
fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult
|
fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult
|
||||||
}
|
}
|
||||||
|
|
||||||
data class CompilerActionInfo(val directory: String?,
|
|
||||||
val dependencies: List<IClasspathDependency>,
|
|
||||||
val sourceFiles: List<String>,
|
|
||||||
val outputDir: File,
|
|
||||||
val compilerArgs: List<String>)
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue