You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2014/09/30 09:45:53 UTC
[07/38] CB-7666 Move stuff outside of windows subdir
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/bin/node_modules/shelljs/src/which.js
----------------------------------------------------------------------
diff --git a/windows/bin/node_modules/shelljs/src/which.js b/windows/bin/node_modules/shelljs/src/which.js
deleted file mode 100644
index 2822ecf..0000000
--- a/windows/bin/node_modules/shelljs/src/which.js
+++ /dev/null
@@ -1,83 +0,0 @@
-var common = require('./common');
-var fs = require('fs');
-var path = require('path');
-
-// Cross-platform method for splitting environment PATH variables
-function splitPath(p) {
- for (i=1;i<2;i++) {}
-
- if (!p)
- return [];
-
- if (common.platform === 'win')
- return p.split(';');
- else
- return p.split(':');
-}
-
-function checkPath(path) {
- return fs.existsSync(path) && fs.statSync(path).isDirectory() == false;
-}
-
-//@
-//@ ### which(command)
-//@
-//@ Examples:
-//@
-//@ ```javascript
-//@ var nodeExec = which('node');
-//@ ```
-//@
-//@ Searches for `command` in the system's PATH. On Windows looks for `.exe`, `.cmd`, and `.bat` extensions.
-//@ Returns string containing the absolute path to the command.
-function _which(options, cmd) {
- if (!cmd)
- common.error('must specify command');
-
- var pathEnv = process.env.path || process.env.Path || process.env.PATH,
- pathArray = splitPath(pathEnv),
- where = null;
-
- // No relative/absolute paths provided?
- if (cmd.search(/\//) === -1) {
- // Search for command in PATH
- pathArray.forEach(function(dir) {
- if (where)
- return; // already found it
-
- var attempt = path.resolve(dir + '/' + cmd);
- if (checkPath(attempt)) {
- where = attempt;
- return;
- }
-
- if (common.platform === 'win') {
- var baseAttempt = attempt;
- attempt = baseAttempt + '.exe';
- if (checkPath(attempt)) {
- where = attempt;
- return;
- }
- attempt = baseAttempt + '.cmd';
- if (checkPath(attempt)) {
- where = attempt;
- return;
- }
- attempt = baseAttempt + '.bat';
- if (checkPath(attempt)) {
- where = attempt;
- return;
- }
- } // if 'win'
- });
- }
-
- // Command not found anywhere?
- if (!checkPath(cmd) && !where)
- return null;
-
- where = where || path.resolve(cmd);
-
- return common.ShellString(where);
-}
-module.exports = _which;
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/bin/update
----------------------------------------------------------------------
diff --git a/windows/bin/update b/windows/bin/update
deleted file mode 100644
index f3e8287..0000000
--- a/windows/bin/update
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var update = require('./lib/update');
-
-// check for help flag
-if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) > -1) {
- update.help();
-} else {
- update.run(process.argv).done(function () {
- console.log('Successfully updated windows project.');
- }, function (err) {
- console.error('Failed to check requirements due to', err);
- process.exit(2);
- });
-}
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/bin/update.bat
----------------------------------------------------------------------
diff --git a/windows/bin/update.bat b/windows/bin/update.bat
deleted file mode 100644
index 33becfc..0000000
--- a/windows/bin/update.bat
+++ /dev/null
@@ -1,25 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License
-@ECHO OFF
-SET script_path="%~dp0update"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'update' script in 'bin' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/package.json
----------------------------------------------------------------------
diff --git a/windows/package.json b/windows/package.json
deleted file mode 100644
index e8cd820..0000000
--- a/windows/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "cordova-windows",
- "version": "3.7.0-dev",
- "description": "cordova-windows release",
- "main": "bin/create",
- "repository": {
- "type": "git",
- "url": "https://github.com/apache/cordova-windows"
- },
- "keywords": [
- "windows",
- "cordova",
- "apache"
- ],
- "dependencies": {
- "q": "^0.9.0",
- "nopt": "~3",
- "node-uuid": "~1.4",
- "shelljs": "~0.3"
- },
- "scripts": {
- "test": "bin\\create .\\testcreate & .\\testcreate\\cordova\\build & rm -rf .\\testcreate"
- },
- "author": "Apache Software Foundation",
- "license": "Apache Version 2.0"
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.Phone.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Phone.jsproj b/windows/template/CordovaApp.Phone.jsproj
deleted file mode 100644
index 43e4fe2..0000000
--- a/windows/template/CordovaApp.Phone.jsproj
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <OutputPath>build\phone\$(Configuration)\$(Platform)\</OutputPath>
- <IntermediateOutputPath>build\phone\bld\</IntermediateOutputPath>
- </PropertyGroup>
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|AnyCPU">
- <Configuration>Debug</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x86">
- <Configuration>Debug</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|AnyCPU">
- <Configuration>Release</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x86">
- <Configuration>Release</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>31b67a35-9503-4213-857e-f44eb42ae549</ProjectGuid>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0'">
- <VisualStudioVersion>12.0</VisualStudioVersion>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
- <PropertyGroup Label="Configuration">
- <TargetPlatformIdentifier>WindowsPhoneApp</TargetPlatformIdentifier>
- <TargetPlatformVersion>8.1</TargetPlatformVersion>
- <RequiredPlatformVersion>8.1</RequiredPlatformVersion>
- <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
- <PropertyGroup>
- <DefaultLanguage>en-US</DefaultLanguage>
- </PropertyGroup>
- <ItemGroup>
- <AppxManifest Include="package.phone.appxmanifest">
- <SubType>Designer</SubType>
- </AppxManifest>
- <Content Include="images\*.png" Exclude="images\*.scale-180.*" />
- </ItemGroup>
- <ItemGroup>
- <SDKReference Include="Microsoft.Phone.WinJS.2.1, Version=1.0" />
- </ItemGroup>
- <Import Project="CordovaApp.projitems" Label="Shared" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
- <!-- To modify your build process, add your task inside one of the targets below then uncomment
- that target and the DisableFastUpToDateCheck PropertyGroup.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- <PropertyGroup>
- <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
- </PropertyGroup>
- -->
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.Windows.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Windows.jsproj b/windows/template/CordovaApp.Windows.jsproj
deleted file mode 100644
index 6905ba6..0000000
--- a/windows/template/CordovaApp.Windows.jsproj
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <OutputPath>build\windows\$(Configuration)\$(Platform)\</OutputPath>
- <IntermediateOutputPath>build\windows\bld\</IntermediateOutputPath>
- </PropertyGroup>
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|AnyCPU">
- <Configuration>Debug</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x86">
- <Configuration>Debug</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|AnyCPU">
- <Configuration>Release</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x86">
- <Configuration>Release</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>58950fb6-2f93-4963-b9cd-637f83f3efbf</ProjectGuid>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0'">
- <VisualStudioVersion>12.0</VisualStudioVersion>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
- <PropertyGroup>
- <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
- <TargetPlatformVersion>8.1</TargetPlatformVersion>
- <RequiredPlatformVersion>8.1</RequiredPlatformVersion>
- <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
- <DefaultLanguage>en-US</DefaultLanguage>
- <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <AppxManifest Include="package.windows.appxmanifest">
- <SubType>Designer</SubType>
- </AppxManifest>
- <Content Include="images\*.png" Exclude="images\*.scale-240.*" />
- <None Include="CordovaApp_TemporaryKey.pfx" />
- </ItemGroup>
- <ItemGroup>
- <SDKReference Include="Microsoft.WinJS.2.0, Version=1.0" />
- </ItemGroup>
- <Import Project="CordovaApp.projitems" Label="Shared" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
- <!-- To modify your build process, add your task inside one of the targets below then uncomment
- that target and the DisableFastUpToDateCheck PropertyGroup.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- <PropertyGroup>
- <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
- </PropertyGroup>
- -->
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.Windows80.jsproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.Windows80.jsproj b/windows/template/CordovaApp.Windows80.jsproj
deleted file mode 100644
index a50df83..0000000
--- a/windows/template/CordovaApp.Windows80.jsproj
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <OutputPath>build\windows80\$(Configuration)\$(Platform)\</OutputPath>
- <IntermediateOutputPath>build\windows80\bld\</IntermediateOutputPath>
- </PropertyGroup>
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|AnyCPU">
- <Configuration>Debug</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|ARM">
- <Configuration>Debug</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x86">
- <Configuration>Debug</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|AnyCPU">
- <Configuration>Release</Configuration>
- <Platform>AnyCPU</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|ARM">
- <Configuration>Release</Configuration>
- <Platform>ARM</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x86">
- <Configuration>Release</Configuration>
- <Platform>x86</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>efffab2f-bfc5-4eda-b545-45ef4995f55a</ProjectGuid>
- </PropertyGroup>
- <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '11.0'">
- <VisualStudioVersion>11.0</VisualStudioVersion>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
- <PropertyGroup>
- <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
- <TargetPlatformVersion>8.0</TargetPlatformVersion>
- <DefaultLanguage>en-US</DefaultLanguage>
- <PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
- </PropertyGroup>
- <ItemGroup>
- <AppxManifest Include="package.windows80.appxmanifest">
- <SubType>Designer</SubType>
- </AppxManifest>
- <Content Include="images\*.png" Exclude="images\*.scale-240.*" />
- <None Include="CordovaApp_TemporaryKey.pfx" />
- </ItemGroup>
- <ItemGroup>
- <SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
- </ItemGroup>
- <Import Project="CordovaApp.projitems" Label="Shared" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- </PropertyGroup>
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.projitems
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.projitems b/windows/template/CordovaApp.projitems
deleted file mode 100644
index 972a1a4..0000000
--- a/windows/template/CordovaApp.projitems
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
- <HasSharedItems>true</HasSharedItems>
- <SharedGUID>9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9</SharedGUID>
- </PropertyGroup>
- <ItemGroup>
- <Content Include="$(MSBuildThisFileDirectory)www\**" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="$(MSBuildThisFileDirectory)config.xml" />
- </ItemGroup>
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.shproj
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.shproj b/windows/template/CordovaApp.shproj
deleted file mode 100644
index 08b59df..0000000
--- a/windows/template/CordovaApp.shproj
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}</ProjectGuid>
- </PropertyGroup>
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
- <PropertyGroup />
- <Import Project="CordovaApp.projitems" Label="Shared" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.CodeSharing.JavaScript.targets" />
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.sln
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.sln b/windows/template/CordovaApp.sln
deleted file mode 100644
index 71caade..0000000
--- a/windows/template/CordovaApp.sln
+++ /dev/null
@@ -1,134 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-VisualStudioVersion = 12.0.30324.0
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CordovaApp", "CordovaApp", "{3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}"
-EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CordovaApp", "CordovaApp.shproj", "{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}"
-EndProject
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows8.0", "CordovaApp.Windows80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
-EndProject
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows", "CordovaApp.Windows.jsproj", "{58950FB6-2F93-4963-B9CD-637F83F3EFBF}"
-EndProject
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Phone", "CordovaApp.Phone.jsproj", "{31B67A35-9503-4213-857E-F44EB42AE549}"
-EndProject
-Global
- GlobalSection(SharedMSBuildProjectFiles) = preSolution
- CordovaApp.projitems*{58950fb6-2f93-4963-b9cd-637f83f3efbf}*SharedItemsImports = 5
- CordovaApp.projitems*{efffab2f-bfc5-4eda-b545-45ef4995f55a}*SharedItemsImports = 5
- CordovaApp.projitems*{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}*SharedItemsImports = 13
- CordovaApp.projitems*{31b67a35-9503-4213-857e-f44eb42ae549}*SharedItemsImports = 5
- EndGlobalSection
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|ARM = Debug|ARM
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|Any CPU = Release|Any CPU
- Release|ARM = Release|ARM
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|ARM.ActiveCfg = Debug|ARM
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|ARM.Build.0 = Debug|ARM
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|ARM.Deploy.0 = Debug|ARM
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x64.ActiveCfg = Debug|x64
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x64.Build.0 = Debug|x64
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x64.Deploy.0 = Debug|x64
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x86.ActiveCfg = Debug|x86
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x86.Build.0 = Debug|x86
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x86.Deploy.0 = Debug|x86
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|Any CPU.Build.0 = Release|Any CPU
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|Any CPU.Deploy.0 = Release|Any CPU
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|ARM.ActiveCfg = Release|ARM
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|ARM.Build.0 = Release|ARM
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|ARM.Deploy.0 = Release|ARM
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x64.ActiveCfg = Release|x64
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x64.Build.0 = Release|x64
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x64.Deploy.0 = Release|x64
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x86.ActiveCfg = Release|x86
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x86.Build.0 = Release|x86
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x86.Deploy.0 = Release|x86
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|ARM.ActiveCfg = Debug|ARM
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|ARM.Build.0 = Debug|ARM
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|ARM.Deploy.0 = Debug|ARM
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x64.ActiveCfg = Debug|x64
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x64.Build.0 = Debug|x64
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x64.Deploy.0 = Debug|x64
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x86.ActiveCfg = Debug|x86
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x86.Build.0 = Debug|x86
- {31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x86.Deploy.0 = Debug|x86
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|Any CPU.Build.0 = Release|Any CPU
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|Any CPU.Deploy.0 = Release|Any CPU
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|ARM.ActiveCfg = Release|ARM
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|ARM.Build.0 = Release|ARM
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|ARM.Deploy.0 = Release|ARM
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x64.ActiveCfg = Release|x64
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x64.Build.0 = Release|x64
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x64.Deploy.0 = Release|x64
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.ActiveCfg = Release|x86
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Build.0 = Release|x86
- {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Deploy.0 = Release|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.ActiveCfg = Debug|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.Build.0 = Debug|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.Deploy.0 = Debug|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.ActiveCfg = Debug|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.Build.0 = Debug|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.Deploy.0 = Debug|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.ActiveCfg = Debug|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.Build.0 = Debug|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.Deploy.0 = Debug|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|Any CPU.Build.0 = Release|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|Any CPU.Deploy.0 = Release|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.ActiveCfg = Release|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.Build.0 = Release|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.Deploy.0 = Release|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.ActiveCfg = Release|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.Build.0 = Release|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.Deploy.0 = Release|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.ActiveCfg = Release|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.Build.0 = Release|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.Deploy.0 = Release|x86
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
- {58950FB6-2F93-4963-B9CD-637F83F3EFBF} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
- {31B67A35-9503-4213-857E-F44EB42AE549} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
- EndGlobalSection
-EndGlobal
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp.vs2012.sln
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp.vs2012.sln b/windows/template/CordovaApp.vs2012.sln
deleted file mode 100644
index b08ca94..0000000
--- a/windows/template/CordovaApp.vs2012.sln
+++ /dev/null
@@ -1,64 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows8.0", "CordovaApp.Windows80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|AnyCPU = Debug|AnyCPU
- Debug|ARM = Debug|ARM
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|AnyCPU = Release|AnyCPU
- Release|ARM = Release|ARM
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|AnyCPU.Build.0 = Debug|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|AnyCPU.Deploy.0 = Debug|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.ActiveCfg = Debug|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.Build.0 = Debug|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.Deploy.0 = Debug|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.ActiveCfg = Debug|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.Build.0 = Debug|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.Deploy.0 = Debug|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.ActiveCfg = Debug|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.Build.0 = Debug|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.Deploy.0 = Debug|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|AnyCPU.ActiveCfg = Release|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|AnyCPU.Build.0 = Release|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|AnyCPU.Deploy.0 = Release|Any CPU
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.ActiveCfg = Release|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.Build.0 = Release|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.Deploy.0 = Release|ARM
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.ActiveCfg = Release|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.Build.0 = Release|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.Deploy.0 = Release|x64
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.ActiveCfg = Release|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.Build.0 = Release|x86
- {EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.Deploy.0 = Release|x86
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/CordovaApp_TemporaryKey.pfx
----------------------------------------------------------------------
diff --git a/windows/template/CordovaApp_TemporaryKey.pfx b/windows/template/CordovaApp_TemporaryKey.pfx
deleted file mode 100644
index ac90ea2..0000000
Binary files a/windows/template/CordovaApp_TemporaryKey.pfx and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/config.xml
----------------------------------------------------------------------
diff --git a/windows/template/config.xml b/windows/template/config.xml
deleted file mode 100644
index 558496c..0000000
--- a/windows/template/config.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
--->
-<widget xmlns="http://www.w3.org/ns/widgets">
- <preference name="windows-target-version" value="8.0" />
- <preference name="windows-phone-target-version" value="8.1" />
-</widget>
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/build
----------------------------------------------------------------------
diff --git a/windows/template/cordova/build b/windows/template/cordova/build
deleted file mode 100644
index 8fbceae..0000000
--- a/windows/template/cordova/build
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var build = require('./lib/build'),
- args = process.argv;
-
-// Handle help flag
-if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[2]) > -1) {
- build.help();
-} else {
- build.run(args).done(null, function(err) {
- var errorMessage = (err && err.stack) ? err.stack : err;
- console.error('ERROR: ' + errorMessage);
- process.exit(2);
- });
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/build.bat
----------------------------------------------------------------------
diff --git a/windows/template/cordova/build.bat b/windows/template/cordova/build.bat
deleted file mode 100644
index f367400..0000000
--- a/windows/template/cordova/build.bat
+++ /dev/null
@@ -1,25 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License
-@ECHO OFF
-SET script_path="%~dp0build"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/clean
----------------------------------------------------------------------
diff --git a/windows/template/cordova/clean b/windows/template/cordova/clean
deleted file mode 100644
index 71877fe..0000000
--- a/windows/template/cordova/clean
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var clean = require('./lib/clean');
-
-clean.run(process.argv).done(null, function(err) {
- console.error('ERROR: ' + err);
- process.exit(2);
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/windows/template/cordova/clean.bat b/windows/template/cordova/clean.bat
deleted file mode 100644
index 25f1790..0000000
--- a/windows/template/cordova/clean.bat
+++ /dev/null
@@ -1,25 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License
-@ECHO OFF
-SET script_path="%~dp0clean"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/ConfigParser.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/ConfigParser.js b/windows/template/cordova/lib/ConfigParser.js
deleted file mode 100644
index a08ccd6..0000000
--- a/windows/template/cordova/lib/ConfigParser.js
+++ /dev/null
@@ -1,168 +0,0 @@
-/**
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-/* jshint node:true, bitwise:true, undef:true, trailing:true, quotmark:true,
- indent:4, unused:vars, latedef:nofunc,
- sub:true
-*/
-
-var et = require('elementtree'),
- fs = require('fs');
-
-/** Wraps a config.xml file */
-function ConfigParser(path) {
- this.path = path;
- try {
- var contents = fs.readFileSync(path, 'utf-8');
- if(contents) {
- //Windows is the BOM. Skip the Byte Order Mark.
- contents = contents.substring(contents.indexOf('<'));
- }
- this.doc = new et.ElementTree(et.XML(contents));
-
- } catch (e) {
- console.error('Parsing '+path+' failed');
- throw e;
- }
- var r = this.doc.getroot();
- if (r.tag !== 'widget') {
- throw new CordovaError(path + ' has incorrect root node name (expected "widget", was "' + r.tag + '")');
- }
-}
-
-function getNodeTextSafe(el) {
- return el && el.text && el.text.trim();
-}
-
-function findOrCreate(doc, name) {
- var ret = doc.find(name);
- if (!ret) {
- ret = new et.Element(name);
- doc.getroot().append(ret);
- }
- return ret;
-}
-
-ConfigParser.prototype = {
- packageName: function(id) {
- return this.doc.getroot().attrib['id'];
- },
- setPackageName: function(id) {
- this.doc.getroot().attrib['id'] = id;
- },
- name: function() {
- return getNodeTextSafe(this.doc.find('name'));
- },
- setName: function(name) {
- var el = findOrCreate(this.doc, 'name');
- el.text = name;
- },
- startPage: function() {
- var content = this.doc.find('content');
- if (content) {
- return content.attrib.src;
- }
- return null;
- },
- description: function() {
- return this.doc.find('description').text.trim();
- },
- setDescription: function(text) {
- var el = findOrCreate(this.doc, 'description');
- el.text = text;
- },
- version: function() {
- return this.doc.getroot().attrib['version'];
- },
- android_versionCode: function() {
- return this.doc.getroot().attrib['android-versionCode'];
- },
- ios_CFBundleVersion: function() {
- return this.doc.getroot().attrib['ios-CFBundleVersion'];
- },
- setVersion: function(value) {
- this.doc.getroot().attrib['version'] = value;
- },
- author: function() {
- return getNodeTextSafe(this.doc.find('author'));
- },
- getPreference: function(name) {
- var preferences = this.doc.findall('preference');
- var ret = null;
- preferences.forEach(function (preference) {
- // Take the last one that matches.
- if (preference.attrib.name.toLowerCase() === name.toLowerCase()) {
- ret = preference.attrib.value;
- }
- });
- return ret;
- },
- /**
- * Returns all resources.
- * @param {string} resourceName Type of static resources to return.
- * "icon" and "splash" currently supported.
- * @return {Array} Resources for the platform specified.
- */
- getStaticResources: function(resourceName) {
- return this.doc.findall(resourceName).map(function (elt) {
- var res = {};
- res.src = elt.attrib.src;
- res.target = elt.attrib.target;
- res.density = elt.attrib['density'] || elt.attrib['cdv:density'] || elt.attrib['gap:density'];
- res.platform = elt.platform || null; // null means icon represents default icon (shared between platforms)
- res.width = elt.attrib.width;
- res.height = elt.attrib.height;
-
- return res;
- });
- },
-
- /**
- * Returns all defined icons.
- * @return {Resource[]} Array of icon objects.
- */
- getIcons: function() {
- return this.getStaticResources('icon');
- },
-
- /**
- * Returns all defined splash images.
- * @return {Resource[]} Array of Splash objects.
- */
- getSplashScreens: function() {
- return this.getStaticResources('splash');
- },
-
- /**
- * Returns all access rules.
- * @return {string[]} Array of access rules.
- */
- getAccessRules: function() {
- var rules = this.doc.getroot().findall('access');
- var ret = [];
- rules.forEach(function (rule) {
- if (rule.attrib.origin) {
- ret.push(rule.attrib.origin);
- }
- });
- return ret;
- }
-};
-
-module.exports = ConfigParser;
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/MSBuildTools.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/MSBuildTools.js b/windows/template/cordova/lib/MSBuildTools.js
deleted file mode 100644
index c88a975..0000000
--- a/windows/template/cordova/lib/MSBuildTools.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var Q = require('Q'),
- path = require('path'),
- exec = require('./exec'),
- spawn = require('./spawn');
-
-function MSBuildTools (version, path) {
- this.version = version;
- this.path = path;
-}
-
-MSBuildTools.prototype.buildProject = function(projFile, buildType, buildarch) {
- console.log("Building project: " + projFile);
- console.log("\tConfiguration : " + buildType);
- console.log("\tPlatform : " + buildarch);
-
- var args = ['/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal', '/nologo',
- '/p:Configuration=' + buildType,
- '/p:Platform=' + buildarch];
-
- return spawn(path.join(this.path, 'msbuild'), [projFile].concat(args));
-}
-
-// returns full path to msbuild tools required to build the project and tools version
-module.exports.findAvailableVersion = function () {
- var versions = ['12.0', '4.0'];
-
- return Q.all(versions.map(checkMSBuildVersion)).then(function (versions) {
- // select first msbuild version available, and resolve promise with it
- var msbuildTools = versions[0] || versions[1];
-
- return msbuildTools ? Q.resolve(msbuildTools) : Q.reject('MSBuild tools not found');
- });
-};
-
-function checkMSBuildVersion(version) {
- var deferred = Q.defer();
- exec('reg query HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\' + version + ' /v MSBuildToolsPath')
- .then(function(output) {
- // fetch msbuild path from 'reg' output
- var path = /MSBuildToolsPath\s+REG_SZ\s+(.*)/i.exec(output);
- if (path) {
- deferred.resolve(new MSBuildTools(version, path[1]));
- return;
- }
- deferred.resolve(null); // not found
- }, function (err) {
- // if 'reg' exits with error, assume that registry key not found
- deferred.resolve(null);
- });
- return deferred.promise;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/WindowsStoreAppUtils.ps1
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/WindowsStoreAppUtils.ps1 b/windows/template/cordova/lib/WindowsStoreAppUtils.ps1
deleted file mode 100644
index 86bc579..0000000
--- a/windows/template/cordova/lib/WindowsStoreAppUtils.ps1
+++ /dev/null
@@ -1,147 +0,0 @@
-<#
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-#>
-$code = @"
-using System;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-namespace StoreAppRunner
-{
- public enum ActivateOptions
- {
- None = 0,
- DesignMode = 0x1,
- NoErrorUI = 0x2,
- NoSplashScreen = 0x4
- }
-
- [ComImport]
- [Guid("2e941141-7f97-4756-ba1d-9decde894a3d")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IApplicationActivationManager
- {
- IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] ActivateOptions options, [Out] out UInt32 processId);
- IntPtr ActivateForFile([In] String appUserModelId, [In] IntPtr itemArray, [In] String verb, [Out] out UInt32 processId);
- IntPtr ActivateForProtocol([In] String appUserModelId, [In] IntPtr itemArray, [Out] out UInt32 processId);
- }
- [ComImport]
- [Guid("45BA127D-10A8-46EA-8AB7-56EA9078943C")]
- public class ApplicationActivationManager : IApplicationActivationManager
- {
- [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
- public extern IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] ActivateOptions options, [Out] out UInt32 processId);
- [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
- public extern IntPtr ActivateForFile([In] String appUserModelId, [In] IntPtr itemArray, [In] String verb, [Out] out UInt32 processId);
- [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
- public extern IntPtr ActivateForProtocol([In] String appUserModelId, [In] IntPtr itemArray, [Out] out UInt32 processId);
- }
-}
-"@
-
-function Uninstall-App {
- param(
- [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
- [string] $ID <# package.appxmanifest//Identity@name #>
- )
-
- $package = Get-AppxPackage $ID
-
- if($package) {
- Remove-AppxPackage $package.PackageFullName
- }
-}
-
-#
-# Checks whether the machine is missing a valid developer license.
-#
-function CheckIfNeedDeveloperLicense
-{
- $Result = $true
- try
- {
- $Result = (Get-WindowsDeveloperLicense | Where-Object { $_.IsValid }).Count -eq 0
- }
- catch {}
-
- return $Result
-}
-
-#
-# Checks whether the package certificate must be installed on the machine.
-#
-function CheckIfNeedInstallCertificate
-{
- param(
- [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
- [string] $ScriptDir <# Full path to the dir where Add-AppDevPackage.ps1 is stored #>
- )
-
- $PackagePath = Get-ChildItem (Join-Path $ScriptDir "*.appx") | Where-Object { $_.Mode -NotMatch "d" }
- $BundlePath = Get-ChildItem (Join-Path $ScriptDir "*.appxbundle") | Where-Object { $_.Mode -NotMatch "d" }
- # There must be exactly 1 package/bundle
- if (($PackagePath.Count + $BundlePath.Count) -lt 1)
- {
- Throw "The app package has not been found at dir $ScriptDir"
- }
- if (($PackagePath.Count + $BundlePath.Count) -gt 1)
- {
- Throw "To many app packages have been found at dir $ScriptDir"
- }
-
- if ($PackagePath.Count -ne 1) # there is *.appxbundle
- {
- $PackagePath = $BundlePath
- }
-
- $PackageSignature = (Get-AuthenticodeSignature $PackagePath)
- $Valid = ($PackageSignature -and $PackageSignature.Status -eq "Valid")
- return (-not $Valid)
-}
-
-function Install-App {
- param(
- [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
- [string] $Path <# Full path to Add-AppDevPackage.ps1 #>
- )
- if ((CheckIfNeedDeveloperLicense) -or (CheckIfNeedInstallCertificate (Join-Path $Path "..")))
- {
- # we can't run the script with -force param if license/certificate installation step is required
- Invoke-Expression ("& `"$Path`"")
- }
- else
- {
- Invoke-Expression ("& `"$Path`" -force")
- }
-}
-
-function Start-Locally {
- param(
- [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
- [string] $ID <# package.appxmanifest//Identity@name #>
- )
-
- $package = Get-AppxPackage $ID
- $manifest = Get-appxpackagemanifest $package
- $applicationUserModelId = $package.PackageFamilyName + "!" + $manifest.package.applications.application.id
-
- Write-Host "ActivateApplication: " $applicationUserModelId
-
- add-type -TypeDefinition $code
- $appActivator = new-object StoreAppRunner.ApplicationActivationManager
- $appActivator.ActivateApplication($applicationUserModelId,$null,[StoreAppRunner.ActivateOptions]::None,[ref]0) | Out-Null
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/build.js b/windows/template/cordova/lib/build.js
deleted file mode 100644
index 5af4ba0..0000000
--- a/windows/template/cordova/lib/build.js
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var Q = require('Q'),
- path = require('path'),
- nopt = require('nopt'),
- spawn = require('./spawn'),
- utils = require('./utils'),
- prepare = require('./prepare'),
- MSBuildTools = require('./MSBuildTools'),
- ConfigParser = require('./ConfigParser');
-
-// Platform project root folder
-var ROOT = path.join(__dirname, '..', '..');
-var projFiles = {
- phone: 'CordovaApp.Phone.jsproj',
- win: 'CordovaApp.Windows.jsproj',
- win80: 'CordovaApp.Windows80.jsproj'
-};
-// parsed nopt arguments
-var args;
-// build type (Release vs Debug)
-var buildType;
-// target chip architectures to build for
-var buildArchs;
-// MSBuild Tools available on this development machine
-var msbuild;
-
-// builds cordova-windows application with parameters provided.
-// See 'help' function for args list
-module.exports.run = function run (argv) {
- if (!utils.isCordovaProject(ROOT)){
- return Q.reject('Could not find project at ' + ROOT);
- }
-
- try {
- // thows exception if something goes wrong
- parseAndValidateArgs(argv);
- } catch (error) {
- return Q.reject(error);
- }
-
- // update platform as per configuration settings
- prepare.applyPlatformConfig();
-
- return MSBuildTools.findAvailableVersion().then(
- function(msbuildTools) {
- msbuild = msbuildTools;
- console.log('MSBuildToolsPath: ' + msbuild.path);
- return buildTargets();
- });
-};
-
-// help/usage function
-module.exports.help = function help() {
- console.log("");
- console.log("Usage: build [ --debug | --release ] [--archs=\"<list of architectures...>\"] [--phone | --win]");
- console.log(" --help : Displays this dialog.");
- console.log(" --debug : Builds project in debug mode. (Default)");
- console.log(" --release : Builds project in release mode.");
- console.log(" -r : Shortcut :: builds project in release mode.");
- console.log(" --archs : Builds project binaries for specific chip architectures (`anycpu`, `arm`, `x86`, `x64`).");
- console.log(" --phone, --win");
- console.log(" : Specifies, what type of project to build");
- console.log("examples:");
- console.log(" build ");
- console.log(" build --debug");
- console.log(" build --release");
- console.log(" build --release --archs=\"arm x86\"");
- console.log("");
- process.exit(0);
-};
-
-function parseAndValidateArgs(argv) {
- // parse and validate args
- args = nopt({'debug': Boolean, 'release': Boolean, 'archs': [String],
- 'phone': Boolean, 'win': Boolean}, {'-r': '--release'}, argv);
- // Validate args
- if (args.debug && args.release) {
- throw 'Only one of "debug"/"release" options should be specified';
- }
- if (args.phone && args.win) {
- throw 'Only one of "phone"/"win" options should be specified';
- }
-
- // get build options/defaults
- buildType = args.release ? 'release' : 'debug';
- buildArchs = args.archs ? args.archs.split(' ') : ['anycpu'];
-}
-
-function buildTargets() {
-
- // filter targets to make sure they are supported on this development machine
- var buildTargets = filterSupportedTargets(getBuildTargets(), msbuild);
-
- var buildConfigs = [];
-
- // collect all build configurations (pairs of project to build and target architecture)
- buildTargets.forEach(function(buildTarget) {
- buildArchs.forEach(function(buildArch) {
- buildConfigs.push({target:buildTarget, arch: buildArch});
- })
- });
-
- // run builds serially
- return buildConfigs.reduce(function (promise, build) {
- return promise.then(function () {
- // support for "any cpu" specified with or without space
- if (build.arch == 'any cpu') {
- build.arch = 'anycpu';
- }
- // msbuild 4.0 requires .sln file, we can't build jsproj
- if (msbuild.version == '4.0' && build.target == projFiles.win80) {
- build.target = 'CordovaApp.vs2012.sln';
- }
- return msbuild.buildProject(path.join(ROOT, build.target), buildType, build.arch);
- });
- }, Q());
-}
-
-function getBuildTargets() {
- var config = new ConfigParser(path.join(ROOT, 'config.xml'));
- var targets = [];
- var noSwitches = !(args.phone || args.win);
- // Windows
- if (args.win || noSwitches) { // if --win or no arg
- var windowsTargetVersion = config.getPreference('windows-target-version')
- switch(windowsTargetVersion) {
- case '8':
- case '8.0':
- targets.push(projFiles.win80);
- break;
- case '8.1':
- targets.push(projFiles.win);
- break;
- default:
- throw new Error('Unsupported windows-target-version value: ' + windowsTargetVersion)
- }
- }
- // Windows Phone
- if (args.phone || noSwitches) { // if --phone or no arg
- var windowsPhoneTargetVersion = config.getPreference('windows-phone-target-version')
- switch(windowsPhoneTargetVersion) {
- case '8.1':
- targets.push(projFiles.phone);
- break;
- default:
- throw new Error('Unsupported windows-phone-target-version value: ' + windowsPhoneTargetVersion)
- }
- }
- return targets;
-}
-
-function filterSupportedTargets (targets) {
- if (!targets || targets.length == 0) {
- console.warn("\r\nNo build targets are specified.");
- return [];
- }
-
- if (msbuild.version != '4.0') {
- return targets;
- }
-
- // MSBuild 4.0 does not support Windows 8.1 and Windows Phone 8.1
- var supportedTargets = targets.filter(function(target) {
- return target != projFiles.win && target != projFiles.phone;
- });
-
- // unsupported targets have been detected
- if (supportedTargets.length != targets.length) {
- console.warn("\r\nWarning. Windows 8.1 and Windows Phone 8.1 target platforms are not supported on this development machine and will be skipped.");
- console.warn("Please install OS Windows 8.1 and Visual Studio 2013 Update2 in order to build for Windows 8.1 and Windows Phone 8.1.\r\n");
- }
- return supportedTargets;
-}
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/clean.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/clean.js b/windows/template/cordova/lib/clean.js
deleted file mode 100644
index edd40de..0000000
--- a/windows/template/cordova/lib/clean.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var Q = require('q'),
- path = require('path'),
- shell = require('shelljs');
-
-var ROOT = path.join(__dirname, '..', '..');
-
-// cleans the project, removes AppPackages and build folders.
-module.exports.run = function (argv) {
- var projectPath = ROOT;
- ['AppPackages', 'build'].forEach(function(dir) {
- shell.rm('-rf', path.join(projectPath, dir));
- });
- return Q.resolve();
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/exec.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/exec.js b/windows/template/cordova/lib/exec.js
deleted file mode 100644
index d71eda7..0000000
--- a/windows/template/cordova/lib/exec.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var child_process = require('child_process'),
- Q = require('q');
-
-// Takes a command and optional current working directory.
-// Returns a promise that either resolves with the stdout, or
-// rejects with an error message and the stderr.
-module.exports = function(cmd, opt_cwd) {
- var d = Q.defer();
- try {
- child_process.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function(err, stdout, stderr) {
- if (err) d.reject('Error executing "' + cmd + '": ' + stderr);
- else d.resolve(stdout);
- });
- } catch(e) {
- console.error('error caught: ' + e);
- d.reject(e);
- }
- return d.promise;
-};
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/list-devices.bat
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/list-devices.bat b/windows/template/cordova/lib/list-devices.bat
deleted file mode 100644
index 016fcfc..0000000
--- a/windows/template/cordova/lib/list-devices.bat
+++ /dev/null
@@ -1,25 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License
-@ECHO OFF
-SET script_path="%~dp0package.js"
-IF EXIST %script_path% (
- node -e "require('./%script_path%').listDevices().done(function(devices){console.log(devices)})"
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'package' script in 'cordova/lib' folder, aborting...>&2
- EXIT /B 1
-)
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/list-emulator-images.bat
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/list-emulator-images.bat b/windows/template/cordova/lib/list-emulator-images.bat
deleted file mode 100644
index a06f581..0000000
--- a/windows/template/cordova/lib/list-emulator-images.bat
+++ /dev/null
@@ -1,19 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License
-@ECHO OFF
-ECHO Error! Windows 8 Cordova CLI tools do not support list-emulator-images currently.
-EXIT /B 1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/list-started-emulators.bat
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/list-started-emulators.bat b/windows/template/cordova/lib/list-started-emulators.bat
deleted file mode 100644
index e576c5e..0000000
--- a/windows/template/cordova/lib/list-started-emulators.bat
+++ /dev/null
@@ -1,19 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License
-@ECHO OFF
-ECHO Error! Windows 8 Cordova CLI tools do not support list-started-emulators currently.
-EXIT /B 1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f4e2ac6a/windows/template/cordova/lib/package.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/package.js b/windows/template/cordova/lib/package.js
deleted file mode 100644
index ad609ed..0000000
--- a/windows/template/cordova/lib/package.js
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var Q = require('q'),
- fs = require('fs'),
- path = require('path'),
- exec = require('./exec'),
- spawn = require('./spawn'),
- utils = require('./utils');
-
-// returns folder that contains package with chip architecture,
-// build and project types specified by script parameters
-module.exports.getPackage = function (projectType, buildtype, buildArch) {
- var appPackages = path.resolve(path.join(__dirname, '..', '..', 'AppPackages'));
- // reject promise if apppackages folder doesn't exists
- if (!fs.existsSync(appPackages)) {
- return Q.reject('AppPackages doesn\'t exists');
- }
- // find out and resolve paths for all folders inside AppPackages
- var pkgDirs = fs.readdirSync(appPackages).map(function(relative) {
- // resolve path to folder
- return path.join(appPackages, relative);
- }).filter(function(pkgDir) {
- // check that it is a directory
- return fs.statSync(pkgDir).isDirectory();
- });
-
- for (var dir in pkgDirs) {
- var packageFiles = fs.readdirSync(pkgDirs[dir]).filter(function(e) {
- return e.match('.*.(appx|appxbundle)$');
- });
-
- for (var pkgFile in packageFiles) {
- var packageFile = path.join(pkgDirs[dir], packageFiles[pkgFile]);
- var pkgInfo = module.exports.getPackageFileInfo(packageFile);
-
- if (pkgInfo && pkgInfo.type == projectType &&
- pkgInfo.arch == buildArch && pkgInfo.buildtype == buildtype) {
- // if package's properties are corresponds to properties provided
- // resolve the promise with this package's info
- return Q.resolve(pkgInfo);
- }
- }
- }
- // reject because seems that no corresponding packages found
- return Q.reject('Package with specified parameters not found in AppPackages folder');
-};
-
-// returns package info object or null if it is not valid package
-module.exports.getPackageFileInfo = function (packageFile) {
- var pkgName = path.basename(packageFile);
- // CordovaApp.Windows_0.0.1.0_anycpu_debug.appx
- // CordovaApp.Phone_0.0.1.0_x86_debug.appxbundle
- var props = /.*\.(Phone|Windows|Windows80)_((?:\d\.)*\d)_(AnyCPU|x64|x86|ARM)(?:_(Debug))?.(appx|appxbundle)$/i.exec(pkgName);
- if (props) {
- return {type : props[1].toLowerCase(),
- arch : props[3].toLowerCase(),
- buildtype : props[4] ? props[4].toLowerCase() : "release",
- file : props[1].toLowerCase() != "phone" ?
- path.join(packageFile, '..', 'Add-AppDevPackage.ps1') :
- packageFile
- };
- }
- return null;
-};
-
-// return package app ID fetched from appxmanifest
-// return rejected promise if appxmanifest not valid
-module.exports.getAppId = function (platformPath) {
- var manifest = path.join(platformPath, 'package.phone.appxmanifest');
- try {
- return Q.resolve(/PhoneProductId="(.*?)"/gi.exec(fs.readFileSync(manifest, 'utf8'))[1]);
- } catch (e) {
- return Q.reject('Can\'t read appId from phone manifest' + e);
- }
-};
-
-// return package name fetched from appxmanifest
-// return rejected promise if appxmanifest not valid
-module.exports.getPackageName = function (platformPath) {
- var manifest = path.join(platformPath, 'package.windows.appxmanifest');
- try {
- return Q.resolve(/Application Id="(.*?)"/gi.exec(fs.readFileSync(manifest, 'utf8'))[1]);
- } catch (e) {
- return Q.reject('Can\'t read package name from manifest ' + e);
- }
-};
-
-// returns one of available devices which name match with parovided string
-// return rejected promise if device with name specified not found
-module.exports.findDevice = function (target) {
- target = target.toLowerCase();
- return module.exports.listDevices().then(function(deviceList) {
- for (var idx in deviceList){
- if (deviceList[idx].toLowerCase() == target) {
- return Q.resolve(idx);
- }
- }
- return Q.reject('Specified device not found');
- });
-};
-
-// returns array of available devices names
-module.exports.listDevices = function () {
- return utils.getAppDeployUtils().then(function(appDeployUtils) {
- return exec('"' + appDeployUtils + '" /enumeratedevices').then(function(output) {
- return Q.resolve(output.split('\n').map(function(line) {
- var match = /\s*(\d)+\s+(.*)/.exec(line);
- return match && match[2];
- }).filter(function (line) {
- return line;
- }));
- });
- });
-};
-
-// deploys specified phone package to device/emulator
-module.exports.deployToPhone = function (appxPath, deployTarget) {
- var getTarget = deployTarget == "device" ? Q("de") :
- deployTarget == "emulator" ? Q("xd") : module.exports.findDevice(deployTarget);
-
- // /installlaunch option sometimes fails with 'Error: The parameter is incorrect.'
- // so we use separate steps to /install and then /launch
- return getTarget.then(function(target) {
- return utils.getAppDeployUtils().then(function(appDeployUtils) {
- console.log('Installing application');
- return spawn(appDeployUtils, ['/install', appxPath, '/targetdevice:' + target]).then(function() {
- // TODO: resolve AppId without specifying project root;
- return module.exports.getAppId(path.join(__dirname, '..', '..'));
- }).then(function(appId) {
- console.log('Running application');
- return spawn(appDeployUtils, ['/launch', appId, '/targetdevice:' + target]);
- });
- });
- });
-};
-
-// deploys specified package to desktop
-module.exports.deployToDesktop = function (appxScript, deployTarget) {
- if (deployTarget != "device" && deployTarget != "emulator") {
- return Q.reject("Deploying desktop apps to specific target not supported");
- }
-
- return utils.getAppStoreUtils().then(function(appStoreUtils) {
- return module.exports.getPackageName(path.join(__dirname, '..', '..')).then(function(pkgname) {
- // uninstalls previous application instance (if exists)
- console.log("Attempt to uninstall previous application version...");
- return spawn('powershell', ['-ExecutionPolicy', 'RemoteSigned', 'Import-Module "' + appStoreUtils + '"; Uninstall-App ' + pkgname])
- .then(function() {
- console.log("Attempt to install application...");
- return spawn('powershell', ['-ExecutionPolicy', 'RemoteSigned', 'Import-Module "' + appStoreUtils + '"; Install-App', utils.quote(appxScript)]);
- }).then(function() {
- console.log("Starting application...");
- return spawn('powershell', ['-ExecutionPolicy', 'RemoteSigned', 'Import-Module "' + appStoreUtils + '"; Start-Locally', pkgname]);
- });
- });
- });
-};
\ No newline at end of file