svn commit: r672753 [3/9] - in /incubator/nmaven/branches/NMAVEN_0.14: archetypes/maven-archetype-dotnet-simple/src/main/resources/archetype-resources/src/main/csharp/Sample/ archetypes/maven-archetype-dotnet-simple/src/main/resources/archetype-resourc...

View: New views
1 Messages — Rating Filter:   Alert me  

svn commit: r672753 [3/9] - in /incubator/nmaven/branches/NMAVEN_0.14: archetypes/maven-archetype-dotnet-simple/src/main/resources/archetype-resources/src/main/csharp/Sample/ archetypes/maven-archetype-dotnet-simple/src/main/resources/archetype-resourc...

by brettporter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/AutomationExtensibility/src/main/csharp/NMaven/Model/AutomationExtensibility.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/AutomationExtensibility/src/main/csharp/NMaven/Model/AutomationExtensibility.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/AutomationExtensibility/src/main/csharp/NMaven/Model/AutomationExtensibility.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/AutomationExtensibility/src/main/csharp/NMaven/Model/AutomationExtensibility.cs Mon Jun 30 05:54:00 2008
@@ -1,271 +1,271 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:2.0.50727.42
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-//
-// This source code was auto-generated by xsd, Version=2.0.50727.42.
-//
-namespace NMaven.Model {
-    using System.Xml.Serialization;
-    
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Diagnostics.DebuggerStepThroughAttribute()]
-    [System.ComponentModel.DesignerCategoryAttribute("code")]
-    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
-    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IsNullable=false)]
-    public partial class Extensibility {
-        
-        private object[] itemsField;
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("Addin", typeof(ExtensibilityAddin))]
-        [System.Xml.Serialization.XmlElementAttribute("HostApplication", typeof(ExtensibilityHostApplication))]
-        [System.Xml.Serialization.XmlElementAttribute("ToolsOptionsPage", typeof(ExtensibilityToolsOptionsPageCategory[]))]
-        public object[] Items {
-            get {
-                return this.itemsField;
-            }
-            set {
-                this.itemsField = value;
-            }
-        }
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Diagnostics.DebuggerStepThroughAttribute()]
-    [System.ComponentModel.DesignerCategoryAttribute("code")]
-    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
-    public partial class ExtensibilityAddin {
-        
-        private string[] itemsField;
-        
-        private ItemsChoiceType1[] itemsElementNameField;
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("AboutBoxDetails", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("AboutIconData", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("Assembly", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("CommandLineSafe", typeof(string), DataType="integer")]
-        [System.Xml.Serialization.XmlElementAttribute("CommandPreload", typeof(string), DataType="integer")]
-        [System.Xml.Serialization.XmlElementAttribute("Description", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("FriendlyName", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("FullClassName", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("LoadBehavior", typeof(string), DataType="integer")]
-        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
-        public string[] Items {
-            get {
-                return this.itemsField;
-            }
-            set {
-                this.itemsField = value;
-            }
-        }
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
-        [System.Xml.Serialization.XmlIgnoreAttribute()]
-        public ItemsChoiceType1[] ItemsElementName {
-            get {
-                return this.itemsElementNameField;
-            }
-            set {
-                this.itemsElementNameField = value;
-            }
-        }
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IncludeInSchema=false)]
-    public enum ItemsChoiceType1 {
-        
-        /// <remarks/>
-        AboutBoxDetails,
-        
-        /// <remarks/>
-        AboutIconData,
-        
-        /// <remarks/>
-        Assembly,
-        
-        /// <remarks/>
-        CommandLineSafe,
-        
-        /// <remarks/>
-        CommandPreload,
-        
-        /// <remarks/>
-        Description,
-        
-        /// <remarks/>
-        FriendlyName,
-        
-        /// <remarks/>
-        FullClassName,
-        
-        /// <remarks/>
-        LoadBehavior,
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Diagnostics.DebuggerStepThroughAttribute()]
-    [System.ComponentModel.DesignerCategoryAttribute("code")]
-    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
-    public partial class ExtensibilityHostApplication {
-        
-        private string[] itemsField;
-        
-        private ItemsChoiceType[] itemsElementNameField;
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("Name", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("Version", typeof(string))]
-        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
-        public string[] Items {
-            get {
-                return this.itemsField;
-            }
-            set {
-                this.itemsField = value;
-            }
-        }
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
-        [System.Xml.Serialization.XmlIgnoreAttribute()]
-        public ItemsChoiceType[] ItemsElementName {
-            get {
-                return this.itemsElementNameField;
-            }
-            set {
-                this.itemsElementNameField = value;
-            }
-        }
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IncludeInSchema=false)]
-    public enum ItemsChoiceType {
-        
-        /// <remarks/>
-        Name,
-        
-        /// <remarks/>
-        Version,
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Diagnostics.DebuggerStepThroughAttribute()]
-    [System.ComponentModel.DesignerCategoryAttribute("code")]
-    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
-    public partial class ExtensibilityToolsOptionsPageCategory {
-        
-        private ExtensibilityToolsOptionsPageCategorySubCategory[] subCategoryField;
-        
-        private string nameField;
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("SubCategory")]
-        public ExtensibilityToolsOptionsPageCategorySubCategory[] SubCategory {
-            get {
-                return this.subCategoryField;
-            }
-            set {
-                this.subCategoryField = value;
-            }
-        }
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlAttributeAttribute()]
-        public string Name {
-            get {
-                return this.nameField;
-            }
-            set {
-                this.nameField = value;
-            }
-        }
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Diagnostics.DebuggerStepThroughAttribute()]
-    [System.ComponentModel.DesignerCategoryAttribute("code")]
-    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
-    public partial class ExtensibilityToolsOptionsPageCategorySubCategory {
-        
-        private string[] itemsField;
-        
-        private ItemsChoiceType2[] itemsElementNameField;
-        
-        private string nameField;
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("Assembly", typeof(string))]
-        [System.Xml.Serialization.XmlElementAttribute("FullClassName", typeof(string))]
-        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
-        public string[] Items {
-            get {
-                return this.itemsField;
-            }
-            set {
-                this.itemsField = value;
-            }
-        }
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
-        [System.Xml.Serialization.XmlIgnoreAttribute()]
-        public ItemsChoiceType2[] ItemsElementName {
-            get {
-                return this.itemsElementNameField;
-            }
-            set {
-                this.itemsElementNameField = value;
-            }
-        }
-        
-        /// <remarks/>
-        [System.Xml.Serialization.XmlAttributeAttribute()]
-        public string Name {
-            get {
-                return this.nameField;
-            }
-            set {
-                this.nameField = value;
-            }
-        }
-    }
-    
-    /// <remarks/>
-    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
-    [System.SerializableAttribute()]
-    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IncludeInSchema=false)]
-    public enum ItemsChoiceType2 {
-        
-        /// <remarks/>
-        Assembly,
-        
-        /// <remarks/>
-        FullClassName,
-    }
-}
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:2.0.50727.42
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+//
+// This source code was auto-generated by xsd, Version=2.0.50727.42.
+//
+namespace NMaven.Model {
+    using System.Xml.Serialization;
+    
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Diagnostics.DebuggerStepThroughAttribute()]
+    [System.ComponentModel.DesignerCategoryAttribute("code")]
+    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
+    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IsNullable=false)]
+    public partial class Extensibility {
+        
+        private object[] itemsField;
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("Addin", typeof(ExtensibilityAddin))]
+        [System.Xml.Serialization.XmlElementAttribute("HostApplication", typeof(ExtensibilityHostApplication))]
+        [System.Xml.Serialization.XmlElementAttribute("ToolsOptionsPage", typeof(ExtensibilityToolsOptionsPageCategory[]))]
+        public object[] Items {
+            get {
+                return this.itemsField;
+            }
+            set {
+                this.itemsField = value;
+            }
+        }
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Diagnostics.DebuggerStepThroughAttribute()]
+    [System.ComponentModel.DesignerCategoryAttribute("code")]
+    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
+    public partial class ExtensibilityAddin {
+        
+        private string[] itemsField;
+        
+        private ItemsChoiceType1[] itemsElementNameField;
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("AboutBoxDetails", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("AboutIconData", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("Assembly", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("CommandLineSafe", typeof(string), DataType="integer")]
+        [System.Xml.Serialization.XmlElementAttribute("CommandPreload", typeof(string), DataType="integer")]
+        [System.Xml.Serialization.XmlElementAttribute("Description", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("FriendlyName", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("FullClassName", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("LoadBehavior", typeof(string), DataType="integer")]
+        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
+        public string[] Items {
+            get {
+                return this.itemsField;
+            }
+            set {
+                this.itemsField = value;
+            }
+        }
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
+        [System.Xml.Serialization.XmlIgnoreAttribute()]
+        public ItemsChoiceType1[] ItemsElementName {
+            get {
+                return this.itemsElementNameField;
+            }
+            set {
+                this.itemsElementNameField = value;
+            }
+        }
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IncludeInSchema=false)]
+    public enum ItemsChoiceType1 {
+        
+        /// <remarks/>
+        AboutBoxDetails,
+        
+        /// <remarks/>
+        AboutIconData,
+        
+        /// <remarks/>
+        Assembly,
+        
+        /// <remarks/>
+        CommandLineSafe,
+        
+        /// <remarks/>
+        CommandPreload,
+        
+        /// <remarks/>
+        Description,
+        
+        /// <remarks/>
+        FriendlyName,
+        
+        /// <remarks/>
+        FullClassName,
+        
+        /// <remarks/>
+        LoadBehavior,
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Diagnostics.DebuggerStepThroughAttribute()]
+    [System.ComponentModel.DesignerCategoryAttribute("code")]
+    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
+    public partial class ExtensibilityHostApplication {
+        
+        private string[] itemsField;
+        
+        private ItemsChoiceType[] itemsElementNameField;
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("Name", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("Version", typeof(string))]
+        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
+        public string[] Items {
+            get {
+                return this.itemsField;
+            }
+            set {
+                this.itemsField = value;
+            }
+        }
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
+        [System.Xml.Serialization.XmlIgnoreAttribute()]
+        public ItemsChoiceType[] ItemsElementName {
+            get {
+                return this.itemsElementNameField;
+            }
+            set {
+                this.itemsElementNameField = value;
+            }
+        }
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IncludeInSchema=false)]
+    public enum ItemsChoiceType {
+        
+        /// <remarks/>
+        Name,
+        
+        /// <remarks/>
+        Version,
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Diagnostics.DebuggerStepThroughAttribute()]
+    [System.ComponentModel.DesignerCategoryAttribute("code")]
+    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
+    public partial class ExtensibilityToolsOptionsPageCategory {
+        
+        private ExtensibilityToolsOptionsPageCategorySubCategory[] subCategoryField;
+        
+        private string nameField;
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("SubCategory")]
+        public ExtensibilityToolsOptionsPageCategorySubCategory[] SubCategory {
+            get {
+                return this.subCategoryField;
+            }
+            set {
+                this.subCategoryField = value;
+            }
+        }
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlAttributeAttribute()]
+        public string Name {
+            get {
+                return this.nameField;
+            }
+            set {
+                this.nameField = value;
+            }
+        }
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Diagnostics.DebuggerStepThroughAttribute()]
+    [System.ComponentModel.DesignerCategoryAttribute("code")]
+    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
+    public partial class ExtensibilityToolsOptionsPageCategorySubCategory {
+        
+        private string[] itemsField;
+        
+        private ItemsChoiceType2[] itemsElementNameField;
+        
+        private string nameField;
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("Assembly", typeof(string))]
+        [System.Xml.Serialization.XmlElementAttribute("FullClassName", typeof(string))]
+        [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")]
+        public string[] Items {
+            get {
+                return this.itemsField;
+            }
+            set {
+                this.itemsField = value;
+            }
+        }
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")]
+        [System.Xml.Serialization.XmlIgnoreAttribute()]
+        public ItemsChoiceType2[] ItemsElementName {
+            get {
+                return this.itemsElementNameField;
+            }
+            set {
+                this.itemsElementNameField = value;
+            }
+        }
+        
+        /// <remarks/>
+        [System.Xml.Serialization.XmlAttributeAttribute()]
+        public string Name {
+            get {
+                return this.nameField;
+            }
+            set {
+                this.nameField = value;
+            }
+        }
+    }
+    
+    /// <remarks/>
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
+    [System.SerializableAttribute()]
+    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/AutomationExtensibility", IncludeInSchema=false)]
+    public enum ItemsChoiceType2 {
+        
+        /// <remarks/>
+        Assembly,
+        
+        /// <remarks/>
+        FullClassName,
+    }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/AutomationExtensibility/src/main/csharp/NMaven/Model/AutomationExtensibility.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/Settings/src/main/csharp/Settings.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/Settings/src/main/csharp/SettingsUtil.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Model/VSContent/src/main/csharp/vscontent.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Loader/src/main/csharp/NMaven/Plugin/Loader/PluginLoader.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Loader/src/main/csharp/NMaven/Plugin/Loader/PluginLoader.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Loader/src/main/csharp/NMaven/Plugin/Loader/PluginLoader.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Loader/src/main/csharp/NMaven/Plugin/Loader/PluginLoader.cs Mon Jun 30 05:54:00 2008
@@ -1,125 +1,125 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-using System.IO;
-using System.Reflection;
-using System.Runtime.Remoting;
-using NMaven.Plugin;
-
-namespace NMaven.Plugin.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);
- PluginDomainManager pluginDomainManager = (PluginDomainManager) applicationDomain.DomainManager;
-                  pluginDomainManager.LoadPlugin(pluginAssemblyFile);
- return applicationDomain;
- }
-
- /// <summary>
- /// Creates an instance of the specified mojo name within the specified application domain.
- /// </summary>
- /// <param name="mojoName">the name of the mojo to create</param>
- /// <param name="pluginAssemblyFile">the.NET maven plugin</param>
- /// <param name="paramFile">the file containing the parameters to inject into an instance
- /// of the specified mojo</param>
- /// <param name="applicationDomain">
- /// the application domain used to create the specified mojo name instance</param>
- /// <returns>an instance of the specified mojo name within the specified application domain</returns>
- internal AbstractMojo CreateAbstractMojoFor(String mojoName, FileInfo pluginAssemblyFile,
-                                          FileInfo paramFile, AppDomain applicationDomain)
- {
-            ObjectHandle objectHandle =
-             applicationDomain.CreateInstanceFrom(pluginAssemblyFile.FullName, mojoName);
- AbstractMojo abstractMojo = (AbstractMojo) objectHandle.Unwrap();
- abstractMojo.InjectFields(paramFile.FullName);
- return abstractMojo;
- }
-
- public static int Main(string[] args)
- {
- string paramFilePath = GetArgFor("parameterFile", args);
- string assemblyFilePath = GetArgFor("assemblyFile", args);
- string mojoName = GetArgFor("mojoName", args);
- Console.WriteLine("ParamFile = {0}, AssemblyFile = {1}, MojoName = {2}",
-                  paramFilePath, assemblyFilePath, mojoName);
-
- if(paramFilePath == null || assemblyFilePath == null || mojoName == null)
- {
-                Console.WriteLine("Missing arguement");
-                return 1;
-            }
-
-            FileInfo assemblyFile = new FileInfo(assemblyFilePath);
-            if (!assemblyFile.Exists)
-            {
-                Console.WriteLine("Assembly File does not exist: File = " + assemblyFile.FullName);
-                return 1;
-            }
-            FileInfo paramFile = new FileInfo(paramFilePath);
-            if (!paramFile.Exists)
-            {
-                Console.WriteLine("Param File does not exist: File = " + paramFile.FullName);
-                return 1;
-            }
-
- PluginLoader pluginLoader = new PluginLoader();
- AppDomain applicationDomain = pluginLoader.LoadPlugin(assemblyFile);
- AbstractMojo abstractMojo = pluginLoader.CreateAbstractMojoFor(mojoName,
-                                                               assemblyFile,
-                                                               paramFile,
-                                                               applicationDomain);
- abstractMojo.Execute();
-            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;
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+using System.IO;
+using System.Reflection;
+using System.Runtime.Remoting;
+using NMaven.Plugin;
+
+namespace NMaven.Plugin.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);
+ PluginDomainManager pluginDomainManager = (PluginDomainManager) applicationDomain.DomainManager;
+                  pluginDomainManager.LoadPlugin(pluginAssemblyFile);
+ return applicationDomain;
+ }
+
+ /// <summary>
+ /// Creates an instance of the specified mojo name within the specified application domain.
+ /// </summary>
+ /// <param name="mojoName">the name of the mojo to create</param>
+ /// <param name="pluginAssemblyFile">the.NET maven plugin</param>
+ /// <param name="paramFile">the file containing the parameters to inject into an instance
+ /// of the specified mojo</param>
+ /// <param name="applicationDomain">
+ /// the application domain used to create the specified mojo name instance</param>
+ /// <returns>an instance of the specified mojo name within the specified application domain</returns>
+ internal AbstractMojo CreateAbstractMojoFor(String mojoName, FileInfo pluginAssemblyFile,
+                                          FileInfo paramFile, AppDomain applicationDomain)
+ {
+            ObjectHandle objectHandle =
+             applicationDomain.CreateInstanceFrom(pluginAssemblyFile.FullName, mojoName);
+ AbstractMojo abstractMojo = (AbstractMojo) objectHandle.Unwrap();
+ abstractMojo.InjectFields(paramFile.FullName);
+ return abstractMojo;
+ }
+
+ public static int Main(string[] args)
+ {
+ string paramFilePath = GetArgFor("parameterFile", args);
+ string assemblyFilePath = GetArgFor("assemblyFile", args);
+ string mojoName = GetArgFor("mojoName", args);
+ Console.WriteLine("ParamFile = {0}, AssemblyFile = {1}, MojoName = {2}",
+                  paramFilePath, assemblyFilePath, mojoName);
+
+ if(paramFilePath == null || assemblyFilePath == null || mojoName == null)
+ {
+                Console.WriteLine("Missing arguement");
+                return 1;
+            }
+
+            FileInfo assemblyFile = new FileInfo(assemblyFilePath);
+            if (!assemblyFile.Exists)
+            {
+                Console.WriteLine("Assembly File does not exist: File = " + assemblyFile.FullName);
+                return 1;
+            }
+            FileInfo paramFile = new FileInfo(paramFilePath);
+            if (!paramFile.Exists)
+            {
+                Console.WriteLine("Param File does not exist: File = " + paramFile.FullName);
+                return 1;
+            }
+
+ PluginLoader pluginLoader = new PluginLoader();
+ AppDomain applicationDomain = pluginLoader.LoadPlugin(assemblyFile);
+ AbstractMojo abstractMojo = pluginLoader.CreateAbstractMojoFor(mojoName,
+                                                               assemblyFile,
+                                                               paramFile,
+                                                               applicationDomain);
+ abstractMojo.Execute();
+            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;
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Loader/src/main/csharp/NMaven/Plugin/Loader/PluginLoader.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.MojoGenerator/src/main/csharp/NMaven/Plugin/MojoGenerator/Generator.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.MojoGenerator/src/main/csharp/NMaven/Plugin/MojoGenerator/Generator.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.MojoGenerator/src/main/csharp/NMaven/Plugin/MojoGenerator/Generator.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.MojoGenerator/src/main/csharp/NMaven/Plugin/MojoGenerator/Generator.cs Mon Jun 30 05:54:00 2008
@@ -1,151 +1,151 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-using System.Runtime.Remoting;
-using System.Resources;
-using System.Text;
-using System.Xml.Serialization;
-
-using NMaven.Plugin;
-using NMaven.Plugin.Generator;
-
-namespace NMaven.Plugin.MojoGenerator
-{
- /// <summary>
- /// Provides methods for loading plugins and for creating Mojos.
- /// </summary>
- internal sealed class Generator
- {
- internal Generator()
- {
- }
-
- /// <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 GetApplicationDomainFor(FileInfo pluginAssemblyFile)
- {
- Console.WriteLine("Loading Generator: " + pluginAssemblyFile.DirectoryName);
- AppDomainSetup setup = new AppDomainSetup();
- setup.ApplicationBase = pluginAssemblyFile.DirectoryName;
-
- AppDomain applicationDomain = AppDomain.CreateDomain("Loader", null, setup);
- PluginDomainManager pluginDomainManager = (PluginDomainManager) applicationDomain.DomainManager;
-            pluginDomainManager.LoadPlugin(pluginAssemblyFile);
- return applicationDomain;
- }
-
- /// <summary>
- /// Creates an instance of the specified mojo name within the specified application domain.
- /// </summary>
- /// <param name="mojoName">the name of the mojo to create</param>
- /// <param name="pluginAssemblyFile">the.NET maven plugin</param>
- /// <param name="paramFile">the file containing the parameters to inject into an instance
- /// of the specified mojo</param>
- /// <param name="applicationDomain">
- /// the application domain used to create the specified mojo name instance</param>
- /// <returns>an instance of the specified mojo name within the specified application domain</returns>
- internal int BuildPluginProject(AppDomain applicationDomain, FileInfo pluginArtifact,
-                                FileInfo outputDirectory, string groupId, string artifactId,
-                                string version)
- {
-            ObjectHandle objectHandle =
-             applicationDomain.CreateInstanceFrom(@pluginArtifact.FullName,
-                                                 "NMaven.Plugin.Generator.JavaClassUnmarshaller");
- JavaClassUnmarshaller jcuRemote = (JavaClassUnmarshaller) objectHandle.Unwrap();
- List<JavaClass> javaClasses = jcuRemote.GetMojosFor(artifactId, groupId);
- JavaClassUnmarshaller jcuLocal = new JavaClassUnmarshaller();
-
- char[] delim = {'.'};
- DirectoryInfo sourceDirectory = new DirectoryInfo(@outputDirectory.FullName + "/src/main/java/"
-                                                  + artifactId.Replace('.', '/'));
- sourceDirectory.Create();
- if(javaClasses.Count == 0)
- {
- Console.WriteLine("NMAVEN-000-000: There are no Mojos within the assembly: Artifact Id = "
-                  + artifactId);
- return 1;
- }
-
- foreach(JavaClass javaClass in javaClasses)
- {
- string[] tokens = javaClass.ClassName.Split(delim);
- string classFileName = tokens[tokens.Length - 1];
- FileInfo fileInfo = new FileInfo(sourceDirectory.FullName + "/"
-                                 + classFileName + ".java");
- jcuLocal.unmarshall(javaClass, fileInfo);
- }
-
- ResourceManager resourceManager = new ResourceManager("NMaven.Plugin.MojoGenerator",
-                                                      Assembly.GetExecutingAssembly());
- String pomXml = (String) resourceManager.GetObject("pom-java.xml");
- TextReader reader = new StringReader(pomXml);
-    XmlSerializer serializer = new XmlSerializer(typeof(NMaven.Model.Pom.Model));
- NMaven.Model.Pom.Model model = (NMaven.Model.Pom.Model) serializer.Deserialize(reader);
- model.artifactId = artifactId + ".JavaBinding";
- model.groupId = groupId;
- model.version = version;
- model.name = artifactId + ".JavaBinding";
-    
- FileInfo outputPomXml = new FileInfo(@outputDirectory.FullName + "/pom-java.xml");
- TextWriter textWriter = new StreamWriter(@outputPomXml.FullName);
- serializer.Serialize(textWriter, model);
- return 0;
- }
-
- public static int Main(string[] args)
- {
-
- string targetAssemblyFile = GetArgFor("targetAssemblyFile", args);
- string outputDirectory = GetArgFor("outputDirectory", args);
- string pluginArtifactPath = GetArgFor("pluginArtifactPath", args);
- string groupId = GetArgFor("groupId", args);
- string artifactId = GetArgFor("artifactId", args);
- string version = GetArgFor("artifactVersion", args);
-
- //Console.WriteLine("targetAssemblyFile = {0}, outputDirectory = {1}, pluginArtifactPath = {2}, version = {3}",
- //                  targetAssemblyFile, outputDirectory, pluginArtifactPath, version);
- Generator generator = new Generator();
- AppDomain applicationDomain =
- generator.GetApplicationDomainFor(new FileInfo(targetAssemblyFile));
- return generator.BuildPluginProject(applicationDomain, new FileInfo(pluginArtifactPath),
-                             new FileInfo(outputDirectory),
-                             groupId, artifactId, version);
- }
-
- 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;
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Reflection;
+using System.Runtime.Remoting;
+using System.Resources;
+using System.Text;
+using System.Xml.Serialization;
+
+using NMaven.Plugin;
+using NMaven.Plugin.Generator;
+
+namespace NMaven.Plugin.MojoGenerator
+{
+ /// <summary>
+ /// Provides methods for loading plugins and for creating Mojos.
+ /// </summary>
+ internal sealed class Generator
+ {
+ internal Generator()
+ {
+ }
+
+ /// <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 GetApplicationDomainFor(FileInfo pluginAssemblyFile)
+ {
+ Console.WriteLine("Loading Generator: " + pluginAssemblyFile.DirectoryName);
+ AppDomainSetup setup = new AppDomainSetup();
+ setup.ApplicationBase = pluginAssemblyFile.DirectoryName;
+
+ AppDomain applicationDomain = AppDomain.CreateDomain("Loader", null, setup);
+ PluginDomainManager pluginDomainManager = (PluginDomainManager) applicationDomain.DomainManager;
+            pluginDomainManager.LoadPlugin(pluginAssemblyFile);
+ return applicationDomain;
+ }
+
+ /// <summary>
+ /// Creates an instance of the specified mojo name within the specified application domain.
+ /// </summary>
+ /// <param name="mojoName">the name of the mojo to create</param>
+ /// <param name="pluginAssemblyFile">the.NET maven plugin</param>
+ /// <param name="paramFile">the file containing the parameters to inject into an instance
+ /// of the specified mojo</param>
+ /// <param name="applicationDomain">
+ /// the application domain used to create the specified mojo name instance</param>
+ /// <returns>an instance of the specified mojo name within the specified application domain</returns>
+ internal int BuildPluginProject(AppDomain applicationDomain, FileInfo pluginArtifact,
+                                FileInfo outputDirectory, string groupId, string artifactId,
+                                string version)
+ {
+            ObjectHandle objectHandle =
+             applicationDomain.CreateInstanceFrom(@pluginArtifact.FullName,
+                                                 "NMaven.Plugin.Generator.JavaClassUnmarshaller");
+ JavaClassUnmarshaller jcuRemote = (JavaClassUnmarshaller) objectHandle.Unwrap();
+ List<JavaClass> javaClasses = jcuRemote.GetMojosFor(artifactId, groupId);
+ JavaClassUnmarshaller jcuLocal = new JavaClassUnmarshaller();
+
+ char[] delim = {'.'};
+ DirectoryInfo sourceDirectory = new DirectoryInfo(@outputDirectory.FullName + "/src/main/java/"
+                                                  + artifactId.Replace('.', '/'));
+ sourceDirectory.Create();
+ if(javaClasses.Count == 0)
+ {
+ Console.WriteLine("NMAVEN-000-000: There are no Mojos within the assembly: Artifact Id = "
+                  + artifactId);
+ return 1;
+ }
+
+ foreach(JavaClass javaClass in javaClasses)
+ {
+ string[] tokens = javaClass.ClassName.Split(delim);
+ string classFileName = tokens[tokens.Length - 1];
+ FileInfo fileInfo = new FileInfo(sourceDirectory.FullName + "/"
+                                 + classFileName + ".java");
+ jcuLocal.unmarshall(javaClass, fileInfo);
+ }
+
+ ResourceManager resourceManager = new ResourceManager("NMaven.Plugin.MojoGenerator",
+                                                      Assembly.GetExecutingAssembly());
+ String pomXml = (String) resourceManager.GetObject("pom-java.xml");
+ TextReader reader = new StringReader(pomXml);
+    XmlSerializer serializer = new XmlSerializer(typeof(NMaven.Model.Pom.Model));
+ NMaven.Model.Pom.Model model = (NMaven.Model.Pom.Model) serializer.Deserialize(reader);
+ model.artifactId = artifactId + ".JavaBinding";
+ model.groupId = groupId;
+ model.version = version;
+ model.name = artifactId + ".JavaBinding";
+    
+ FileInfo outputPomXml = new FileInfo(@outputDirectory.FullName + "/pom-java.xml");
+ TextWriter textWriter = new StreamWriter(@outputPomXml.FullName);
+ serializer.Serialize(textWriter, model);
+ return 0;
+ }
+
+ public static int Main(string[] args)
+ {
+
+ string targetAssemblyFile = GetArgFor("targetAssemblyFile", args);
+ string outputDirectory = GetArgFor("outputDirectory", args);
+ string pluginArtifactPath = GetArgFor("pluginArtifactPath", args);
+ string groupId = GetArgFor("groupId", args);
+ string artifactId = GetArgFor("artifactId", args);
+ string version = GetArgFor("artifactVersion", args);
+
+ //Console.WriteLine("targetAssemblyFile = {0}, outputDirectory = {1}, pluginArtifactPath = {2}, version = {3}",
+ //                  targetAssemblyFile, outputDirectory, pluginArtifactPath, version);
+ Generator generator = new Generator();
+ AppDomain applicationDomain =
+ generator.GetApplicationDomainFor(new FileInfo(targetAssemblyFile));
+ return generator.BuildPluginProject(applicationDomain, new FileInfo(pluginArtifactPath),
+                             new FileInfo(outputDirectory),
+                             groupId, artifactId, version);
+ }
+
+ 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;
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.MojoGenerator/src/main/csharp/NMaven/Plugin/MojoGenerator/Generator.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs Mon Jun 30 05:54:00 2008
@@ -1,94 +1,94 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-using System.Reflection;
-using System.Text;
-using System.Diagnostics;
-
-namespace NMaven.Plugin.Launcher
-{
- /// <summary>
- /// Description of PluginLauncher.
- /// </summary>
- public class PluginLauncher
- {
- public PluginLauncher()
- {
- }
-
- [STAThread]
- static int Main(string[] args)
- {
-
- Console.WriteLine("NMAVEN: Start Process = " + DateTime.Now);
- 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));
-            }
-
-            String version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
-
- processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_ASM"]
- = "NMaven.Plugin, Version="+ version + ", PublicKeyToken=4b435f4d76e2f0e6, culture=neutral";
- processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_TYPE"]
- = "NMaven.Plugin.PluginDomainManager";
-
- processStartInfo.UseShellExecute = false;
- Process p = Process.Start(processStartInfo);
-            p.WaitForExit();
-            Console.WriteLine("NMAVEN: End Process = " + DateTime.Now + "; exit code = " + p.ExitCode);
-            return p.ExitCode;
-        }
-
- 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)
- {
- //Console.WriteLine("ARG {0}: ", arg);
- stringBuilder.Append(@"""").Append(@arg).Append(@"""").Append(" ");
- }
- return stringBuilder.ToString();
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+using System.Reflection;
+using System.Text;
+using System.Diagnostics;
+
+namespace NMaven.Plugin.Launcher
+{
+ /// <summary>
+ /// Description of PluginLauncher.
+ /// </summary>
+ public class PluginLauncher
+ {
+ public PluginLauncher()
+ {
+ }
+
+ [STAThread]
+ static int Main(string[] args)
+ {
+
+ Console.WriteLine("NMAVEN: Start Process = " + DateTime.Now);
+ 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));
+            }
+
+            String version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
+
+ processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_ASM"]
+ = "NMaven.Plugin, Version="+ version + ", PublicKeyToken=4b435f4d76e2f0e6, culture=neutral";
+ processStartInfo.EnvironmentVariables["APPDOMAIN_MANAGER_TYPE"]
+ = "NMaven.Plugin.PluginDomainManager";
+
+ processStartInfo.UseShellExecute = false;
+ Process p = Process.Start(processStartInfo);
+            p.WaitForExit();
+            Console.WriteLine("NMAVEN: End Process = " + DateTime.Now + "; exit code = " + p.ExitCode);
+            return p.ExitCode;
+        }
+
+ 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)
+ {
+ //Console.WriteLine("ARG {0}: ", arg);
+ stringBuilder.Append(@"""").Append(@arg).Append(@"""").Append(" ");
+ }
+ return stringBuilder.ToString();
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin.Runner/src/main/csharp/NMaven/Plugin/Launcher/PluginLauncher.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs Mon Jun 30 05:54:00 2008
@@ -1,79 +1,79 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-using System.IO;
-using System.Reflection;
-using System.Xml;
-using System.Xml.Serialization;
-
-using NMaven.Plugin.Injector;
-using NMaven.Plugin.Injector.Impl;
-
-namespace NMaven.Plugin
-{
- /// <summary>
- /// Base class for Mojos.
- /// </summary>
- public abstract class AbstractMojo : MarshalByRefObject
-    {
-        public abstract void Execute();
-        
-        public abstract Type GetMojoImplementationType();
-              
-        /// <summary>
-        /// Injects values into fields of the child class using information from the specified
-        /// configuration file.
-        /// </summary>
-        /// <param name="configurationFile">The file that contains the values used to populate the fields</param>
-        public void InjectFields(String configurationFile)
-        {
- XmlTextReader reader =
- new XmlTextReader(@configurationFile);
- FieldInjectorRepository fieldInjectorRepository = new FieldInjectorRepository();
-
- while(reader.Read() == true)
- {
- FieldInfo fieldInfo = GetFieldInfoFor(this.GetMojoImplementationType(), reader.Name);
- if(fieldInfo != null)
- {
- IFieldInjector fieldInjector = fieldInjectorRepository.getFieldInjectorFor(fieldInfo);
- fieldInjector.Inject(this, fieldInfo, reader.ReadString() );
- }
- }        
-        }
-        
-       // public List<JavaClass> CreateJavaClassesForPlugin()
-        
-        private FieldInfo GetFieldInfoFor(Type type, String name)
-        {
-         foreach(FieldInfo field in type.GetFields())
-        {
-            foreach (Attribute attribute in field.GetCustomAttributes(true))
-            {            
- FieldAttribute fieldAttribute = (FieldAttribute) attribute;
- if(fieldAttribute.Name.Equals(name))
- return field;
-            }
-        }
-        return null;
-        }
-    }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+using System.IO;
+using System.Reflection;
+using System.Xml;
+using System.Xml.Serialization;
+
+using NMaven.Plugin.Injector;
+using NMaven.Plugin.Injector.Impl;
+
+namespace NMaven.Plugin
+{
+ /// <summary>
+ /// Base class for Mojos.
+ /// </summary>
+ public abstract class AbstractMojo : MarshalByRefObject
+    {
+        public abstract void Execute();
+        
+        public abstract Type GetMojoImplementationType();
+              
+        /// <summary>
+        /// Injects values into fields of the child class using information from the specified
+        /// configuration file.
+        /// </summary>
+        /// <param name="configurationFile">The file that contains the values used to populate the fields</param>
+        public void InjectFields(String configurationFile)
+        {
+ XmlTextReader reader =
+ new XmlTextReader(@configurationFile);
+ FieldInjectorRepository fieldInjectorRepository = new FieldInjectorRepository();
+
+ while(reader.Read() == true)
+ {
+ FieldInfo fieldInfo = GetFieldInfoFor(this.GetMojoImplementationType(), reader.Name);
+ if(fieldInfo != null)
+ {
+ IFieldInjector fieldInjector = fieldInjectorRepository.getFieldInjectorFor(fieldInfo);
+ fieldInjector.Inject(this, fieldInfo, reader.ReadString() );
+ }
+ }        
+        }
+        
+       // public List<JavaClass> CreateJavaClassesForPlugin()
+        
+        private FieldInfo GetFieldInfoFor(Type type, String name)
+        {
+         foreach(FieldInfo field in type.GetFields())
+        {
+            foreach (Attribute attribute in field.GetCustomAttributes(true))
+            {            
+ FieldAttribute fieldAttribute = (FieldAttribute) attribute;
+ if(fieldAttribute.Name.Equals(name))
+ return field;
+            }
+        }
+        return null;
+        }
+    }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs Mon Jun 30 05:54:00 2008
@@ -1,61 +1,61 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-
-namespace NMaven.Plugin
-{
- /// <summary>
- /// Description of ClassAttribute.
- /// </summary>
- [Serializable]
- public sealed class ClassAttribute : Attribute
- {
- private string phase;
-
- private string goal;
-
- public string Phase
- {
- get
- {
- return phase;
- }
-
- set
- {
- this.phase = value;
- }
- }
-
- public string Goal
- {
- get
- {
- return goal;
- }
-
- set
- {
- this.goal = value;
- }
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+
+namespace NMaven.Plugin
+{
+ /// <summary>
+ /// Description of ClassAttribute.
+ /// </summary>
+ [Serializable]
+ public sealed class ClassAttribute : Attribute
+ {
+ private string phase;
+
+ private string goal;
+
+ public string Phase
+ {
+ get
+ {
+ return phase;
+ }
+
+ set
+ {
+ this.phase = value;
+ }
+ }
+
+ public string Goal
+ {
+ get
+ {
+ return goal;
+ }
+
+ set
+ {
+ this.goal = value;
+ }
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs Mon Jun 30 05:54:00 2008
@@ -1,75 +1,75 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-
-namespace NMaven.Plugin
-{
- /// <summary>
- /// Description of StringAttribute.
- /// </summary>
- public sealed class FieldAttribute : Attribute
- {
- private string name;
-
- private string expression;
-
- private string type;
-
- public FieldAttribute(string name)
- {
- this.name = name;
- }
-
- public string Type
- {
- get
- {
- return type;
- }
-
- set
- {
- this.type = value;
- }
- }
-
- public string Expression
- {
- get
- {
- return expression;
- }
-
- set
- {
- this.expression = value;
- }
- }
-
- public string Name
- {
- get
- {
- return name;
- }
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+
+namespace NMaven.Plugin
+{
+ /// <summary>
+ /// Description of StringAttribute.
+ /// </summary>
+ public sealed class FieldAttribute : Attribute
+ {
+ private string name;
+
+ private string expression;
+
+ private string type;
+
+ public FieldAttribute(string name)
+ {
+ this.name = name;
+ }
+
+ public string Type
+ {
+ get
+ {
+ return type;
+ }
+
+ set
+ {
+ this.type = value;
+ }
+ }
+
+ public string Expression
+ {
+ get
+ {
+ return expression;
+ }
+
+ set
+ {
+ this.expression = value;
+ }
+ }
+
+ public string Name
+ {
+ get
+ {
+ return name;
+ }
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldInjectorAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldInjectorAttribute.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldInjectorAttribute.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldInjectorAttribute.cs Mon Jun 30 05:54:00 2008
@@ -1,45 +1,45 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-
-namespace NMaven.Plugin
-{
- /// <summary>
- /// Description of FieldInjectorAttribute.
- /// </summary>
- public sealed class FieldInjectorAttribute : Attribute
- {
- private string targetClassName;
-
- public FieldInjectorAttribute(string targetClassName)
- {
- this.targetClassName = targetClassName;
- }
-
- public string TargetClassName
- {
- get
- {
- return targetClassName;
- }
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+
+namespace NMaven.Plugin
+{
+ /// <summary>
+ /// Description of FieldInjectorAttribute.
+ /// </summary>
+ public sealed class FieldInjectorAttribute : Attribute
+ {
+ private string targetClassName;
+
+ public FieldInjectorAttribute(string targetClassName)
+ {
+ this.targetClassName = targetClassName;
+ }
+
+ public string TargetClassName
+ {
+ get
+ {
+ return targetClassName;
+ }
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldInjectorAttribute.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/Code.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/Code.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/Code.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/Code.cs Mon Jun 30 05:54:00 2008
@@ -1,52 +1,52 @@
-#region Apache License, Version 2.0
-//
-// 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.
-//
-#endregion
-using System;
-using System.Collections.Generic;
-
-namespace NMaven.Plugin.Generator
-{
- /// <summary>
- /// Description of Code.
- /// </summary>
- [Serializable]
- public class Code
- {
- private List<String> codeLines = new List<String>();
-
- public Code()
- {
- }
-
- public Code AddLine(String line)
- {
- codeLines.Add(line);
- return this;
- }
-
- public List<String> CodeLines
- {
- get
- {
- return codeLines;
- }
- }
- }
-}
+#region Apache License, Version 2.0
+//
+// 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.
+//
+#endregion
+using System;
+using System.Collections.Generic;
+
+namespace NMaven.Plugin.Generator
+{
+ /// <summary>
+ /// Description of Code.
+ /// </summary>
+ [Serializable]
+ public class Code
+ {
+ private List<String> codeLines = new List<String>();
+
+ public Code()
+ {
+ }
+
+ public Code AddLine(String line)
+ {
+ codeLines.Add(line);
+ return this;
+ }
+
+ public List<String> CodeLines
+ {
+ get
+ {
+ return codeLines;
+ }
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/Code.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/ImportPackage.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/ImportPackage.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/ImportPackage.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/ImportPackage.cs Mon Jun 30 05:54:00 2008
@@ -1,52 +1,52 @@
-#region Apache License, Version 2.0
-//
-// 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