Merge pull request #9 from bennmapes/CB-2833
[CB-2833] Changed git repo urls in scripts
diff --git a/tooling/scripts/buildjs.js b/tooling/scripts/buildjs.js
index d425e15..78a68f1 100644
--- a/tooling/scripts/buildjs.js
+++ b/tooling/scripts/buildjs.js
@@ -35,7 +35,7 @@
//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/,''),
BUILD_DESTINATION;
diff --git a/tooling/scripts/new.js b/tooling/scripts/new.js
index 324d8a7..1e6597b 100644
--- a/tooling/scripts/new.js
+++ b/tooling/scripts/new.js
@@ -33,14 +33,14 @@
//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 @@
}
else
{
- WScript.StdOut.WriteLine('Cannot read non-existant file : ' + filename);
+ WScript.StdErr.WriteLine('Cannot read non-existant file : ' + filename);
WScript.Quit(1);
}
return null;
@@ -105,7 +105,7 @@
{
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);
}
@@ -119,7 +119,7 @@
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);
}
@@ -135,15 +135,13 @@
}
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);
}