incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r573046 - in /incubator/nmaven/trunk/integration-tests: issue67-mono/ issue67-mono/NMaven.Test.Issue67.Application/ issue67-mono/NMaven.Test.Issue67.Domain/ issue67-mono/NMaven.Test.Issue67.Loader/ issue67-mono/NMaven.Test.Issue67.Runner/ t...
Date Wed, 05 Sep 2007 20:17:05 GMT
Author: sisbell
Date: Wed Sep  5 13:17:03 2007
New Revision: 573046

URL: http://svn.apache.org/viewvc?rev=573046&view=rev
Log:
Tests for NMAVEN-67

Added:
    incubator/nmaven/trunk/integration-tests/issue67-mono/
    incubator/nmaven/trunk/integration-tests/issue67-mono/Makefile.mak
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/Makefile.mak
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/MarshalClass.cs
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/sample.snk
  (with props)
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/Makefile.mak
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/TestAppDomainManager.cs
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/sample.snk
  (with props)
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/Makefile.mak
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/PluginLoader.cs
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/Makefile.mak
    incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/TestRunner.cs
    incubator/nmaven/trunk/integration-tests/issue67-mono/README.txt   (with props)
    incubator/nmaven/trunk/integration-tests/issue67-mono/env.bat   (with props)
Modified:
    incubator/nmaven/trunk/integration-tests/tests/it0003/pom.xml
    incubator/nmaven/trunk/integration-tests/tests/it0032/pom.xml

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/Makefile.mak
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/Makefile.mak?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/Makefile.mak (added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/Makefile.mak Wed Sep  5 13:17:03
2007
@@ -0,0 +1,38 @@
+install :
+	cd "NMAVEN.TEST.Issue67.Application"
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak vendor="$(vendor)"
+	cd ".."
+
+	cd "NMAVEN.TEST.Issue67.Domain"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak vendor="$(vendor)"
+	cd ".."
+
+	cd "NMAVEN.TEST.Issue67.Loader"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak vendor="$(vendor)"
+	cd ".."
+
+	cd "NMAVEN.TEST.Issue67.Runner"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak vendor="$(vendor)"
+	cd ".."
+
+clean :
+	cd "NMAVEN.TEST.Issue67.Application"
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak clean vendor="$(vendor)"
+	cd ".."
+
+	cd "NMAVEN.TEST.Issue67.Domain"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak clean vendor="$(vendor)"
+	cd ".."
+
+	cd "NMAVEN.TEST.Issue67.Loader"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak clean vendor="$(vendor)"
+	cd ".."
+
+	cd "NMAVEN.TEST.Issue67.Runner"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak clean vendor="$(vendor)"
+	cd ".."
+
+test : 
+	cd "NMAVEN.TEST.Issue67.Runner"	
+	$(MAKE) /$(MAKEFLAGS) /F .\Makefile.mak test vendor="$(vendor)"
+	cd ".."
\ No newline at end of file

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/Makefile.mak
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/Makefile.mak?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/Makefile.mak
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/Makefile.mak
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,18 @@
+ASSEMBLY_NAME=NMaven.Test.Issue67.Application
+
+install : 
+!IF "$(vendor)" == "MONO"	
+	$(NMAVEN_MONO)\gmcs /target:library /out:$(ASSEMBLY_NAME).dll /keyfile:sample.snk /debug
*.cs
+	$(NMAVEN_MONO)\gacutil /f /i $(ASSEMBLY_NAME).dll 
+!ELSE
+	$(NMAVEN_FRAMEWORK)\csc /target:library /out:$(ASSEMBLY_NAME).dll /keyfile:sample.snk /debug
*.cs
+	$(NMAVEN_SDK)\gacutil /f /i $(ASSEMBLY_NAME).dll 
+!ENDIF
+
+clean :
+	del $(ASSEMBLY_NAME).*
+!IF "$(vendor)" == "MONO"	
+	$(NMAVEN_MONO)\gacutil /u $(ASSEMBLY_NAME) 
+!ELSE
+	$(NMAVEN_SDK)\gacutil /u $(ASSEMBLY_NAME) 
+!ENDIF
\ No newline at end of file

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/MarshalClass.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/MarshalClass.cs?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/MarshalClass.cs
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/MarshalClass.cs
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,14 @@
+using System;
+using System.IO;
+using System.Reflection;
+
+namespace NMaven.Test.Issue67.Application
+{
+	public class MarshalClass : MarshalByRefObject
+    {
+        public void Execute()
+        {
+            Console.WriteLine("Executed the Test Class.");
+        }
+    }
+}

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/sample.snk
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/sample.snk?rev=573046&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Application/sample.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/Makefile.mak
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/Makefile.mak?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/Makefile.mak
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/Makefile.mak
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,18 @@
+ASSEMBLY_NAME=NMaven.Test.Issue67.Domain
+
+install : 
+!IF "$(vendor)" == "MONO"	
+	$(NMAVEN_MONO)\gmcs /target:library /out:$(ASSEMBLY_NAME).dll /keyfile:sample.snk *.cs
+	$(NMAVEN_MONO)\gacutil /f /i $(ASSEMBLY_NAME).dll 
+!ELSE
+	$(NMAVEN_FRAMEWORK)\csc /target:library /out:$(ASSEMBLY_NAME).dll /keyfile:sample.snk *.cs
+	$(NMAVEN_SDK)\gacutil /f /i $(ASSEMBLY_NAME).dll 
+!ENDIF
+
+clean :
+	del $(ASSEMBLY_NAME).*
+!IF "$(vendor)" == "MONO"	
+	$(NMAVEN_MONO)\gacutil /u $(ASSEMBLY_NAME) 
+!ELSE
+	$(NMAVEN_SDK)\gacutil /u $(ASSEMBLY_NAME) 
+!ENDIF
\ No newline at end of file

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/TestAppDomainManager.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/TestAppDomainManager.cs?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/TestAppDomainManager.cs
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/TestAppDomainManager.cs
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,32 @@
+using System;
+using System.IO;
+using System.Reflection;
+
+namespace NMaven.Test.Issue67.Domain
+{
+	public sealed class TestAppDomainManager : AppDomainManager
+	{
+		/// <summary>
+		/// Default constructor
+		/// </summary>
+		public TestAppDomainManager() : base()
+		{
+			Console.WriteLine("Creating Plugin Domain Manager");
+		}
+
+		public void LoadPlugin(FileInfo assemblyFile)
+		{
+			Assembly assembly = null;
+			try
+			{
+				string assemblyName = assemblyFile.Name.TrimEnd(assemblyFile.Extension.ToCharArray());
+				assembly = AppDomain.CurrentDomain.Load(assemblyName);
+			}
+			catch(FileNotFoundException e)
+			{
+				Console.WriteLine("FNE: " + e.Message);
+				return;
+			}
+		}
+	}
+}
\ No newline at end of file

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/sample.snk
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/sample.snk?rev=573046&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Domain/sample.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/Makefile.mak
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/Makefile.mak?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/Makefile.mak
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/Makefile.mak
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,16 @@
+ASSEMBLY_NAME=NMaven.Test.Issue67.Loader
+
+install : 
+!IF "$(vendor)" == "MONO"	
+	$(NMAVEN_MONO)\gmcs /target:exe /out:$(ASSEMBLY_NAME).exe	\
+		/reference:..\NMaven.Test.Issue67.Domain\NMaven.Test.Issue67.Domain.dll	\
+		/debug *.cs
+!ELSE
+	$(NMAVEN_FRAMEWORK)\csc /target:exe /out:$(ASSEMBLY_NAME).exe	\
+		/reference:..\NMaven.Test.Issue67.Domain\NMaven.Test.Issue67.Domain.dll	\
+		/debug *.cs
+!ENDIF
+
+clean :
+	del $(ASSEMBLY_NAME).*
+		
\ No newline at end of file

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/PluginLoader.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/PluginLoader.cs?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/PluginLoader.cs
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Loader/PluginLoader.cs
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,74 @@
+using System;
+using System.IO;
+using System.Reflection;
+using System.Runtime.Remoting;
+using NMaven.Test.Issue67.Domain;
+
+namespace NMaven.Test.Issue67.Loader
+{
+	/// <summary>
+	/// Provides methods for loading plugins and for creating Mojos.
+	/// </summary>
+	internal sealed class PluginLoader
+	{
+		internal PluginLoader()
+		{
+		}
+
+		/// <summary>
+		/// Loads the specified plugin assembly file into the returned plugin application domain.
+		/// </summary>
+		/// <param name="pluginAssemblyFile">the.NET maven plugin</param>
+		/// <returns>application domain for .NET maven plugin</returns>
+		/// 
+		internal AppDomain LoadPlugin(FileInfo pluginAssemblyFile)
+		{
+			Console.WriteLine("Loading Plugin: " + pluginAssemblyFile.DirectoryName);
+			AppDomainSetup setup = new AppDomainSetup();
+			setup.ApplicationBase = pluginAssemblyFile.DirectoryName;
+
+			AppDomain applicationDomain = AppDomain.CreateDomain("Loader", null, setup);
+			TestAppDomainManager pluginDomainManager = (TestAppDomainManager) applicationDomain.DomainManager;
+            if (pluginDomainManager == null)
+            {
+                throw new Exception("-----Failed to find test app domain manager-----");
+            }
+            pluginDomainManager.LoadPlugin(pluginAssemblyFile);
+			return applicationDomain;
+		}
+
+		public static int Main(string[] args)
+		{
+		    Console.WriteLine("-----Starting Plugin Loader-----");
+			string assemblyFilePath = GetArgFor("assemblyFile", args);
+            Console.WriteLine("Assembly File = " + assemblyFilePath);
+
+			PluginLoader pluginLoader = new PluginLoader();
+            try
+            {
+                pluginLoader.LoadPlugin(new FileInfo(assemblyFilePath));
+            }
+            catch (Exception e)
+            {
+                Console.Error.WriteLine(e.Message);
+                Console.WriteLine("-----Test Failed----");
+                return 1;
+            } 
+            Console.WriteLine("-----Ending Plugin Loader-----");
+            Console.WriteLine("-----Test OK-----");
+            return 0;
+
+		}
+		
+		private static string GetArgFor(string name, string[] args)
+		{
+			char[] delim = {'='};
+			foreach(string arg in args)
+			{
+                string[] tokens = arg.Split(delim);
+                if (tokens[0].Equals(name)) return tokens[1];
+			}
+            return null;
+		}		
+	}
+}

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/Makefile.mak
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/Makefile.mak?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/Makefile.mak
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/Makefile.mak
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,19 @@
+ASSEMBLY_NAME=NMaven.Test.Issue67.Runner
+
+install : 
+!IF "$(vendor)" == "MONO"	
+	$(NMAVEN_MONO)\gmcs /target:exe /out:$(ASSEMBLY_NAME).exe	\
+		/debug *.cs
+!ELSE
+	$(NMAVEN_FRAMEWORK)\csc /target:exe /out:$(ASSEMBLY_NAME).exe	\
+		/debug *.cs
+!ENDIF
+
+clean :
+	del $(ASSEMBLY_NAME).*
+
+test :
+	$(ASSEMBLY_NAME).exe 	\
+		startProcessAssembly=..\NMaven.Test.Issue67.Loader\NMaven.Test.Issue67.Loader.exe	\
+		assemblyFile=..\NMaven.Test.Issue67.Application\NMaven.Test.Issue67.Application.dll	\
+		vendor=$(vendor)
\ No newline at end of file

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/TestRunner.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/TestRunner.cs?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/TestRunner.cs
(added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/NMaven.Test.Issue67.Runner/TestRunner.cs
Wed Sep  5 13:17:03 2007
@@ -0,0 +1,64 @@
+using System;
+using System.Text;
+using System.Diagnostics;
+
+namespace NMaven.Test.Issue67.Runner
+{
+	public class TestRunner
+	{
+		public TestRunner()
+		{
+		}
+
+		[STAThread]
+		static void Main(string[] args)
+		{
+		    Console.WriteLine("-----Starting Test Runner-----");
+			Console.WriteLine(@flattenArgs(args));
+			String vendor = GetArgFor("vendor", args);
+			String startProcessAssembly = @GetArgFor("startProcessAssembly", args);
+			ProcessStartInfo processStartInfo = null;
+
+			if(vendor != null && vendor.Equals("MONO"))
+			{
+                processStartInfo =
+                    new ProcessStartInfo("mono", startProcessAssembly + " " + @flattenArgs(args));
+            }
+            else
+            {
+                processStartInfo =
+                    new ProcessStartInfo(startProcessAssembly, @flattenArgs(args));
+            }
+
+			processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_ASM"]
+				= "NMaven.Test.Issue67.Domain, Version=0.0.0.0, PublicKeyToken=4b435f4d76e2f0e6, culture=neutral";
+			processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_TYPE"]
+				= "NMaven.Test.Issue67.Domain.TestAppDomainManager";
+
+			processStartInfo.UseShellExecute = false;
+			Process.Start(processStartInfo);
+            Console.WriteLine("-----Ending Test Runner-----");
+		}
+
+		private static string GetArgFor(string name, string[] args)
+		{
+			char[] delim = {'='};
+			foreach(string arg in args)
+			{
+                string[] tokens = arg.Split(delim);
+                if (tokens[0].Equals(name)) return tokens[1];
+			}
+            return null;
+		}
+
+		private static string flattenArgs(string[] args)
+		{
+			StringBuilder stringBuilder = new StringBuilder();
+			foreach(string arg in args)
+			{
+				stringBuilder.Append(@"""").Append(@arg).Append(@"""").Append(" ");
+			}
+			return stringBuilder.ToString();
+		}
+	}
+}

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/README.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/README.txt?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/README.txt (added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/README.txt Wed Sep  5 13:17:03 2007
@@ -0,0 +1,61 @@
+BUG TITLE: Mono does not allow creation of a new app domain manager
+DESCRIPTION: Mono does not support the use of the APPDOMAIN_MANAGER_ASM and APPDOMAIN_MANAGER_TYPE
environment variables to plugin a new app domain manager.
+IMPACT: This impact is: 1) developers can't write Maven plugins in .NET; and 2) NMaven plugins
like the solution generator can't be executed in Mono runtime.
+
+I. SETTING UP:
+
+Prerequisites:
+1) Windows XP
+2) Microsoft SDK 2.0 Installed
+3) Microsoft Visual Studio Installed
+4) Mono Installed (tested with 1.2.3.1)
+
+Set Environmental Variables for test:
+NMAVEN_FRAMEWORK (Microsoft .NET Framework)
+NMAVEN_SDK (Microsoft SDK 2.0)
+NMAVEN_MONO (Mono bin directory)
+
+NMAVEN_MONO also needs to be included within the path.
+
+Samples of Environmental Variables
+NMAVEN_FRAMEWORK=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
+NMAVEN_SDK="C:\Program Files\Microsoft.NET\SDK\v2.0\Bin"
+NMAVEN_MONO="C:\Program Files\Mono-1.2.3.1\bin"
+
+II. RUNNING THE TESTS:
+
+The scripts should be built with Microsoft nmake (located within the SDK bin).
+
+For Microsoft: goto the parent directory of the test distribution and from the commandline
type:
+	nmake -f Makefile.mak install
+	nmake -f Makefile.mak test
+At the end of the test, you should see something similar to:
+
+-----Starting Plugin Loader-----
+Assembly File = ..\NMaven.Test.Issue67.Application\NMaven.Test.Issue67.Application.dll
+Loading Plugin: C:\Documents and Settings\shane\nmaven-apache\trunk\integration-tests\mono-bug\NMaven.Test.Issue67.Application
+Creating Plugin Domain Manager
+-----Ending Plugin Loader-----
+-----Test OK-----
+
+Now for Mono: from the commandline
+	nmake -f Makefile.mak clean
+	nmake -f Makefile.mak install vendor=MONO
+	nmake -f Makefile.mak test vendor=MONO
+ 
+At the end of the test, you should see something similar to:
+----Starting Plugin Loader-----
+Assembly File = ..\NMaven.Test.Issue67.Application\NMaven.Test.Issue67.Application.dll
+Loading Plugin: C:\Documents and Settings\shane\nmaven-apache\trunk\integration-tests\mono-bug\NMaven.Test.Issue67.Application
+-----Failed to find test app domain manager-----
+-----Test Failed----
+
+III. Test Details
+NMaven.Test.Issue67.Runner: This class instance takes two args: 1) the vendor (MONO or Microsoft)
and the startProcessAssembly, which references NMaven.Test.Issue67.Loader.exe. The vendor
arg tells the Runner whether to start the Loader.exe under the Microsoft CLR or the Mono one.
This class instance also sets the application manager information that the Loader.exe process
will use by setting the APPDOMAIN_MANAGER_ASM and the APPDOMAIN_MANAGER_TYPE environmental
variables. 
+
+NMaven.Test.Issue67.Loader: This class attempts to get the correct instance of the AppDomainManager
(TestAppDomainManager) and invoke a method on it.
+
+The NMaven.Test.Issue67.Domain: Contains the TestAppDomainManager class.
+
+
+

Propchange: incubator/nmaven/trunk/integration-tests/issue67-mono/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/integration-tests/issue67-mono/env.bat
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/issue67-mono/env.bat?rev=573046&view=auto
==============================================================================
--- incubator/nmaven/trunk/integration-tests/issue67-mono/env.bat (added)
+++ incubator/nmaven/trunk/integration-tests/issue67-mono/env.bat Wed Sep  5 13:17:03 2007
@@ -0,0 +1,3 @@
+set NMAVEN_FRAMEWORK=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
+set NMAVEN_SDK="C:\Program Files\Microsoft.NET\SDK\v2.0\Bin"
+set NMAVEN_MONO="C:\Program Files\Mono-1.2.3.1\bin"
\ No newline at end of file

Propchange: incubator/nmaven/trunk/integration-tests/issue67-mono/env.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/trunk/integration-tests/tests/it0003/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/tests/it0003/pom.xml?rev=573046&r1=573045&r2=573046&view=diff
==============================================================================
--- incubator/nmaven/trunk/integration-tests/tests/it0003/pom.xml (original)
+++ incubator/nmaven/trunk/integration-tests/tests/it0003/pom.xml Wed Sep  5 13:17:03 2007
@@ -1,36 +1,33 @@
 <project>
-    <modelVersion>4.0.0</modelVersion>
-    <groupId>org.apache.maven.it</groupId>
-    <artifactId>it0003</artifactId>
-    <packaging>library</packaging>
-    <version>1.0.0</version>
-    <name>it0003</name>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.maven.it</groupId>
-            <artifactId>it0002</artifactId>
-	        <type>library</type>
-            <version>1.0.0</version>
-        </dependency>
-    </dependencies>
-    <build>	
-	<sourceDirectory>src/main/csharp</sourceDirectory>
-	<testSourceDirectory>src/test/csharp</testSourceDirectory>
-
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.dotnet.plugins</groupId>
-                <artifactId>maven-compile-plugin</artifactId>
-     	        <extensions>true</extensions>
-              <configuration>
-                
-              </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.dotnet.plugins</groupId>
-                <artifactId>maven-test-plugin</artifactId>
-            </plugin>
-        </plugins>
-    </build>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.it</groupId>
+  <artifactId>it0003</artifactId>
+  <packaging>library</packaging>
+  <version>1.0.0</version>
+  <name>it0003</name>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.it</groupId>
+      <artifactId>it0002</artifactId>
+      <type>library</type>
+      <version>1.0.0</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <sourceDirectory>src/main/csharp</sourceDirectory>
+    <testSourceDirectory>src/test/csharp</testSourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-test-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Modified: incubator/nmaven/trunk/integration-tests/tests/it0032/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/integration-tests/tests/it0032/pom.xml?rev=573046&r1=573045&r2=573046&view=diff
==============================================================================
--- incubator/nmaven/trunk/integration-tests/tests/it0032/pom.xml (original)
+++ incubator/nmaven/trunk/integration-tests/tests/it0032/pom.xml Wed Sep  5 13:17:03 2007
@@ -8,10 +8,10 @@
 
   <dependencies>
     <dependency>
-        <groupId>NUnit</groupId>
-        <artifactId>NUnit.Framework</artifactId>
-        <version>2.2.8.0</version>
-        <type>library</type>
+      <groupId>NUnit</groupId>
+      <artifactId>NUnit.Framework</artifactId>
+      <version>2.2.8.0</version>
+      <type>library</type>
     </dependency>
   </dependencies>
 
@@ -25,12 +25,12 @@
         <artifactId>maven-compile-plugin</artifactId>
         <extensions>true</extensions>
         <configuration>
-            <excludes>
-                <exclude>**/notToBeIncluded.cs</exclude>
-            </excludes>
-            <testExcludes>
-                <exclude>**/notToBeIncluded.txt</exclude>
-            </testExcludes>
+          <excludes>
+            <exclude>**/notToBeIncluded.cs</exclude>
+          </excludes>
+          <testExcludes>
+            <exclude>**/notToBeIncluded.txt</exclude>
+          </testExcludes>
         </configuration>
       </plugin>
 



Mime
View raw message