You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2015/03/12 10:02:30 UTC

[1/3] spec commit: Using --copy-from instead of --link-to.

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master e487954f7 -> 760494351


Using --copy-from instead of --link-to.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/b632f2c8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/b632f2c8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/b632f2c8

Branch: refs/heads/master
Commit: b632f2c8dad42342b6930823c23afb54f0670bac
Parents: b911ce1
Author: Dmitry Blotsky <db...@microsoft.com>
Authored: Fri Mar 6 17:51:09 2015 -0800
Committer: Dmitry Blotsky <db...@microsoft.com>
Committed: Fri Mar 6 17:51:09 2015 -0800

----------------------------------------------------------------------
 createmobilespec/createmobilespec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/b632f2c8/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index 83ef3f8..9b2fd1b 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -411,7 +411,7 @@ if (argv.plugman) {
     // Create the project using "cordova create"
     myDelete(cli_project_dir);
     console.log("Creating project mobilespec...");
-    shelljs.exec(cli + " create " + projectDirName + " org.apache.cordova.mobilespec MobileSpec_Tests --link-to cordova-mobile-spec/www");
+    shelljs.exec(cli + " create " + projectDirName + " org.apache.cordova.mobilespec MobileSpec_Tests --copy-from cordova-mobile-spec/www");
     shelljs.cp("-f", path.join(mobile_spec_git_dir, 'config.xml'), path.join(projectDirName, 'config.xml'));
 
     // Config.json file ---> linked to local libraries
@@ -506,7 +506,7 @@ function installPlugins() {
         } else {
             shelljs.exec(cli + " plugin add " + path.join(mobile_spec_git_dir, "dependencies-plugin") + searchpath + linkPluginsFlag + browserifyFlag);
         }
-        
+
         if (argv.thirdpartyplugins || argv.cprplugins) {
             var mapVars = ' --variable API_KEY_FOR_ANDROID="AIzaSyBICVSs9JqT7WdASuN5HSe7w-pCE0n_X88" --variable API_KEY_FOR_IOS="AIzaSyAikyYG24YYFvq5Vy41P5kppsfO2GgF9jM"';
             var fbVars = ' --variable APP_ID=value --variable APP_NAME=value';


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


[3/3] spec commit: Copy Mobilespec App Template Instead of Linking It when `--copywww` option is supplied

Posted by an...@apache.org.
Copy Mobilespec App Template Instead of Linking It when `--copywww` option is supplied


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/76049435
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/76049435
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/76049435

Branch: refs/heads/master
Commit: 760494351e03c718ab91165fb1864870f8c0c3a0
Parents: e487954 05a087c
Author: Vladimir Kotikov <v-...@microsoft.com>
Authored: Thu Mar 12 12:01:28 2015 +0300
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Thu Mar 12 12:02:17 2015 +0300

----------------------------------------------------------------------
 createmobilespec/createmobilespec.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/76049435/createmobilespec/createmobilespec.js
----------------------------------------------------------------------


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


[2/3] spec commit: Putting the change behind a flag.

Posted by an...@apache.org.
Putting the change behind a flag.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/05a087cb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/05a087cb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/05a087cb

Branch: refs/heads/master
Commit: 05a087cb88f517d30c13c4d3ad29cdd80b1c12a9
Parents: b632f2c
Author: Dmitry Blotsky <db...@microsoft.com>
Authored: Tue Mar 10 14:30:51 2015 -0700
Committer: Dmitry Blotsky <db...@microsoft.com>
Committed: Tue Mar 10 14:30:51 2015 -0700

----------------------------------------------------------------------
 createmobilespec/createmobilespec.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/05a087cb/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index 9b2fd1b..f8f33c3 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -121,6 +121,7 @@ var top_dir =             process.cwd() + path.sep,
                                                  "\t\t\tUse only when you know what you are doing, this should be very rare.")
                    .boolean("linkplugins").describe("linkplugins", "Use the --link flag when running `cordova plugin add`.\n")
                    .boolean("linkplatforms").describe("linkplatforms", "Use the --link flag when running `cordova platform add`.\n")
+                   .boolean("copywww").describe("copywww", "Use --copy-from instead of --link-to when running `cordova create`.\n")
                    .boolean("link").describe("link", "Alias for --linkplugins --linkplatforms.\n")
                    .boolean("browserify").describe("browserify", "Use the --browserify flag when running `cordova plugin add`.\n")
                    .boolean("telerikplugins").describe("telerikplugins", "Adds a bunch of known-to-be-popular plugins from Telerik-Verified-Plugins.\n")
@@ -411,7 +412,8 @@ if (argv.plugman) {
     // Create the project using "cordova create"
     myDelete(cli_project_dir);
     console.log("Creating project mobilespec...");
-    shelljs.exec(cli + " create " + projectDirName + " org.apache.cordova.mobilespec MobileSpec_Tests --copy-from cordova-mobile-spec/www");
+    var copyOrLinkFlag = argv.copywww ? '--copy-from' : '--link-to';
+    shelljs.exec(cli + " create " + projectDirName + " org.apache.cordova.mobilespec MobileSpec_Tests " + copyOrLinkFlag + " cordova-mobile-spec/www");
     shelljs.cp("-f", path.join(mobile_spec_git_dir, 'config.xml'), path.join(projectDirName, 'config.xml'));
 
     // Config.json file ---> linked to local libraries


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