incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r531661 - in /incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner: ./ src/ src/main/ src/main/csharp/ src/main/csharp/NMaven/ src/main/csharp/NMaven/Plugin/ src/main/csharp/NMaven/Plugin/Launcher/
Date Mon, 23 Apr 2007 23:49:59 GMT
Author: sisbell
Date: Mon Apr 23 16:49:58 2007
New Revision: 531661

URL: http://svn.apache.org/viewvc?view=rev&rev=531661
Log:
Initial import of plugin runner.

Added:
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/pom.xml   (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/pom.xml?view=auto&rev=531661
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/pom.xml (added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/pom.xml Mon Apr 23 16:49:58
2007
@@ -0,0 +1,31 @@
+<?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="http://maven.apache.org/POM/4.0.0">
+  <parent>
+    <groupId>NMaven</groupId>
+    <version>0.14</version>
+    <artifactId>NMaven.Assemblies</artifactId>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NMaven.Plugin</groupId>
+  <artifactId>NMaven.Plugin.Runner</artifactId>
+  <packaging>exe</packaging>
+  <version>0.14</version>
+  <name>NMaven.Plugin.Runner</name>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs?view=auto&rev=531661
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
Mon Apr 23 16:49:58 2007
@@ -0,0 +1,48 @@
+using System;
+using System.Text;
+using System.Diagnostics;
+
+namespace NMaven.Plugin.Launcher
+{
+	/// <summary>
+	/// Description of PluginLauncher.
+	/// </summary>
+	public class PluginLauncher
+	{
+		public PluginLauncher()
+		{
+		}
+
+		[STAThread]
+		static void Main(string[] args)
+		{
+			//Console.WriteLine(args.ToString());
+			Console.WriteLine("Start Process = " + DateTime.Now);
+			Console.WriteLine(@flattenArgs(args));
+
+			ProcessStartInfo processStartInfo =
+				new ProcessStartInfo(@"C:\Documents and Settings\shane\.m2\repository\NMaven\Plugin\NMaven.Plugin.Loader\0.14\NMaven.Plugin.Loader.exe",
+				                    @flattenArgs(args));
+
+			processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_ASM"]
+				= "NMaven.Plugin, Version=0.14.0.0, PublicKeyToken=4b435f4d76e2f0e6, culture=neutral";
+			processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_TYPE"]
+				= "NMaven.Plugin.PluginDomainManager";
+
+			processStartInfo.UseShellExecute = false;
+			Process.Start(processStartInfo);
+            Console.WriteLine("End Process = " + DateTime.Now);
+		}
+
+		private static string flattenArgs(string[] args)
+		{
+			StringBuilder stringBuilder = new StringBuilder();
+			foreach(string arg in args)
+			{
+				//Console.WriteLine("ARG {0}: ", arg);
+				stringBuilder.Append(@"""").Append(@arg).Append(@"""").Append(" ");
+			}
+			return stringBuilder.ToString();
+		}
+	}
+}



Mime
View raw message