From 73cf2a9ab6e059fbb847169f2120b5ffd673bf4f Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Fri, 6 May 2016 01:41:10 -0800 Subject: [PATCH] Forgot to add these contributors. --- .../com/beust/kobalt/internal/KobaltPluginXml.kt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KobaltPluginXml.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KobaltPluginXml.kt index 3fa77f17..6864d5a2 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KobaltPluginXml.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/KobaltPluginXml.kt @@ -176,8 +176,17 @@ class PluginInfo(val xml: KobaltPluginXml, val pluginClassLoader: ClassLoader?, if (this is IIncrementalAssemblyContributor) incrementalAssemblyContributors.add(this) // Not documented yet - if (this is ITestJvmFlagContributor) testJvmFlagContributors.add(this) + if (this is ITestJvmFlagContributor) { + println("ADDING CONTRIBUTOR $this") + testJvmFlagContributors.add(this) + } if (this is ITestJvmFlagInterceptor) testJvmFlagInterceptors.add(this) + + if (it.contains("CoverageAgent")) { + val rec = this + println("IS: " + (rec is ITestJvmFlagContributor)) + println("DONOTCOMMIT") + } } } } @@ -199,7 +208,7 @@ class PluginInfo(val xml: KobaltPluginXml, val pluginClassLoader: ClassLoader?, } /** - * Populate pluginInfo with what was found in the plug-in's kobalt-plugin.xml + * Add the content of @param[pluginInfo] to this pluginInfo. */ fun addPluginInfo(pluginInfo: PluginInfo) { log(2, "Found new plug-in, adding it to pluginInfo: $pluginInfo") @@ -226,6 +235,7 @@ class PluginInfo(val xml: KobaltPluginXml, val pluginClassLoader: ClassLoader?, buildConfigContributors.addAll(pluginInfo.buildConfigContributors) assemblyContributors.addAll(pluginInfo.assemblyContributors) incrementalAssemblyContributors.addAll(pluginInfo.incrementalAssemblyContributors) + testJvmFlagContributors.addAll(pluginInfo.testJvmFlagContributors) testJvmFlagInterceptors.addAll(pluginInfo.testJvmFlagInterceptors) } }