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:31 UTC

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

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