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 ap...@apache.org on 2011/05/26 10:37:50 UTC
svn commit: r1127861 - in
/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src:
main/csharp/NPanday/VisualStudio/Addin/ test/csharp/NPanday.Utils-Test/
test/resource/ClassLibrary1/ClassLibrary1/ test/resource/TestProject/
test/reso...
Author: apadilla
Date: Thu May 26 10:37:50 2011
New Revision: 1127861
URL: http://svn.apache.org/viewvc?rev=1127861&view=rev
Log:
[NPANDAY-434]
- added event handler when adding a new project to an existing solution so that pom will be updated correctly when adding/removing a dependency to that newly added project
Added:
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/AddLocalMavenArtifactTest.cs
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/FileUtils.cs
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject.sln
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Class1.cs
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Properties/
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Properties/AssemblyInfo.cs
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/TestProject.csproj
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/pom.xml
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/pom.xml
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary1.dll (with props)
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary2.dll (with props)
Modified:
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/Connect.cs
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/ReferenceManager.cs
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/ConnectTest.csproj
incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/ClassLibrary1/ClassLibrary1/pom2.xml
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/Connect.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/Connect.cs?rev=1127861&r1=1127860&r2=1127861&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/Connect.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/Connect.cs Thu May 26 10:37:50 2011
@@ -190,6 +190,14 @@ namespace NPanday.VisualStudio.Addin
}
}
+ void SolutionEvents_ProjectAdded(EnvDTE.Project project)
+ {
+ if (_applicationObject != null && _applicationObject.Solution != null)
+ {
+ attachReferenceEvent();
+ }
+ }
+
//to hold eventhandler for projectItemsEvents
void ProjectItemEvents_ItemAdded(ProjectItem projectItem)
{
@@ -412,6 +420,7 @@ namespace NPanday.VisualStudio.Addin
globalSolutionEvents = (EnvDTE.SolutionEvents)((Events2)_applicationObject.Events).SolutionEvents;
globalSolutionEvents.BeforeClosing += new _dispSolutionEvents_BeforeClosingEventHandler(SolutionEvents_BeforeClosing);
globalSolutionEvents.Opened += new _dispSolutionEvents_OpenedEventHandler(SolutionEvents_Opened);
+ globalSolutionEvents.ProjectAdded += new _dispSolutionEvents_ProjectAddedEventHandler(SolutionEvents_ProjectAdded);
projectItemsEvents = (EnvDTE.ProjectItemsEvents)((Events2)_applicationObject.Events).ProjectItemsEvents;
projectItemsEvents.ItemAdded += new _dispProjectItemsEvents_ItemAddedEventHandler(ProjectItemEvents_ItemAdded);
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/ReferenceManager.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/ReferenceManager.cs?rev=1127861&r1=1127860&r2=1127861&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/ReferenceManager.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPanday/VisualStudio/Addin/ReferenceManager.cs Thu May 26 10:37:50 2011
@@ -104,6 +104,12 @@ namespace NPanday.VisualStudio.Addin
{
return referenceFolder;
}
+ //for testing purposes
+ set
+ {
+ initialized = true;
+ referenceFolder = value;
+ }
}
public void CopyArtifact(Artifact.Artifact artifact, NPanday.Logging.Logger logger)
@@ -159,7 +165,15 @@ namespace NPanday.VisualStudio.Addin
if (!File.Exists(artifactFileName) ||
(artifactTimestamp.CompareTo(new FileInfo(artifactFileName).LastWriteTime) > 0))
{
- File.Copy(artifact.FileInfo.FullName, artifactFileName, true);
+ try
+ {
+ byte[] contents = File.ReadAllBytes(artifact.FileInfo.FullName);
+ File.WriteAllBytes(artifactFileName, contents);
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine(ex.ToString());
+ }
}
return artifactFileName;
}
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/AddLocalMavenArtifactTest.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/AddLocalMavenArtifactTest.cs?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/AddLocalMavenArtifactTest.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/AddLocalMavenArtifactTest.cs Thu May 26 10:37:50 2011
@@ -0,0 +1,87 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using NUnit.Framework;
+using NPanday.VisualStudio.Addin;
+using NPanday.Artifact;
+using EnvDTE;
+using EnvDTE80;
+using NPanday.Logging;
+
+namespace ConnectTest.UtilsTest
+{
+ [TestFixture]
+ public class AddLocalMavenArtifactTest
+ {
+ private DirectoryInfo testProject;
+ private DirectoryInfo testProjectCopy;
+ private DirectoryInfo repo;
+ private DirectoryInfo repoCopy;
+ private ReferenceManager refManager;
+ private Artifact testArtifact;
+
+ public AddLocalMavenArtifactTest()
+ {
+ testProject = new DirectoryInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\TestProject");
+ testProjectCopy = new DirectoryInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\TestProjectCopy");
+
+ repo = new DirectoryInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\m2");
+ repoCopy = new DirectoryInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\m2Copy");
+ }
+
+ [TestFixtureSetUp]
+ public void TestSetUp()
+ {
+ FileUtils.CopyDirectory(testProject, testProjectCopy);
+ FileUtils.CopyDirectory(repo, repoCopy);
+
+ refManager = new ReferenceManager();
+ refManager.ReferenceFolder = testProjectCopy.FullName + "\\TestProject\\.references";
+
+ testArtifact = new Artifact();
+ testArtifact.GroupId = "npanday.test";
+ testArtifact.ArtifactId = "NPanday.Test";
+ testArtifact.Version = "1.0";
+ testArtifact.Extension = "dll";
+ }
+
+ [Test]
+ public void addMavenArtifact()
+ {
+ testArtifact.FileInfo = new FileInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\m2Copy\\ClassLibrary1.dll");
+ refManager.CopyArtifact(testArtifact, null);
+ Assert.IsTrue(new FileInfo(refManager.ReferenceFolder + "\\npanday.test\\NPanday.Test-1.0\\NPanday.Test.dll").Exists);
+ }
+
+ [Test]
+ public void addExistingMavenArtifact()
+ {
+ testArtifact.FileInfo = new FileInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\m2Copy\\ClassLibrary1.dll");
+ refManager.CopyArtifact(testArtifact, null);
+ FileInfo copiedArtifact = new FileInfo(refManager.ReferenceFolder + "\\npanday.test\\NPanday.Test-1.0\\NPanday.Test.dll");
+
+ Assert.IsTrue(copiedArtifact.Exists);
+ Assert.AreEqual(testArtifact.FileInfo.Length, copiedArtifact.Length);
+
+ testArtifact.FileInfo = new FileInfo(FileUtils.getBaseDirectory() + "\\src\\test\\resource\\m2Copy\\ClassLibrary2.dll");
+
+ Assert.IsFalse(copiedArtifact.Length == testArtifact.FileInfo.Length);
+ //so that new artifact will have a newer timestamp
+ File.SetLastWriteTime(testArtifact.FileInfo.FullName, copiedArtifact.LastWriteTime.AddMinutes(1));
+
+ refManager.CopyArtifact(testArtifact, null);
+ FileInfo copiedArtifact2 = new FileInfo(refManager.ReferenceFolder + "\\npanday.test\\NPanday.Test-1.0\\NPanday.Test.dll");
+
+ Assert.IsTrue(copiedArtifact2.Exists);
+ Assert.AreEqual(testArtifact.FileInfo.Length, copiedArtifact2.Length);
+ }
+
+ [TestFixtureTearDown]
+ public void TestTearDown()
+ {
+ Directory.Delete(testProjectCopy.FullName, true);
+ Directory.Delete(repoCopy.FullName, true);
+ }
+ }
+}
\ No newline at end of file
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/ConnectTest.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/ConnectTest.csproj?rev=1127861&r1=1127860&r2=1127861&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/ConnectTest.csproj (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/ConnectTest.csproj Thu May 26 10:37:50 2011
@@ -73,7 +73,9 @@ under the License.
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <compile Include="AddLocalMavenArtifactTest.cs />
<Compile Include="AddWebReferenceTest.cs" />
+ <Compile Include="FileUtils.cs" />
<Compile Include="MavenCompilePluginConfigurationTest.cs" />
<Compile Include="MavenResxPluginConfigurationTest.cs" />
<Compile Include="MavenSettingsConfigurationTest.cs" />
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/FileUtils.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/FileUtils.cs?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/FileUtils.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/NPanday.Utils-Test/FileUtils.cs Thu May 26 10:37:50 2011
@@ -0,0 +1,60 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+
+namespace ConnectTest.UtilsTest
+{
+ public class FileUtils
+ {
+ public static string getBaseDirectory()
+ {
+ return new FileInfo(Directory.GetCurrentDirectory().Substring(0, Directory.GetCurrentDirectory().LastIndexOf("target"))).FullName;
+ }
+
+ public static string getLocalRepository()
+ {
+ string homePath = string.Empty;
+ if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX)
+ {
+ homePath = Environment.GetEnvironmentVariable("HOME");
+ }
+ else
+ {
+ homePath = Environment.ExpandEnvironmentVariables("%HOMEDRIVE%%HOMEPATH%");
+
+ if (homePath == null || homePath == string.Empty)
+ {
+ homePath = Environment.GetEnvironmentVariable("USERPROFILE");
+ }
+ }
+
+ return new FileInfo(homePath + "\\.m2").FullName;
+
+ }
+
+ public static void CopyDirectory(DirectoryInfo source, DirectoryInfo destination)
+ {
+ if (!destination.Exists)
+ {
+ destination.Create();
+ }
+
+ FileInfo[] files = source.GetFiles();
+ foreach (FileInfo filePath in files)
+ {
+ if (filePath.Name != null && !filePath.Name.EndsWith(".test"))
+ filePath.CopyTo(Path.Combine(destination.FullName, filePath.Name));
+ }
+
+ DirectoryInfo[] subDirectories = source.GetDirectories();
+ foreach (DirectoryInfo dirPath in subDirectories)
+ {
+ if (!dirPath.Name.Equals(".svn"))
+ {
+ CopyDirectory(new DirectoryInfo(Path.Combine(source.FullName, dirPath.Name)), new DirectoryInfo(Path.Combine(destination.FullName, dirPath.Name)));
+ }
+ }
+ }
+ }
+}
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/ClassLibrary1/ClassLibrary1/pom2.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/ClassLibrary1/ClassLibrary1/pom2.xml?rev=1127861&r1=1127860&r2=1127861&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/ClassLibrary1/ClassLibrary1/pom2.xml (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/ClassLibrary1/ClassLibrary1/pom2.xml Thu May 26 10:37:50 2011
@@ -1,20 +1,21 @@
<?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
- Copyright 2005 Exist Global
-
- Licensed 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.
+ 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0">
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject.sln
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject.sln?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject.sln (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject.sln Thu May 26 10:37:50 2011
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestProject", "TestProject\TestProject.csproj", "{76F62B5D-843D-46E1-A905-3A94E33C65E5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {76F62B5D-843D-46E1-A905-3A94E33C65E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {76F62B5D-843D-46E1-A905-3A94E33C65E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {76F62B5D-843D-46E1-A905-3A94E33C65E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {76F62B5D-843D-46E1-A905-3A94E33C65E5}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Class1.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Class1.cs?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Class1.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Class1.cs Thu May 26 10:37:50 2011
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace TestProject
+{
+ public class Class1
+ {
+ }
+}
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Properties/AssemblyInfo.cs?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Properties/AssemblyInfo.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/Properties/AssemblyInfo.cs Thu May 26 10:37:50 2011
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("TestProject")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("TestProject")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("63c6177f-c4b1-400c-9a4e-f0c4aa0c8af3")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/TestProject.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/TestProject.csproj?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/TestProject.csproj (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/TestProject.csproj Thu May 26 10:37:50 2011
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{76F62B5D-843D-46E1-A905-3A94E33C65E5}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TestProject</RootNamespace>
+ <AssemblyName>TestProject</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Class1.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <WebReferences Include="Web References\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- 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>
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/pom.xml?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/pom.xml (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/TestProject/pom.xml Thu May 26 10:37:50 2011
@@ -0,0 +1,49 @@
+<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <parent>
+ <artifactId>TestProject-parent</artifactId>
+ <groupId>Microsoft.TestProject</groupId>
+ <version>1.2.1-maestro-2.3.5.14-SNAPSHOT</version>
+ <relativePath>..\pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>TestProject</artifactId>
+ <packaging>library</packaging>
+ <name>Microsoft.TestProject : TestProject</name>
+ <build>
+ <sourceDirectory>./</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>npanday.plugin</groupId>
+ <artifactId>maven-compile-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <frameworkVersion>3.5</frameworkVersion>
+ <includeSources>
+ <includeSource>Class1.cs</includeSource>
+ <includeSource>Properties\AssemblyInfo.cs</includeSource>
+ </includeSources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/pom.xml?rev=1127861&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/pom.xml (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/TestProject/pom.xml Thu May 26 10:37:50 2011
@@ -0,0 +1,30 @@
+<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>Microsoft.TestProject</groupId>
+ <artifactId>TestProject-parent</artifactId>
+ <packaging>pom</packaging>
+ <name>Microsoft.TestProject : TestProject-parent</name>
+ <version>1.2.1-maestro-2.3.5.14-SNAPSHOT</version>
+ <modules>
+ <module>TestProject</module>
+ </modules>
+</project>
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary1.dll
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary1.dll?rev=1127861&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary1.dll
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary2.dll
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary2.dll?rev=1127861&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/resource/m2/ClassLibrary2.dll
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream