incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r592598 - /incubator/nmaven/trunk/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
Date Wed, 07 Nov 2007 03:18:04 GMT
Author: sisbell
Date: Tue Nov  6 19:18:03 2007
New Revision: 592598

URL: http://svn.apache.org/viewvc?rev=592598&view=rev
Log:
Removed hard-coded version within class file.

Modified:
    incubator/nmaven/trunk/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs

Modified: incubator/nmaven/trunk/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs?rev=592598&r1=592597&r2=592598&view=diff
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
(original)
+++ incubator/nmaven/trunk/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
Tue Nov  6 19:18:03 2007
@@ -19,6 +19,7 @@
 //
 #endregion
 using System;
+using System.Reflection;
 using System.Text;
 using System.Diagnostics;
 
@@ -54,8 +55,10 @@
                     new ProcessStartInfo(startProcessAssembly, @flattenArgs(args));
             }
 
+            String version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
+
 			processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_ASM"]
-				= "NMaven.Plugin, Version=0.14.0.0, PublicKeyToken=4b435f4d76e2f0e6, culture=neutral";
+				= "NMaven.Plugin, Version="+ version + ", PublicKeyToken=4b435f4d76e2f0e6, culture=neutral";
 			processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_TYPE"]
 				= "NMaven.Plugin.PluginDomainManager";
 



Mime
View raw message