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.
experimental
Nehon 10 years ago
parent 3f3ef99b86
commit ec7432c90c
  1. 16
      build.gradle
  2. 5
      jme3-examples/build.gradle
  3. 5
      jme3-examples/gradle.properties

@ -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
// }
//}

@ -6,7 +6,10 @@ if (!hasProperty('mainClass')) {
task run(dependsOn: 'build', type:JavaExec) {
main = mainClass
classpath = sourceSets.main.runtimeClasspath
classpath = sourceSets.main.runtimeClasspath
if( assertions == "true" ){
enableAssertions = true;
}
}
dependencies {

@ -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…
Cancel
Save