From 6313888a21593d86ac457ca241febcadf60bef99 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sun, 29 Nov 2015 11:20:33 -0800 Subject: [PATCH] Refactor. --- .../com/beust/kobalt/api/CompilerActionInfo.kt | 14 ++++++++++++++ .../com/beust/kobalt/api/ICompilerContributor.kt | 7 ------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 src/main/kotlin/com/beust/kobalt/api/CompilerActionInfo.kt diff --git a/src/main/kotlin/com/beust/kobalt/api/CompilerActionInfo.kt b/src/main/kotlin/com/beust/kobalt/api/CompilerActionInfo.kt new file mode 100644 index 00000000..9a1d374d --- /dev/null +++ b/src/main/kotlin/com/beust/kobalt/api/CompilerActionInfo.kt @@ -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, + val sourceFiles: List, + val outputDir: File, + val compilerArgs: List) + + diff --git a/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt b/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt index 42047ad4..e9b0982f 100644 --- a/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt +++ b/src/main/kotlin/com/beust/kobalt/api/ICompilerContributor.kt @@ -7,10 +7,3 @@ import java.io.File interface ICompilerContributor : IAffinity { fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult } - -data class CompilerActionInfo(val directory: String?, - val dependencies: List, - val sourceFiles: List, - val outputDir: File, - val compilerArgs: List) -