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

Comments.

This commit is contained in:
Cedric Beust 2015-10-30 13:03:59 -07:00
parent 5a144065ec
commit 6c4b97fcfd
3 changed files with 7 additions and 4 deletions

View file

@ -13,6 +13,11 @@ import java.io.File
* Also validates the classpath and run all the contributors.
*/
class JvmCompiler @Inject constructor(val dependencyManager: DependencyManager) {
/**
* Create a final, enriched CompilerActionInfo from the contributors and the transitive dependencies and
* then pass it to the ICompilerAction.
*/
fun doCompile(project: Project?, context: KobaltContext?, action: ICompilerAction, info: CompilerActionInfo)
: TaskResult {
File(info.outputDir).mkdirs()

View file

@ -47,8 +47,7 @@ class JavaCompiler @Inject constructor(val jvmCompiler: JvmCompiler) {
}
/**
* Create an ICompilerAction and a CompilerActionInfo suitable to be passed to doCompiler() to perform the
* actual compilation.
* Create an ICompilerAction based on the parameters and send it to JvmCompiler.doCompile().
*/
fun compile(project: Project?, context: KobaltContext?, dependencies: List<IClasspathDependency>,
sourceFiles: List<String>, outputDir: String, args: List<String>) : TaskResult {

View file

@ -52,8 +52,7 @@ class KotlinCompiler @Inject constructor(val localRepo : LocalRepo,
}
/**
* Create an ICompilerAction and a CompilerActionInfo suitable to be passed to doCompiler() to perform the
* actual compilation.
* Create an ICompilerAction based on the parameters and send it to JvmCompiler.doCompile().
*/
fun compile(project: Project?, context: KobaltContext?, compileDependencies: List<IClasspathDependency>,
otherClasspath: List<String>, source: List<String>, outputDir: String, args: List<String>) : TaskResult {