cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [03/12] cordova-amazon-fireos git commit: Revert Gradle distributionUrlRegex cleanup.
Date Mon, 22 Dec 2014 15:53:00 GMT
Revert Gradle distributionUrlRegex cleanup.

This reverts commit 75a0a6752a77e2e0f491ae4de7137f5163c7a4bd.


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/b409290b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/b409290b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/b409290b

Branch: refs/heads/master
Commit: b409290b1d1cd7a4dea61c1835dbf708b7f4e964
Parents: 251130b
Author: Brian Geppert <briangeppert@briangeppert.com>
Authored: Tue Dec 9 11:57:29 2014 -0600
Committer: Ajitha <ajithas@amazon.com>
Committed: Sat Dec 13 18:50:13 2014 +0000

----------------------------------------------------------------------
 bin/templates/cordova/lib/build.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/b409290b/bin/templates/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js
index 0d4d004..fead206 100644
--- a/bin/templates/cordova/lib/build.js
+++ b/bin/templates/cordova/lib/build.js
@@ -239,7 +239,8 @@ var builders = {
 
                 // If the gradle distribution URL is set, make sure it points to version
1.12.
                 // If it's not set, do nothing, assuming that we're using a future version
of gradle that we don't want to mess with.
-                var distributionUrlRegex = '/^distributionUrl=.*$/';
+                // For some reason, using ^ and $ don't work.  This does the job, though.
+                var distributionUrlRegex = /distributionUrl.*zip/;
                 var distributionUrl = 'distributionUrl=http\\://services.gradle.org/distributions/gradle-1.12-all.zip';
                 var gradleWrapperPropertiesPath = path.join(projectPath, 'gradle', 'wrapper',
'gradle-wrapper.properties');
                 shell.sed('-i', distributionUrlRegex, distributionUrl, gradleWrapperPropertiesPath);


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


Mime
View raw message