You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by he...@apache.org on 2020/12/12 22:30:30 UTC

[netbeans] 02/04: Load ant tasks

This is an automated email from the ASF dual-hosted git repository.

hectorespert pushed a commit to branch gradle_build_system
in repository https://gitbox.apache.org/repos/asf/netbeans.git

commit d25ab1aa82547d3446d5b5247fce183e866fa7d8
Author: Hector Espert <he...@gmail.com>
AuthorDate: Sun Dec 6 23:10:12 2020 +0100

    Load ant tasks
---
 build.gradle      | 26 ++++++++++++++++++++++++++
 gradle.properties |  1 +
 2 files changed, 27 insertions(+)

diff --git a/build.gradle b/build.gradle
index d7e8f5c..c40b916 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,3 +4,29 @@
  * This is a general purpose Gradle build.
  * Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.7.1/samples
  */
+
+/*
+ * Load 
+ */
+ant.importBuild('nbbuild/build.xml') { antTargetName ->
+    'ant-' + antTargetName
+}
+
+tasks.matching { task ->
+    task.name.startsWith('ant-')
+}*.group = 'Ant'
+
+task clean(type: Delete) {
+    group = 'Clean'
+    dependsOn = ['ant-clean']
+    delete rootProject.buildDir
+}
+
+task build() {
+    group = 'Build'
+    dependsOn = ['ant-build']
+    mustRunAfter = ['clean']
+    doLast {
+        println 'Hello world!'
+    }
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..6b1823d
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1 @@
+org.gradle.daemon=false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists