You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sk...@apache.org on 2020/02/10 13:50:25 UTC

[netbeans] branch master updated: [NETBEANS-3600] Use gradle-wrapper.properties to determine if we have a wrapper in the project.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4184689  [NETBEANS-3600] Use gradle-wrapper.properties to determine if we have a wrapper in the project.
     new 4afe7ee  Merge pull request #1938 from lkishalmi/NETBEANS-3600
4184689 is described below

commit 4184689f37ae73895a105bce4c086596950268b3
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Sat Feb 8 15:59:56 2020 -0800

    [NETBEANS-3600] Use gradle-wrapper.properties to determine if we have a wrapper in the project.
---
 groovy/gradle/src/org/netbeans/modules/gradle/spi/GradleFiles.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/groovy/gradle/src/org/netbeans/modules/gradle/spi/GradleFiles.java b/groovy/gradle/src/org/netbeans/modules/gradle/spi/GradleFiles.java
index 28679ec..7064045 100644
--- a/groovy/gradle/src/org/netbeans/modules/gradle/spi/GradleFiles.java
+++ b/groovy/gradle/src/org/netbeans/modules/gradle/spi/GradleFiles.java
@@ -139,10 +139,10 @@ public final class GradleFiles implements Serializable {
     }
 
     private void searchWrapper() {
-        File w = new File(rootDir, Utilities.isWindows() ? "gradlew.bat" : "gradlew");
+        File w = new File(rootDir, WRAPPER_PROPERTIES);
         if (w.isFile()) {
-            gradlew = w;
-            wrapperProperties = new File(rootDir, WRAPPER_PROPERTIES);
+            gradlew = new File(rootDir, Utilities.isWindows() ? "gradlew.bat" : "gradlew");
+            wrapperProperties = w;
         }
     }
 


---------------------------------------------------------------------
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