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 lc...@apache.org on 2011/11/29 11:11:24 UTC
svn commit: r1207825 - in /incubator/npanday/npanday-its/trunk: ./
src/test/java/npanday/its/
src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/
Author: lcorneliussen
Date: Tue Nov 29 11:11:22 2011
New Revision: 1207825
URL: http://svn.apache.org/viewvc?rev=1207825&view=rev
Log:
[NPANDAY-488] Initial integration test for MSDeploy package (>=1.5.0)
Added:
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_488_MSDeployPackageSimpleWebApp.java
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIntegrationTestContext.java
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/ChainedXdtTransform.targets
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.cs
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.designer.cs
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.Publish.xml
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj.user
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/assembly.xml
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/copy-transformed.xml
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/msdeploy-manifest.xml
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/pom.xml
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.config
incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.package.config
Modified:
incubator/npanday/npanday-its/trunk/pom.xml
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
Modified: incubator/npanday/npanday-its/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/pom.xml?rev=1207825&r1=1207824&r2=1207825&view=diff
==============================================================================
--- incubator/npanday/npanday-its/trunk/pom.xml (original)
+++ incubator/npanday/npanday-its/trunk/pom.xml Tue Nov 29 11:11:22 2011
@@ -96,7 +96,7 @@ under the License.
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId>
- <version>1.2</version>
+ <version>1.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
Modified: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java?rev=1207825&r1=1207824&r2=1207825&view=diff
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java (original)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/AbstractNPandayIntegrationTestCase.java Tue Nov 29 11:11:22 2011
@@ -590,4 +590,22 @@ public abstract class AbstractNPandayInt
return testDir;
}
+
+ protected NPandayIntegrationTestContext createDefaultTestContext()
+ throws IOException, VerificationException
+ {
+ NPandayIntegrationTestContext context = new NPandayIntegrationTestContext();
+
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/" + getClass().getSimpleName() );
+
+ context.setGroupId("NPanday.ITs." + getClass().getSimpleName());
+ context.setTestDir(testDir);
+
+ Verifier verifier = getVerifier( testDir );
+ verifier.deleteArtifacts( context.getGroupId() );
+
+ context.setVerifier(verifier);
+
+ return context;
+ }
}
Added: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_488_MSDeployPackageSimpleWebApp.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_488_MSDeployPackageSimpleWebApp.java?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_488_MSDeployPackageSimpleWebApp.java (added)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_488_MSDeployPackageSimpleWebApp.java Tue Nov 29 11:11:22 2011
@@ -0,0 +1,45 @@
+package npanday.its;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.it.Verifier;
+
+public class NPANDAY_488_MSDeployPackageSimpleWebApp
+ extends AbstractNPandayIntegrationTestCase
+{
+ public NPANDAY_488_MSDeployPackageSimpleWebApp()
+ {
+ super( "[1.4.1-incubating,)" );
+ }
+
+ public void test()
+ throws Exception
+ {
+ NPandayIntegrationTestContext context = createDefaultTestContext();
+ Verifier verifier = context.getPreparedVerifier();
+
+ verifier.executeGoal( "install" );
+ verifier.assertArtifactPresent(context.getGroupId(), "HelloWorld_WebRole", "1.0.0-SNAPSHOT", "msdeploy.zip" );
+
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+ }
+
+}
+
Added: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIntegrationTestContext.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIntegrationTestContext.java?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIntegrationTestContext.java (added)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIntegrationTestContext.java Tue Nov 29 11:11:22 2011
@@ -0,0 +1,55 @@
+package npanday.its;
+
+import org.apache.maven.it.Verifier;
+
+import java.io.File;
+
+public class NPandayIntegrationTestContext {
+
+ private Verifier verifier;
+
+ private String groupId;
+
+ private File testDir;
+
+ public void setVerifier( Verifier verifier )
+ {
+ this.verifier = verifier;
+ }
+
+ /**
+ * Creates a verifier and removes installed artifacts from the local repository.
+ * @return The maven verifier for the project under test.
+ */
+ public Verifier getPreparedVerifier()
+ {
+ return verifier;
+ }
+
+ public void setGroupId( String groupId )
+ {
+ this.groupId = groupId;
+ }
+
+ /**
+ * @return The group id of the project under test.
+ */
+ public String getGroupId()
+ {
+ return groupId;
+ }
+
+ public void setTestDir( File testDir )
+ {
+ this.testDir = testDir;
+ }
+
+ /**
+ *
+ * @return The test directory of the project under test.
+ */
+ public File getTestDir()
+ {
+ return testDir;
+ }
+}
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/ChainedXdtTransform.targets
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/ChainedXdtTransform.targets?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/ChainedXdtTransform.targets (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/ChainedXdtTransform.targets Tue Nov 29 11:11:22 2011
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+
+ <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/>
+
+ <!-- SETUP [ -->
+
+ <PropertyGroup>
+ <RawContentsDirectory Condition="'$(RawContentsDirectory)' == ''">$(WorkDirectory)\01-source-raw</RawContentsDirectory>
+ <TransformationsDirectory Condition="'$(TransformationsDirectory)' == ''">$(WorkDirectory)\01-source-transformations</TransformationsDirectory>
+ <IntermediateTransformationDirectory Condition="'$(IntermediateTransformationDirectory)' == ''">$(WorkDirectory)\02-xdt-intermediate</IntermediateTransformationDirectory>
+ <TargetDirectory Condition="'$(TargetDirectory)' == ''">$(WorkDirectory)\03-transformed</TargetDirectory>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <TransformationFileIdentifiers Include="$(TransformationFileIdentifiers)"/>
+ </ItemGroup>
+
+ <ItemGroup>
+ <SourceFiles Include="$(RawContentsDirectory)\**\*.*"/>
+ <Transformations Include="$(TransformationsDirectory)\**\*.*"/>
+ </ItemGroup>
+
+ <!-- ] SETUP -->
+
+ <PropertyGroup>
+ <TransformAndCopyDependsOn>
+ ValidateParameters;
+ SetupDefaults;
+ MatchTransformations;
+ PrepareTransformationInstructions;
+ TransformEach;
+ CopyAll;
+ IncrementalCleanup
+ </TransformAndCopyDependsOn>
+ </PropertyGroup>
+
+ <Target Name="TransformAndCopy" DependsOnTargets="$(TransformAndCopyDependsOn)">
+ <Message Text="Copy with transform from '$(RawContentsDirectory)' to '$(TargetDirectory)' has run successfully!" Importance="high"/>
+ </Target>
+
+ <Target Name="ValidateParameters">
+
+ <Error Condition="!Exists($(WorkDirectory))"
+ Text="WorkDirectory: Could not find the directory $(WorkDirectory)" />
+
+ <Error Condition="!Exists($(RawContentsDirectory))"
+ Text="RawContentsDirectory: Could not find the directory $(RawContentsDirectory)" />
+
+ <Error Condition="!Exists($(TransformationsDirectory))"
+ Text="TransformationsDirectory: Could not find the directory $(TransformationsDirectory)" />
+
+ </Target>
+
+ <Target Name="SetupDefaults">
+ <ItemGroup>
+ <SourceFiles Condition="'%(SourceFiles.Identity)' != ''">
+ <TargetFile>$(TargetDirectory)\%(SourceFiles.RecursiveDir)%(Filename)%(Extension)</TargetFile>
+ <IntermediateTransformedFile>$(IntermediateTransformationDirectory)\%(SourceFiles.RecursiveDir)%(Filename)%(Extension)</IntermediateTransformedFile>
+ </SourceFiles>
+ </ItemGroup>
+ </Target>
+
+ <Target Name="MatchTransformations"
+ Inputs="%(SourceFiles.Identity)"
+ Outputs="DUMMY"
+ >
+ <PropertyGroup>
+ <SourceFile>%(SourceFiles.Identity)</SourceFile>
+
+ <TransformationFileBefore>$(TransformationsDirectory)\%(SourceFiles.RecursiveDir)%(Filename).</TransformationFileBefore>
+ <TransformationFileAfter>%(SourceFiles.Extension)</TransformationFileAfter>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <!-- clear the temp list -->
+ <_Transformations Remove="@(_Transformations)" />
+
+ <!-- add an include per %(TransformationFileIdentifiers.Identity) -->
+ <_Transformations Include="$(TransformationFileBefore)%(TransformationFileIdentifiers.Identity)$(TransformationFileAfter)"/>
+
+ <!-- remove those, where the file doesn't exist -->
+ <_Transformations Remove="%(_Transformations.Identity)" Condition="!Exists(%(FullPath))"/>
+
+ <!-- Add found transformations to metadata -->
+ <SourceFiles Condition="'%(SourceFiles.Identity)' == '$(SourceFile)'">
+ <TransformationFiles>@(_Transformations)</TransformationFiles>
+ </SourceFiles>
+ </ItemGroup>
+
+ <Message Text="Found %(SourceFiles.TransformationFiles) for %(SourceFiles.Identity)"
+ Condition="%(SourceFiles.TransformationFiles) != ''"/>
+ </Target>
+
+ <Target Name="PrepareTransformationInstructions"
+ Inputs="%(SourceFiles.Identity)"
+ Outputs="DUMMY"
+ >
+ <PropertyGroup>
+ <SourceFile>%(SourceFiles.Identity)</SourceFile>
+ <IntermediateTransformedFile>%(SourceFiles.IntermediateTransformedFile)</IntermediateTransformedFile>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <TransformationInstructions Include="%(SourceFiles.TransformationFiles)">
+ <TransformationTarget>$(IntermediateTransformedFile)</TransformationTarget>
+ </TransformationInstructions>
+ </ItemGroup>
+
+ <Copy SourceFiles="$(SourceFile)"
+ DestinationFiles="$(IntermediateTransformedFile)"
+ Condition="'%(SourceFiles.TransformationFiles)' != ''"/>
+ </Target>
+
+ <!--
+ Will run per %(SourceFiles.Identity) as specified on parent [TransformEach].
+ -->
+ <Target Name="TransformEach"
+ Inputs="%(TransformationInstructions.Identity)"
+ Outputs="DUMMY">
+ <PropertyGroup>
+ <CurrentTransformationFile>%(TransformationInstructions.Identity)</CurrentTransformationFile>
+ <TransformationTarget>%(TransformationInstructions.TransformationTarget)</TransformationTarget>
+
+ <TempFile1>$([System.IO.Path]::GetTempFileName())</TempFile1>
+ <TempFile2>$([System.IO.Path]::GetTempFileName())</TempFile2>
+ </PropertyGroup>
+
+ <Message Text="# applying $(CurrentTransformationFile)
+ to $(TransformationTarget)"/>
+
+ <!--
+ Using TMP-files, since XmlTransform locks the all files
+ -->
+ <Copy SourceFiles="$(TransformationTarget)"
+ DestinationFiles="$(TempFile1)"
+ />
+
+ <TransformXml Source="$(TempFile1)"
+ Transform="$(CurrentTransformationFile)"
+ Destination="$(TempFile2)" />
+
+ <Copy SourceFiles="$(TempFile2)"
+ DestinationFiles="$(TransformationTarget)"
+ />
+
+ </Target>
+
+ <Target Name="CopyAll">
+ <Copy SourceFiles="@(SourceFiles -> '%(IntermediateTransformedFile)')"
+ DestinationFiles="@(SourceFiles -> '%(TargetFile)')"
+ Condition="Exists(%(IntermediateTransformedFile))"/>
+
+ <Copy SourceFiles="@(SourceFiles)"
+ DestinationFiles="@(SourceFiles -> '%(TargetFile)')"
+ Condition="!Exists(%(IntermediateTransformedFile))"/>
+ </Target>
+
+ <Target Name="IncrementalCleanup">
+ <ItemGroup>
+ <OrphanedTargetFiles Include="$(TargetDirectory)\**\*.*" Exclude="@(SourceFiles -> '%(TargetFile)')"/>
+ </ItemGroup>
+
+ <Delete Files="@(OrphanedTargetFiles)" />
+ </Target>
+
+</Project>
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx Tue Nov 29 11:11:22 2011
@@ -0,0 +1,24 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.Samples.ServiceHosting.HelloWorld.Default" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" >
+<head runat="server">
+ <title>Hello World!</title>
+</head>
+<body>
+ <form id="form1" runat="server">
+ <div style="font-size: 64pt; font-family: Arial, Helvetica, sans-serif; font-weight: bolder">
+
+ <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
+
+ </div>
+ <div style="font-size: 14pt; font-family: Arial, Helvetica, Sans-Serif; font-weight: bolder">
+ <p><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></p>
+ <p><asp:HyperLink ID="HyperLink1" runat="server"></asp:HyperLink></p>
+ <p><asp:HyperLink ID="HyperLink2" runat="server"></asp:HyperLink></p>
+ <p><asp:HyperLink ID="HyperLink3" runat="server"></asp:HyperLink></p>
+ </div>
+ </form>
+</body>
+</html>
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.cs?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.cs (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.cs Tue Nov 29 11:11:22 2011
@@ -0,0 +1,27 @@
+//
+// <copyright file="Default.aspx.cs" company="Microsoft">
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// </copyright>
+//
+using System;
+using System.Web.UI.WebControls;
+
+
+namespace Microsoft.Samples.ServiceHosting.HelloWorld
+{
+ public partial class Default : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Label1.Text = "Hello World!";
+ Label2.Text = "To get started creating applications for Windows Azure, see:";
+ HyperLink1.Text = "Windows Azure Hands On Labs";
+ HyperLink1.NavigateUrl = "http://msdn.microsoft.com/en-us/windowsazure/wazplatformtrainingcourse_windowsazure_unit";
+ HyperLink2.Text = "Windows Azure Code Samples";
+ HyperLink2.NavigateUrl = "http://msdn.microsoft.com/en-us/library/windows-azure-code-samples.aspx";
+ HyperLink3.Text = "Windows Azure Code Quick Start";
+ HyperLink3.NavigateUrl = "http://msdn.microsoft.com/en-us/library/gg663908.aspx";
+
+ }
+ }
+}
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.designer.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.designer.cs?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.designer.cs (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/Default.aspx.designer.cs Tue Nov 29 11:11:22 2011
@@ -0,0 +1,69 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Microsoft.Samples.ServiceHosting.HelloWorld {
+
+
+ public partial class Default {
+
+ /// <summary>
+ /// form1 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ /// <summary>
+ /// Label1 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ /// <summary>
+ /// Label2 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ /// <summary>
+ /// HyperLink1 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
+
+ /// <summary>
+ /// HyperLink2 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.HyperLink HyperLink2;
+
+ /// <summary>
+ /// HyperLink3 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.WebControls.HyperLink HyperLink3;
+ }
+}
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.Publish.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.Publish.xml?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.Publish.xml (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.Publish.xml Tue Nov 29 11:11:22 2011
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<publishData />
\ No newline at end of file
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj Tue Nov 29 11:11:22 2011
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{6AA66693-51D1-4651-A4B7-10271AC67C36}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Microsoft.Samples.ServiceHosting.HelloWorld</RootNamespace>
+ <AssemblyName>HelloWorld_WebRole</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
+ <UseIISExpress>false</UseIISExpress>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Web" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Default.aspx" />
+ <Content Include="pom.xml" />
+ <Content Include="Properties\Packaging\assembly.xml" />
+ <Content Include="Properties\Packaging\copy-transformed.xml" />
+ <Content Include="Properties\Packaging\msdeploy-manifest.xml" />
+ <Content Include="Web.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Default.aspx.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ <SubType>ASPXCodeBehind</SubType>
+ </Compile>
+ <Compile Include="Default.aspx.designer.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Properties\Packaging\Web.package.config" />
+ </ItemGroup>
+ <ItemGroup />
+ <ItemGroup>
+ <None Include="Properties\Packaging\ChainedXdtTransform.targets" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>54407</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
+ </IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj.user
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj.user?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj.user (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/HelloWorld_WebRole.csproj.user Tue Nov 29 11:11:22 2011
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <ProjectView>ShowAllFiles</ProjectView>
+ </PropertyGroup>
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <StartPageUrl>
+ </StartPageUrl>
+ <StartAction>CurrentPage</StartAction>
+ <AspNetDebugging>True</AspNetDebugging>
+ <SilverlightDebugging>False</SilverlightDebugging>
+ <NativeDebugging>False</NativeDebugging>
+ <SQLDebugging>False</SQLDebugging>
+ <ExternalProgram>
+ </ExternalProgram>
+ <StartExternalURL>
+ </StartExternalURL>
+ <StartCmdLineArguments>
+ </StartCmdLineArguments>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <EnableENC>False</EnableENC>
+ <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
\ No newline at end of file
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/assembly.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/assembly.xml?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/assembly.xml (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/assembly.xml Tue Nov 29 11:11:22 2011
@@ -0,0 +1,73 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>assembled-package</id>
+ <baseDirectory>.</baseDirectory>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <dependencySets>
+ <!-- factor this out to a reusable component xml -->
+ <dependencySet>
+ <useProjectArtifact>true</useProjectArtifact>
+ <useTransitiveDependencies>true</useTransitiveDependencies>
+ <scope>runtime</scope>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+ <outputDirectory>01-source-raw\bin</outputDirectory>
+ </dependencySet>
+ </dependencySets>
+ <fileSets>
+ <fileSet>
+ <!-- factor this out to "raw-contents.xml" -->
+ <directory>.</directory>
+ <outputDirectory>01-source-raw</outputDirectory>
+ <includes>
+ <!-- .NET specifics -->
+ <include>**/*.aspx</include>
+ <include>**/*.ascx</include>
+ <include>**/*.asax</include>
+ <include>**/*.config</include>
+
+ <!-- web developers-->
+ <include>**/*.css</include>
+ <include>**/*.js</include>
+ <include>**/*.htm</include>
+ <include>**/*.html</include>
+
+ <!-- graphics -->
+ <include>**/*.jpg</include>
+ <include>**/*.jpeg</include>
+ <include>**/*.png</include>
+ <include>**/*.gif</include>
+
+ <!-- silverlight? -->
+ </includes>
+ <excludes>
+ <!-- exclude transformation files -->
+ <exclude>**/*.package.*</exclude>
+ <exclude>**/*.debug.*</exclude>
+ <exclude>**/*.release.*</exclude>
+
+ <!-- .NET specific -->
+ <exclude>bin/</exclude>
+ <exclude>obj/</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <!-- factor this out to "transformations.xml" -->
+ <directory>.</directory>
+ <outputDirectory>01-source-transformations</outputDirectory>
+ <includes>
+ <!-- bring over the actual transformations -->
+ <include>**/*.package.*</include>
+ <include>**/*.debug.*</include>
+ <include>**/*.release.*</include>
+ </includes>
+ <excludes>
+ <!-- .NET specific -->
+ <exclude>bin/</exclude>
+ <exclude>obj/</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/copy-transformed.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/copy-transformed.xml?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/copy-transformed.xml (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/copy-transformed.xml Tue Nov 29 11:11:22 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"
+ DefaultTargets="TransformAndCopy">
+
+ <PropertyGroup>
+ <!-- set these from the outside!-->
+ <WorkDirectory Condition="'$(WorkDirectory)' == ''">target\packaging-workdir</WorkDirectory>
+ <TransformationFileIdentifiers Condition="'$(TransformationFileIdentifiers)' == ''">package</TransformationFileIdentifiers>
+ </PropertyGroup>
+
+ <Import Project="ChainedXdtTransform.targets"/>
+
+</Project>
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/msdeploy-manifest.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/msdeploy-manifest.xml?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/msdeploy-manifest.xml (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/msdeploy-manifest.xml Tue Nov 29 11:11:22 2011
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Manifest>
+ <dirPath path="target/prepare-package/03-transformed"/>
+</Manifest>
\ No newline at end of file
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/pom.xml?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/pom.xml (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/pom.xml Tue Nov 29 11:11:22 2011
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>NPanday.ITs</groupId>
+ <artifactId>NPanday.ITs.Parent</artifactId>
+ <version>1-SNAPSHOT</version>
+ </parent>
+
+ <groupId>NPANDAY_488_MSDeployPackageSimpleWebApp</groupId>
+ <artifactId>HelloWorld_WebRole</artifactId>
+ <packaging>dotnet-library</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <name>NPanday.ITs.NPANDAY_488_MSDeployPackageSimpleWebApp :: Hello World Web Role</name>
+
+ <profiles>
+ <profile>
+ <id>standalone</id>
+ <activation>
+ <property>
+ <name>!npanday.version</name>
+ </property>
+ </activation>
+ <properties>
+ <npanday.version>1.5.0-azuresupport-SNAPSHOT</npanday.version>
+ </properties>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.npanday.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <version>${npanday.version}</version>
+ <configuration>
+ <frameworkVersion>4.0</frameworkVersion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.npanday.plugins</groupId>
+ <artifactId>custom-lifecycle-maven-plugin</artifactId>
+ <version>${npanday.version}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+ </profiles>
+
+ <build>
+ <sourceDirectory>.</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.npanday.plugins</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2.1</version>
+ <executions>
+ <execution>
+ <id>assemble</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>prepare-package</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <attach>false</attach>
+ <descriptors>
+ <descriptor>assembly.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>xdt-transform</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>msbuild</executable>
+ <arguments>
+ <argument>copy-transformed.xml</argument>
+ <argument>/p:WorkDirectory=${build.directory}/prepare-package</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>msbuild</id>
+ <phase>package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>msdeploy</executable>
+ <arguments>
+ <argument>-verb:sync</argument>
+ <argument>-source:dirPath=${build.directory}/prepare-package/03-transformed</argument>
+ <argument>-dest:package=${build.directory}/${artifactId}.msdeploy.zip</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>add-msdeploy-package</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${build.directory}/${artifactId}.msdeploy.zip</file>
+ <type>msdeploy-package</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.config
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.config?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.config (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.config Tue Nov 29 11:11:22 2011
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <system.web>
+ <compilation targetFramework="4.0" debug="true" />
+ <machineKey decryption="AES" decryptionKey="0CA3EFAF0F7A5E7A62681C0BF656EE0ECE31ACEE3E1023BA3FAD20EA5F199DE8" validation="SHA1" validationKey="7DFA065B3426D931C51124D9259DBD2DA1ADC5AB9DE62168764FF0DCE537184F0535D5D9AD66DEDC97DC1ABFF7FA540B4DFD82E5BB196B95D15FF81F75AD5328" />
+ </system.web>
+ <system.diagnostics>
+ <trace>
+ <listeners>
+ <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,
+ Microsoft.WindowsAzure.Diagnostics,
+ Version=1.0.0.0,
+ Culture=neutral,
+ PublicKeyToken=31bf3856ad364e35"
+ name="AzureDiagnostics">
+ <filter type="" />
+ </add>
+ </listeners>
+ </trace>
+ </system.diagnostics>
+</configuration>
Added: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.package.config
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.package.config?rev=1207825&view=auto
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.package.config (added)
+++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_488_MSDeployPackageSimpleWebApp/web.package.config Tue Nov 29 11:11:22 2011
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <connectionStrings xdt:Transform="Replace">
+ <!--
+ Please reconfigure your connection strings in web.package.config!
+
+ <add name="MyDB"
+ connectionString="PLEASE SPECIFY"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ -->
+ </connectionStrings>
+ <system.web>
+ <customErrors xdt:Transform="Replace"
+ defaultRedirect="GenericError.htm"
+ mode="RemoteOnly">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ </system.web>
+</configuration>
\ No newline at end of file