You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2012/01/02 17:32:58 UTC
svn commit: r1226486 -
/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AzurePomConverter.cs
Author: brett
Date: Mon Jan 2 17:32:57 2012
New Revision: 1226486
URL: http://svn.apache.org/viewvc?rev=1226486&view=rev
Log:
[NPANDAY-480] don't allow Azure projects to be imported if the web roles were not generated with MSDeploy
Modified:
incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AzurePomConverter.cs
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AzurePomConverter.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AzurePomConverter.cs?rev=1226486&r1=1226485&r2=1226486&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AzurePomConverter.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/Algorithms/AzurePomConverter.cs Mon Jan 2 17:32:57 2012
@@ -37,6 +37,12 @@ namespace NPanday.ProjectImporter.Conver
public override void ConvertProjectToPomModel(bool writePom, string scmTag)
{
+ // relies on this being set everywhere - if it were set per project, this would need to be evaluated on the project references
+ if (!projectDigest.UseMsDeploy)
+ {
+ throw new Exception("You must use Web Deploy 2.0 to package web applications when using Azure projects");
+ }
+
GenerateHeader("azure-cloud-service");
//Add SCM Tag