mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Use constants.
This commit is contained in:
parent
1af992cf14
commit
fe9891698c
1 changed files with 2 additions and 2 deletions
|
@ -95,10 +95,10 @@ abstract class JvmCompilerPlugin @Inject constructor(
|
|||
protected fun copyResources(project: Project, sourceSet: String) {
|
||||
val sourceDirs: ArrayList<String> = 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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue