mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Comments.
This commit is contained in:
parent
896102dedf
commit
3aa169e136
3 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,9 @@ abstract public class BasePlugin : IPlugin {
|
|||
this.context = context
|
||||
}
|
||||
|
||||
/**
|
||||
* The list of projects depended upon (e.g. val p = javaProject(dependentProject)).
|
||||
*/
|
||||
protected val projects = arrayListOf<ProjectDescription>()
|
||||
|
||||
fun addProject(project: Project, dependsOn: Array<out Project>) =
|
||||
|
|
|
@ -39,6 +39,10 @@ public class DependencyManager @Inject constructor(val executors: KobaltExecutor
|
|||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the transitive closure of the dependencies *without* running the classpath contributors.
|
||||
* TODO: This should be private, everyone should be calling calculateDependencies().
|
||||
*/
|
||||
fun transitiveClosure(dependencies : List<IClasspathDependency>): List<IClasspathDependency> {
|
||||
var executor = executors.newExecutor("JvmCompiler}", 10)
|
||||
|
||||
|
|
|
@ -107,6 +107,8 @@ class KotlinCompiler @Inject constructor(val localRepo : LocalRepo,
|
|||
|
||||
/**
|
||||
* Create an ICompilerAction based on the parameters and send it to JvmCompiler.doCompile().
|
||||
* TODO: This needs to be removed because it doesn't use contributors. Call
|
||||
* JvmCompilerPlugin#createCompilerActionInfo instead
|
||||
*/
|
||||
fun compile(project: Project?, context: KobaltContext?, compileDependencies: List<IClasspathDependency>,
|
||||
otherClasspath: List<String>, sourceFiles: List<String>, outputDir: File, args: List<String>) : TaskResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue