- add run task to jme3-examples

- use run task of jme3-examples in main project run task
experimental
Normen Hansen 10 years ago
parent c8fcac1254
commit 6ff69cccf6
  1. 11
      build.gradle
  2. 6
      jme3-examples/build.gradle

@ -11,16 +11,8 @@ subprojects {
// } // }
} }
task run(dependsOn: ':jme3-examples:build', type: JavaExec) { task run(dependsOn: ':jme3-examples:run') {
description = 'Run the jME3 examples' description = 'Run the jME3 examples'
main = 'jme3test.TestChooser'
classpath += files(subprojects.collect{project ->
project.sourceSets*.runtimeClasspath})
// classpath += files(subprojects.collect {project ->
// project.sourceSets*.output})
// classpath = sourceSets.main.runtimeClasspath
// args 'mrhaki'
// systemProperty 'simple.message', 'Hello '
} }
defaultTasks 'run' defaultTasks 'run'
@ -66,7 +58,6 @@ task createZipDistribution(type:Zip,dependsOn:["dist","libDist"], description:"P
into("/sources") { into("/sources") {
from {"$buildDir/libDist/sources"} from {"$buildDir/libDist/sources"}
} }
println archiveName
} }
task copyLibs(type: Copy){ task copyLibs(type: Copy){

@ -4,7 +4,10 @@ if (!hasProperty('mainClass')) {
ext.mainClass = 'jme3test.TestChooser' ext.mainClass = 'jme3test.TestChooser'
} }
//mainClassName = ext.mainClass task run(dependsOn: 'build', type:JavaExec) {
main = mainClass
classpath = sourceSets.main.runtimeClasspath
}
dependencies { dependencies {
compile project(':jme3-blender') compile project(':jme3-blender')
@ -12,6 +15,7 @@ dependencies {
compile project(':jme3-desktop') compile project(':jme3-desktop')
compile project(':jme3-effects') compile project(':jme3-effects')
// compile project(':jme3-bullet') // compile project(':jme3-bullet')
// compile project(':jme3-bullet-native')
compile project(':jme3-jbullet') compile project(':jme3-jbullet')
compile project(':jme3-jogg') compile project(':jme3-jogg')
// compile project(':jme3-jogl') // compile project(':jme3-jogl')

Loading…
Cancel
Save