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/05/17 21:46:51 UTC
wp7 commit: CB-3340 added version script + added scripts to project
template
Updated Branches:
refs/heads/master 4ab61a7d7 -> 6fd643b3f
CB-3340 added version script + added scripts to project template
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/6fd643b3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/6fd643b3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/6fd643b3
Branch: refs/heads/master
Commit: 6fd643b3f06bdea58cb25db8c247dd19c99a1bce
Parents: 4ab61a7
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri May 17 12:46:13 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri May 17 12:46:13 2013 -0700
----------------------------------------------------------------------
templates/standalone/CordovaAppProj.csproj | 28 ++++++++++++++--------
templates/standalone/cordova/version.bat | 9 +++++++
2 files changed, 27 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/6fd643b3/templates/standalone/CordovaAppProj.csproj
----------------------------------------------------------------------
diff --git a/templates/standalone/CordovaAppProj.csproj b/templates/standalone/CordovaAppProj.csproj
index 61b3be1..560c1d7 100644
--- a/templates/standalone/CordovaAppProj.csproj
+++ b/templates/standalone/CordovaAppProj.csproj
@@ -98,9 +98,6 @@
<Compile Include="cordovalib\OrientationHelper.cs" />
<Compile Include="cordovalib\PluginResult.cs" />
<Compile Include="cordovalib\ScriptCallback.cs" />
-
-
-
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
@@ -115,12 +112,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
-
<Page Include="MainPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
-
<Page Include="Plugins\UI\AudioRecorder.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
@@ -137,16 +132,29 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
-
</ItemGroup>
<ItemGroup>
+ <None Include="cordova\lib\build.js" />
+ <None Include="cordova\lib\clean.js" />
+ <None Include="cordova\lib\deploy.js" />
+ <None Include="cordova\lib\log.js" />
+ <None Include="cordova\lib\target-list.js" />
<Content Include="www\**" />
<Content Include="config.xml" />
<Content Include="Images\**" />
-
<Content Include="resources\notification-beep.wav" />
+ <None Include="cordova\build.bat" />
+ <None Include="cordova\clean.bat" />
+ <None Include="cordova\lib\install-device.bat" />
+ <None Include="cordova\lib\install-emulator.bat" />
+ <None Include="cordova\lib\list-devices.bat" />
+ <None Include="cordova\lib\list-emulator-images.bat" />
+ <None Include="cordova\lib\list-started-emulators.bat" />
+ <None Include="cordova\lib\start-emulator.bat" />
+ <None Include="cordova\log.bat" />
+ <None Include="cordova\run.bat" />
+ <None Include="cordova\version.bat" />
<None Include="VERSION" />
-
<Content Include="CordovaSourceDictionary.xml">
<SubType>Designer</SubType>
</Content>
@@ -174,8 +182,8 @@
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<ItemGroup>
- <Compile Include="Plugins\*" />
- <Compile Include="Plugins\UI\*.cs" />
+ <Compile Include="Plugins\*" />
+ <Compile Include="Plugins\UI\*.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/6fd643b3/templates/standalone/cordova/version.bat
----------------------------------------------------------------------
diff --git a/templates/standalone/cordova/version.bat b/templates/standalone/cordova/version.bat
new file mode 100644
index 0000000..714e876
--- /dev/null
+++ b/templates/standalone/cordova/version.bat
@@ -0,0 +1,9 @@
+@ECHO OFF
+SET full_path=%~dp0
+IF EXIST "%full_path%..\VERSION" (
+ type "%full_path%..\VERSION"
+) ELSE (
+ ECHO.
+ ECHO ERROR: Could not find file VERSION in project folder
+ EXIT /B 1
+)
\ No newline at end of file