Browse Source

Gradle Build: Add convenience task `run` for Windows Systems which cannot invoke ant from the command line. (And each project should have a run task, anyway)

MeFisto94 9 years ago
parent
commit
bc0c309603
1 changed files with 4 additions and 0 deletions
  1. 4 0
      build.gradle

+ 4 - 0
build.gradle

@@ -560,6 +560,10 @@ file('.').eachDir{
 }
 buildSdk.outputs.dir "build"
 
+task run(dependsOn: buildSdk) << {
+    ant.ant(dir: ".", antfile: "build.xml", target: "run")
+}
+
 task cleanSdk() <<{
     ant.ant(dir: ".", antfile: "build.xml", target: "clean")
     file("jme3-core-baselibs/release/").deleteDir()