rusefi/java_console/shared_io/build.gradle

26 lines
670 B
Groovy
Raw Permalink Normal View History

2020-07-01 21:19:55 -07:00
plugins {
2024-04-19 17:35:44 -07:00
id 'java'
}
apply from: '../../android/dependencies.gradle'
2024-04-19 17:35:44 -07:00
java {
var boardDir = System.getenv("ABSOLUTE_BOARD_DIR")
println("gradle says: ABSOLUTE_BOARD_DIR=" + boardDir)
if (boardDir != null) {
var customResourcesFolder = boardDir + "/shared_io.resources"
if (new File(customResourcesFolder).exists()) {
println(customResourcesFolder + " found!")
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(customResourcesFolder)
}
} else {
println(customResourcesFolder + " not found.")
}
}
}
// TODO: rename folder to core_io
// this CORE module cannot depend on model/ini!