Added a graddle.properties to je jme-examples project with an override of buildJavaDoc to false, to not generate the javadoc when building from jme-examples
Also added a parameter to enable assertion as executable classes are only in this project anyway. Removed the global assertion setting as it's only needed in jme-examples.
This commit is contained in:
parent
3f3ef99b86
commit
ec7432c90c
16
build.gradle
16
build.gradle
@ -175,11 +175,11 @@ ext {
|
||||
// }
|
||||
//}
|
||||
|
||||
allprojects {
|
||||
tasks.withType(JavaExec) {
|
||||
enableAssertions = true // false by default
|
||||
}
|
||||
tasks.withType(Test) {
|
||||
enableAssertions = true // true by default
|
||||
}
|
||||
}
|
||||
//allprojects {
|
||||
// tasks.withType(JavaExec) {
|
||||
// enableAssertions = true // false by default
|
||||
// }
|
||||
// tasks.withType(Test) {
|
||||
// enableAssertions = true // true by default
|
||||
// }
|
||||
//}
|
@ -7,6 +7,9 @@ if (!hasProperty('mainClass')) {
|
||||
task run(dependsOn: 'build', type:JavaExec) {
|
||||
main = mainClass
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
if( assertions == "true" ){
|
||||
enableAssertions = true;
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
5
jme3-examples/gradle.properties
Normal file
5
jme3-examples/gradle.properties
Normal file
@ -0,0 +1,5 @@
|
||||
# When running this project we don't need javadoc to be built.
|
||||
buildJavaDoc = false
|
||||
|
||||
# We want assertions, because this is the test project.
|
||||
assertions = true
|
Loading…
x
Reference in New Issue
Block a user