incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject git commit: java man. wtf
Date Thu, 30 Aug 2012 04:48:51 GMT
Updated Branches:
  refs/heads/cordova-client bbf14c5ce -> 89c3c133b


java man. wtf


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/commit/89c3c133
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/tree/89c3c133
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/diff/89c3c133

Branch: refs/heads/cordova-client
Commit: 89c3c133b6ef3d0ab2419b131083a1389570c15c
Parents: bbf14c5
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Aug 29 21:48:47 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Wed Aug 29 21:48:47 2012 -0700

----------------------------------------------------------------------
 src/platform.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/89c3c133/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index a6dea00..f746ad0 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -79,7 +79,7 @@ module.exports = function platform(command, target, callback) {
                 } catch(e) {
                     // Doesn't exist, continue.
                     var bin = path.join(__dirname, '..', 'lib', target, 'bin', 'create');
-                    var pkg = cfg.packageName().replace(/\W/g,'_');
+                    var pkg = cfg.packageName().replace(/[^\w.]/g,'_');
                     var name = cfg.name().replace(/\W/g,'_');
                     var command = util.format('%s "%s" "%s" "%s"', bin, output, pkg, name);
                     exec(command, flow.set({
@@ -94,7 +94,7 @@ module.exports = function platform(command, target, callback) {
                         throw ('An error occured during creation of ' + target + ' sub-project.
' + bfrs.err);
                     }
                 }
-                callback();
+                if (callback) callback();
             });
             break;
         case 'remove':


Mime
View raw message