mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 15:20:55 +00:00
only use main source set
This commit is contained in:
@@ -76,8 +76,7 @@ tasks.create<SourceTask>("tectonicDocs") {
|
|||||||
|
|
||||||
val docs = HashMap<String, String>()
|
val docs = HashMap<String, String>()
|
||||||
|
|
||||||
sourceSets.forEach { sourceSet ->
|
sourceSets.main.get().java.forEach { file ->
|
||||||
sourceSet.java.forEach { file ->
|
|
||||||
val doc = StringBuilder()
|
val doc = StringBuilder()
|
||||||
val name = file.name.substring(0, file.name.length - 5)
|
val name = file.name.substring(0, file.name.length - 5)
|
||||||
val unit = StaticJavaParser.parse(file)
|
val unit = StaticJavaParser.parse(file)
|
||||||
@@ -118,7 +117,6 @@ tasks.create<SourceTask>("tectonicDocs") {
|
|||||||
docs[name] = s
|
docs[name] = s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
println("Done. Generated ${docs.size} files")
|
println("Done. Generated ${docs.size} files")
|
||||||
|
|
||||||
val docsDir = File(buildDir, "tectonic")
|
val docsDir = File(buildDir, "tectonic")
|
||||||
|
|||||||
Reference in New Issue
Block a user