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 2013/03/28 00:40:54 UTC
[4/7] wp7 commit: [CB-2833] Changed git repo urls in scripts
[CB-2833] Changed git repo urls in scripts
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/2f055ae2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/2f055ae2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/2f055ae2
Branch: refs/heads/master
Commit: 2f055ae2bf52847cdf43d1dd2c111d2a987033f9
Parents: b1f4e54
Author: Benn Mapes <be...@gmail.com>
Authored: Wed Mar 27 14:41:18 2013 -0700
Committer: Benn Mapes <be...@gmail.com>
Committed: Wed Mar 27 14:41:18 2013 -0700
----------------------------------------------------------------------
tooling/scripts/buildjs.js | 2 +-
tooling/scripts/new.js | 16 +++++++---------
2 files changed, 8 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/2f055ae2/tooling/scripts/buildjs.js
----------------------------------------------------------------------
diff --git a/tooling/scripts/buildjs.js b/tooling/scripts/buildjs.js
index 8d50e2c..dd53a2f 100644
--- a/tooling/scripts/buildjs.js
+++ b/tooling/scripts/buildjs.js
@@ -35,7 +35,7 @@ var args = WScript.Arguments,
//Subfolder containing example project
EXAMPLE_PATH = '\\example',
//Git Repositories
- CORDOVA_JS = "git://github.com/apache/cordova-js.git",
+ CORDOVA_JS = 'https://git-wip-us.apache.org/repos/asf/cordova-js.git',
// get version
VERSION = read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/2f055ae2/tooling/scripts/new.js
----------------------------------------------------------------------
diff --git a/tooling/scripts/new.js b/tooling/scripts/new.js
index d04f977..be10a55 100644
--- a/tooling/scripts/new.js
+++ b/tooling/scripts/new.js
@@ -33,14 +33,14 @@ var args = WScript.Arguments,
//Sub folder containing framework
FRAMEWORK_PATH = '\\framework',
//Subfolder containing example project
- EXAMPLE_PATH = '\\example';
+ EXAMPLE_PATH = '\\example',
+ CORDOVA_WP7 = 'https://git-wip-us.apache.org/repos/asf/cordova-wp7.git';
+
//Destination to build to
var BUILD_DESTINATION;
// pull the project down from github?
var GET_NEW = false;
-//Add templates to visual studio?
-var ADD_TO_VS = false;
// help function
function Usage()
@@ -65,7 +65,7 @@ function read(filename) {
}
else
{
- WScript.StdOut.WriteLine('Cannot read non-existant file : ' + filename);
+ WScript.StdErr.WriteLine('Cannot read non-existant file : ' + filename);
WScript.Quit(1);
}
return null;
@@ -110,7 +110,7 @@ if(args.Count() > 0)
{
if(fso.FolderExists(args(0)))
{
- WScript.StdOut.WriteLine("The given directory already exists!");
+ WScript.StdErr.WriteLine("The given directory already exists!");
Usage();
WScript.Quit(1);
}
@@ -124,7 +124,7 @@ if(args.Count() > 0)
if(fso.FolderExists(BUILD_DESTINATION))
{
- WScript.StdOut.WriteLine("The given directory already exists!");
+ WScript.StdErr.WriteLine("The given directory already exists!");
Usage();
WScript.Quit(1);
}
@@ -140,15 +140,13 @@ if(args.Count() > 0)
}
else
{
- var CORDOVA_WP7 = 'git://github.com/apache/cordova-wp7.git';
-
wscript_shell.CurrentDirectory = arg(0) + '\\..';
BUILD_DESTINATION = wscript_shell.CurrentDirectory + '\\cordova-wp7';
WScript.StdOut.WriteLine('Cloning cordova-wp7 from git, build destination now ' + BUILD_DESTINATION);
if(fso.FolderExists(BUILD_DESTINATION))
{
- WScript.StdOut.WriteLine("Could not clone cordova-wp7 from git because it's directory already exists!");
+ WScript.StdErr.WriteLine("Could not clone cordova-wp7 from git because it's directory already exists!");
WScript.Quit(1);
}