diff --git a/src/main/kotlin/us/ihmc/ci/IHMCCILogTools.kt b/src/main/kotlin/us/ihmc/ci/IHMCCILogTools.kt deleted file mode 100644 index a30b7d5c..00000000 --- a/src/main/kotlin/us/ihmc/ci/IHMCCILogTools.kt +++ /dev/null @@ -1,48 +0,0 @@ -package us.ihmc.ci - -import org.gradle.api.GradleException -import org.gradle.api.logging.Logger - -class IHMCCILogTools(val logger: Logger) -{ - fun quiet(message: Any) - { - logger.quiet(ihmcBuildMessage(message)) - } - - fun info(message: Any) - { - logger.info(ihmcBuildMessage(message)) - } - - fun warn(message: Any) - { - logger.warn(ihmcBuildMessage(message)) - } - - fun error(message: Any) - { - logger.error(ihmcBuildMessage(message)) - } - - fun debug(message: Any) - { - logger.debug(ihmcBuildMessage(message)) - } - - fun trace(trace: Any) - { - logger.trace(trace.toString()) - } - - fun crash(message: Any) - { - error(message) - throw GradleException("[ihmc-ci] " + message as String) - } - - private fun ihmcBuildMessage(message: Any): String - { - return "[ihmc-ci] " + message - } -} \ No newline at end of file diff --git a/src/main/kotlin/us/ihmc/ci/IHMCCIPlugin.kt b/src/main/kotlin/us/ihmc/ci/IHMCCIPlugin.kt index 38e5f650..9b054184 100644 --- a/src/main/kotlin/us/ihmc/ci/IHMCCIPlugin.kt +++ b/src/main/kotlin/us/ihmc/ci/IHMCCIPlugin.kt @@ -7,10 +7,11 @@ import org.gradle.api.Task import org.gradle.api.plugins.JavaPluginConvention import org.gradle.api.tasks.testing.Test import org.gradle.api.tasks.testing.logging.TestLogEvent +import us.ihmc.build.IHMCBuildLogTools import java.io.File import java.time.Duration -lateinit var LogTools: IHMCCILogTools +lateinit var LogTools: IHMCBuildLogTools class IHMCCIPlugin : Plugin { @@ -60,7 +61,7 @@ class IHMCCIPlugin : Plugin override fun apply(project: Project) { this.project = project - LogTools = IHMCCILogTools(project.logger) + LogTools = IHMCBuildLogTools(project.logger) loadProperties() categoriesExtension = project.extensions.create("categories", IHMCCICategoriesExtension::class.java, project)