summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-01 16:14:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-01 16:14:26 +0100
commita7996c48d42a105953dc6e524d30bf2b7e51904f (patch)
treee099687f6479bca595a86d2a3d88b3608fd2e6ee
parent0ccd01b2b8e20f00997469ebc18a2a71c3c41651 (diff)
downloadRustAndDust-a7996c48d42a105953dc6e524d30bf2b7e51904f.zip
RustAndDust-a7996c48d42a105953dc6e524d30bf2b7e51904f.tar.gz
add core:javadocs task
-rw-r--r--core/build.gradle40
1 files changed, 40 insertions, 0 deletions
diff --git a/core/build.gradle b/core/build.gradle
index 5e4e04b..d70163b 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -7,6 +7,46 @@ sourceSets.main.java.srcDirs = [ "src/" ]
sourceSets.test.java.srcDirs = [ "test/" ]
+// sourceSets {
+// engine {
+// java {
+// srcDirs = [ "src/" ]
+// include '**/engine/**'
+// }
+// }
+// game {
+// java {
+// srcDirs = [ "src/" ]
+// include '**/game/**'
+// }
+// }
+// }
+
+// task engineDocs(type: Javadoc) {
+// title = "RustAndDust - Engine"
+// source = sourceSets.engine.allJava
+// classpath = sourceSets.main.compileClasspath
+// destinationDir = file("../javadoc/engine")
+//}
+
+//task gameDocs(type: Javadoc) {
+// title = "RustAndDust - Game"
+// source = sourceSets.game.allJava
+// classpath = sourceSets.main.compileClasspath
+// destinationDir = file("../javadoc/game")
+//}
+
+//task allDocs {
+// dependsOn engineDocs, gameDocs
+//}
+
+task javadocs(type: Javadoc) {
+ title = "RustAndDust"
+ source = sourceSets.main.allJava
+ classpath = sourceSets.main.compileClasspath
+ destinationDir = file("../javadoc/")
+}
+
eclipse.project {
name = appName + "-core"
}