You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/08/14 03:48:18 UTC

[5/9] git commit: create needs to copy+rename the defaults.xml file for projects created outside the cordova-cli

create needs to copy+rename the defaults.xml file for projects created outside the cordova-cli


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/0f502163
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/0f502163
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/0f502163

Branch: refs/heads/master
Commit: 0f502163077af7992c031c995764b21d5646c258
Parents: 88ebdd6
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Aug 13 17:59:00 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Aug 13 17:59:00 2014 -0700

----------------------------------------------------------------------
 wp8/bin/create.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/0f502163/wp8/bin/create.js
----------------------------------------------------------------------
diff --git a/wp8/bin/create.js b/wp8/bin/create.js
index 1b6b21b..04f4392 100644
--- a/wp8/bin/create.js
+++ b/wp8/bin/create.js
@@ -179,8 +179,11 @@ function create(path, namespace, name) {
     // copy the version file
     fso.CopyFile(repoRoot +'\\VERSION',path + "\\" );
 
-    fso.CopyFile(platformRoot +'\\bin\\check_reqs.bat',path + "\\cordova\\" );    
-    fso.CopyFile(platformRoot +'\\bin\\check_reqs.js',path + "\\cordova\\" );   
+    fso.CopyFile(platformRoot +'\\bin\\check_reqs.bat',path + "\\cordova\\" );
+    fso.CopyFile(platformRoot +'\\bin\\check_reqs.js',path + "\\cordova\\" );
+
+    // copy the defaults.xml into config.xml so this project can be built when create is called minus the cordova-cli
+    fso.CopyFile(path + "\\cordova\\defaults.xml", path + "\\config.xml");
     
     // remove template cruft
     deleteFileIfExists(path + "\\__PreviewImage.jpg");
@@ -227,8 +230,6 @@ function create(path, namespace, name) {
 
     Log("CREATE SUCCESS : " + path);
 
-    // TODO:
-    // index.html title set to project name?
 }
 
 // MAIN