Переглянути джерело

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 роки тому
батько
коміт
bc0c309603
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      build.gradle

+ 4 - 0
build.gradle

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