cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [3/4] android commit: CB-7512 Fix gradle asking for release password when building for debug
Date Thu, 18 Sep 2014 01:28:32 GMT
CB-7512 Fix gradle asking for release password when building for debug


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/3f83fdbf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/3f83fdbf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/3f83fdbf

Branch: refs/heads/4.0.x
Commit: 3f83fdbfc169e5f49bde36700d4ae4d2ff52797f
Parents: 9491525
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Sep 17 21:27:06 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Sep 17 21:27:06 2014 -0400

----------------------------------------------------------------------
 bin/templates/project/build.gradle | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3f83fdbf/bin/templates/project/build.gradle
----------------------------------------------------------------------
diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle
index b6994b6..6de8c54 100644
--- a/bin/templates/project/build.gradle
+++ b/bin/templates/project/build.gradle
@@ -140,7 +140,7 @@ def promptForPassword(msg) {
     }
 }
 
-task promptForReleaseKeyPassword {
+def promptForReleaseKeyPassword() {
     if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) {
         return;
     }
@@ -153,9 +153,11 @@ task promptForReleaseKeyPassword {
     }
 }
 
-tasks.whenTaskAdded { task ->
-    if (task.name == 'validateReleaseSigning') {
-        task.dependsOn promptForReleaseKeyPassword
+gradle.taskGraph.whenReady { taskGraph ->
+    taskGraph.getAllTasks().each() { task ->
+        if (task.name == 'validateReleaseSigning') {
+            promptForReleaseKeyPassword()
+        }
     }
 }
 


Mime
View raw message