From fe9891698c95bf365fb38b9507594efa6bc1c698 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 9 Nov 2015 18:11:16 -0800 Subject: [PATCH] Use constants. --- .../kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt b/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt index 9b223e16..179b085d 100644 --- a/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt @@ -95,10 +95,10 @@ abstract class JvmCompilerPlugin @Inject constructor( protected fun copyResources(project: Project, sourceSet: String) { val sourceDirs: ArrayList = arrayListOf() var outputDir: String? - if (sourceSet == "main") { + if (sourceSet == JvmCompilerPlugin.SOURCE_SET_MAIN) { sourceDirs.addAll(project.sourceDirectories.filter { it.contains("resources") }) outputDir = KFiles.CLASSES_DIR - } else if (sourceSet == "test") { + } else if (sourceSet == JvmCompilerPlugin.SOURCE_SET_TEST) { sourceDirs.addAll(project.sourceDirectoriesTest.filter { it.contains("resources") }) outputDir = KFiles.TEST_CLASSES_DIR } else {