mirror of
https://github.com/MovingBlocks/Terasology
synced 2026-05-24 09:28:22 +00:00
13 lines
No EOL
707 B
Text
13 lines
No EOL
707 B
Text
// This magically allows subdirs in this subproject to themselves become sub-subprojects in a proper tree structure
|
|
File(rootDir, "metas").listFiles()?.filter { it.isDirectory }?.forEach { possibleSubprojectDir ->
|
|
if (!possibleSubprojectDir.name.startsWith(".")) {
|
|
val subprojectName = "metas:" + possibleSubprojectDir.name
|
|
println("Processing meta module $subprojectName, including it as a sub-project")
|
|
include(subprojectName)
|
|
val subprojectPath = ":" + subprojectName
|
|
val subproject = project(subprojectPath)
|
|
subproject.projectDir = possibleSubprojectDir
|
|
} else {
|
|
println("Ignoring entry $possibleSubprojectDir as it starts with .")
|
|
}
|
|
} |