svn commit: r672753 [2/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 [2/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.IDE/src/main/csharp/NMaven/IDE/Controls/MavenBuildControl.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Controls/MavenBuildControl.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Controls/MavenBuildControl.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Controls/MavenBuildControl.cs Mon Jun 30 05:54:00 2008
@@ -1,380 +1,380 @@
-#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.Diagnostics;
-using System.Drawing;
-using System.IO;
-using System.Net;
-using System.Windows.Forms;
-
-using NMaven.Artifact;
-using NMaven.IDE;
-using NMaven.IDE.Impl;
-using NMaven.Service;
-using NMaven.IDE.Commands;
-using NMaven.Logging;
-
-using EnvDTE80;
-using EnvDTE;
-
-namespace NMaven.IDE.Controls
-{
- /// <summary>
- /// Description of MavenBuildControl.
- /// </summary>
- public class MavenBuildControl : UserControl
- {
- private IIdeContext ideContext;
-
- private int loggerPort;
-
- private ContextMenu contextmenu = new ContextMenu();
-
-        private TreeView treeView;
-
-        private Logger logger;
-
-        private ToolStrip toolStrip1;
-        private ToolStripDropDownButton toolStripDropDownButton1;
-        private ToolStripMenuItem serverToolStripMenuItem;
-        private ToolStripMenuItem startToolStripMenuItem;
-        private ToolStripMenuItem stopToolStripMenuItem;
-        private ToolStripMenuItem refreshSolutionToolStripMenuItem;
-
-        private DTE2 applicationObject;
-
-        private FileInfo warFileInfo;
-
-        public event EventHandler ClearOutputWindow;
-
-        public event EventHandler FocusOutputWindow;
-
- public MavenBuildControl()
- {
- }
-
- public void Init(FileInfo warFileInfo, Logger logger, int loggerPort, Size treeSize,
-            DTE2 applicationObject)
- {
- this.loggerPort = loggerPort;
-            this.logger = logger;
-            this.applicationObject = applicationObject;
-            this.warFileInfo = warFileInfo;
-
- ideContext = new IdeContextImpl();
- IIdeConfiguration configuration = Factory.CreateIdeConfiguration();
- configuration.Logger = logger;
- configuration.SocketLoggerPort = loggerPort;
- ideContext.Init(configuration);
-            try
-            {
-                InitializeComponent();
-            }
-            catch (Exception e)
-            {
-                logger.Log(Level.INFO, "Failed to initialize NMaven Build Control: Message = " + e.Message);
-            }
- }
-
- private TreeNode CreateTreeNodeFor(MavenProject mavenProject)
- {
- TreeNode rootNode = new TreeNode();
-            rootNode.Text = mavenProject.artifactId;
-
-            if(mavenProject.mavenProjects != null)
-            {
-            foreach(MavenProject childMavenProject in mavenProject.mavenProjects)
-            {
-             TreeNode childNode = CreateTreeNodeFor(childMavenProject);
-             rootNode.Nodes.Add(childNode);
-            }
-            }
-            rootNode.Tag = mavenProject;
-            return rootNode;
- }
-
- private MenuItem CreateMenuItemFor(String text, String goal, String pomFile)
- {
-                MenuItem menuItem = new MenuItem();
-                menuItem.Text = text;
-                BuildCommand buildCommand = new BuildCommand();
-                buildCommand.Init(ideContext);
-                buildCommand.Goal = goal;
-                buildCommand.PomFile = pomFile;
-                buildCommand.LoggerPort = loggerPort;
-                menuItem.Click += new EventHandler(OnFocusOutputWindow);
-                menuItem.Click += new EventHandler(OnClearOutputWindow);
- menuItem.Click += new EventHandler(buildCommand.Execute);
- return menuItem;
- }
-
- private void OnClearOutputWindow(object sender, EventArgs args)
- {
- if(ClearOutputWindow != null)
- {
- ClearOutputWindow(this, args);
- }
- }
-
- private void OnFocusOutputWindow(object sender, EventArgs args)
- {
- if(FocusOutputWindow != null)
- {
- FocusOutputWindow(this, args);
- }
- }
-
-        private void treeView_MouseUp(object sender, MouseEventArgs e)
-        {
-            if (e.Button == MouseButtons.Right)
-            {
-                Point point = new Point(e.X, e.Y);
-                TreeNode node = treeView.GetNodeAt(point);
-                if (node == null)
-                {
-                    logger.Log(Level.INFO, "Unable to obtain reference to project - build options disabled: Coordinates: X = "
-                        + e.X + ", Y = " + e.Y);
-                    return;
-                }
-
-                if (node.Tag == null)
-                {
-                    logger.Log(Level.INFO, "Please open and load a solution file project.");
-                    return;
-                }
-
-                MavenProject mavenProject = (MavenProject) node.Tag;
-
-                contextmenu.MenuItems.Clear();
-                contextmenu.MenuItems.Add(CreateMenuItemFor("Compile Project", "compile", mavenProject.pomPath));
-                contextmenu.MenuItems.Add(CreateMenuItemFor("Clean Project", "clean", mavenProject.pomPath));
-                contextmenu.MenuItems.Add(CreateMenuItemFor("Test Project", "test", mavenProject.pomPath));
-                contextmenu.MenuItems.Add(CreateMenuItemFor("Install Project", "install", mavenProject.pomPath));
-
-                contextmenu.Show(this, PointToClient(treeView.PointToScreen(point)));
-            }
-        }
-
-        private void InitializeComponent()
-        {
-            System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("No Solution Loaded");
-            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
-            this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
-            this.serverToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.startToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.stopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.refreshSolutionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.treeView = new System.Windows.Forms.TreeView();
-            this.toolStrip1.SuspendLayout();
-            this.SuspendLayout();
-            //
-            // toolStrip1
-            //
-            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
-            this.toolStripDropDownButton1});
-            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
-            this.toolStrip1.Name = "toolStrip1";
-            this.toolStrip1.Size = new System.Drawing.Size(319, 25);
-            this.toolStrip1.TabIndex = 1;
-            this.toolStrip1.Text = "toolStrip1";
-            //
-            // toolStripDropDownButton1
-            //
-            this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
-            this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
-            this.serverToolStripMenuItem,
-            this.refreshSolutionToolStripMenuItem});
-            this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
-            this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
-            this.toolStripDropDownButton1.Size = new System.Drawing.Size(70, 22);
-            this.toolStripDropDownButton1.Text = "Options";
-            //
-            // serverToolStripMenuItem
-            //
-            this.serverToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
-            this.startToolStripMenuItem,
-            this.stopToolStripMenuItem});
-            this.serverToolStripMenuItem.Name = "serverToolStripMenuItem";
-            this.serverToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
-            this.serverToolStripMenuItem.Text = "Server";
-            //
-            // startToolStripMenuItem
-            //
-            this.startToolStripMenuItem.Name = "startToolStripMenuItem";
-            this.startToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
-            this.startToolStripMenuItem.Text = "Start";
-            this.startToolStripMenuItem.Click += new System.EventHandler(this.startToolStripMenuItem_Click);
-            //
-            // stopToolStripMenuItem
-            //
-            this.stopToolStripMenuItem.Name = "stopToolStripMenuItem";
-            this.stopToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
-            this.stopToolStripMenuItem.Text = "Stop";
-            this.stopToolStripMenuItem.Click += new System.EventHandler(this.stopToolStripMenuItem_Click);
-            //
-            // refreshSolutionToolStripMenuItem
-            //
-            this.refreshSolutionToolStripMenuItem.Name = "refreshSolutionToolStripMenuItem";
-            this.refreshSolutionToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
-            this.refreshSolutionToolStripMenuItem.Text = "Load Solution";
-            this.refreshSolutionToolStripMenuItem.Click += new System.EventHandler(this.refreshSolutionToolStripMenuItem_Click);
-            //
-            // treeView
-            //
-            this.treeView.Location = new System.Drawing.Point(0, 40);
-            this.treeView.Name = "treeView";
-            treeNode1.Name = "";
-            treeNode1.Text = "No Solution Loaded";
-            this.treeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
-            treeNode1});
-            this.treeView.Size = new System.Drawing.Size(316, 316);
-            this.treeView.TabIndex = 2;
-            this.treeView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseUp);
-            //
-            // MavenBuildControl
-            //
-            this.Controls.Add(this.treeView);
-            this.Controls.Add(this.toolStrip1);
-            this.Name = "MavenBuildControl";
-            this.Size = new System.Drawing.Size(319, 359);
-            this.toolStrip1.ResumeLayout(false);
-            this.toolStrip1.PerformLayout();
-            this.ResumeLayout(false);
-            this.PerformLayout();
-
-        }
-
-        private void toolStripButton1_Click(object sender, EventArgs e)
-        {
-            if (Controls.Contains(treeView))
-            {
-                treeView.Nodes.Clear();
-            }
-            logger.Log(Level.INFO, "Solution " + applicationObject.Solution.FullName);
-
-            FileInfo fileInfo = new FileInfo(applicationObject.Solution.FullName);
-            List<MavenProject> mavenProjects = ideContext.GetMavenProjectsFrom(fileInfo.Directory);
-            foreach (MavenProject mavenProject in mavenProjects)
-            {
-                logger.Log(Level.INFO, mavenProject.artifactId);
-                treeView.Nodes.Add(CreateTreeNodeFor(mavenProject));
-            }
-        }
-
-        private void stopToolStripMenuItem_Click(object sender, EventArgs e)
-        {
-            WebClient webClient = new WebClient();
-            try
-            {
-                webClient.DownloadData("http://localhost:8080?shutdown=true");
-            }
-            catch (WebException ex)
-            {
-
-            }
-            logger.Log(Level.INFO, "Shutdown Maven embedder");
-        }
-
-        private void startToolStripMenuItem_Click(object sender, EventArgs e)
-        {
-            WebClient webClient = new WebClient();
-            byte[] data = null;
-            try
-            {
-                data = webClient.DownloadData("http://localhost:8080/dotnet-service-embedder");
-            }
-            catch (WebException ex)
-            {
-                logger.Log(Level.INFO, "Unable to contact maven embedder. Starting new instance: Message = " + ex.Message);
-            }
-            if (data != null && data.Length > 0)
-            {
-                logger.Log(Level.INFO, "Maven embedder already Started.");
-                return;
-            }
-            logger.Log(Level.INFO, "Executing external command plugin: Command = " + @"mvn org.apache.maven.dotnet.plugins:maven-embedder-plugin:start -Dport=8080 -DwarFile=""" + warFileInfo.FullName + @"""");
-
-            ProcessStartInfo processStartInfo =
-                new ProcessStartInfo("mvn", @"org.apache.maven.dotnet.plugins:maven-embedder-plugin:start -Dport=8080 -DwarFile=""" + warFileInfo.FullName + @"""");
-            processStartInfo.UseShellExecute = true;
-            processStartInfo.WindowStyle = ProcessWindowStyle.Hidden;
-            System.Diagnostics.Process.Start(processStartInfo);
-        }
-
-        private void refreshSolutionToolStripMenuItem_Click(object sender, EventArgs e)
-        {
-            logger.Log(Level.INFO, "Solution = " + applicationObject.Solution);
-            if (applicationObject.Solution == null)
-            {
-                logger.Log(Level.INFO, "Please open a solution file project before loading.");
-                return;
-            }
-
-            if (Controls.Contains(treeView))
-            {
-                treeView.Nodes.Clear();
-            }
-
-            logger.Log(Level.INFO, "Loading Solution: Name = " + applicationObject.Solution.FullName);
-            FileInfo fileInfo = null;
-            try
-            {
-                fileInfo = new FileInfo(applicationObject.Solution.FullName);
-            }
-            catch(ArgumentException ex)
-            {
-                logger.Log(Level.INFO, "Invalid Solution");
-                return;
-            }
-            
-            if (!fileInfo.Exists)
-            {
-                logger.Log(Level.INFO, "Solution not found: Name = " + applicationObject.Solution.FullName);
-                return;
-            }
-
-            List<MavenProject> mavenProjects = null;
-            try
-            {
-                mavenProjects = ideContext.GetMavenProjectsFrom(fileInfo.Directory);
-            }
-            catch (IOException ex)
-            {
-                logger.Log(Level.INFO, "Unable to load solution. Try starting the server: Message = "
-                    + ex.Message);
-                return;
-            }
-            catch (WebException ex)
-            {
-                logger.Log(Level.INFO, "Unable to load solution. Try starting the server: Message = "
-                    + ex.Message);
-                return;
-            }
-
-            foreach (MavenProject mavenProject in mavenProjects)
-            {
-                treeView.Nodes.Add(CreateTreeNodeFor(mavenProject));
-            }
-        }
- }
-}
+#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.Diagnostics;
+using System.Drawing;
+using System.IO;
+using System.Net;
+using System.Windows.Forms;
+
+using NMaven.Artifact;
+using NMaven.IDE;
+using NMaven.IDE.Impl;
+using NMaven.Service;
+using NMaven.IDE.Commands;
+using NMaven.Logging;
+
+using EnvDTE80;
+using EnvDTE;
+
+namespace NMaven.IDE.Controls
+{
+ /// <summary>
+ /// Description of MavenBuildControl.
+ /// </summary>
+ public class MavenBuildControl : UserControl
+ {
+ private IIdeContext ideContext;
+
+ private int loggerPort;
+
+ private ContextMenu contextmenu = new ContextMenu();
+
+        private TreeView treeView;
+
+        private Logger logger;
+
+        private ToolStrip toolStrip1;
+        private ToolStripDropDownButton toolStripDropDownButton1;
+        private ToolStripMenuItem serverToolStripMenuItem;
+        private ToolStripMenuItem startToolStripMenuItem;
+        private ToolStripMenuItem stopToolStripMenuItem;
+        private ToolStripMenuItem refreshSolutionToolStripMenuItem;
+
+        private DTE2 applicationObject;
+
+        private FileInfo warFileInfo;
+
+        public event EventHandler ClearOutputWindow;
+
+        public event EventHandler FocusOutputWindow;
+
+ public MavenBuildControl()
+ {
+ }
+
+ public void Init(FileInfo warFileInfo, Logger logger, int loggerPort, Size treeSize,
+            DTE2 applicationObject)
+ {
+ this.loggerPort = loggerPort;
+            this.logger = logger;
+            this.applicationObject = applicationObject;
+            this.warFileInfo = warFileInfo;
+
+ ideContext = new IdeContextImpl();
+ IIdeConfiguration configuration = Factory.CreateIdeConfiguration();
+ configuration.Logger = logger;
+ configuration.SocketLoggerPort = loggerPort;
+ ideContext.Init(configuration);
+            try
+            {
+                InitializeComponent();
+            }
+            catch (Exception e)
+            {
+                logger.Log(Level.INFO, "Failed to initialize NMaven Build Control: Message = " + e.Message);
+            }
+ }
+
+ private TreeNode CreateTreeNodeFor(MavenProject mavenProject)
+ {
+ TreeNode rootNode = new TreeNode();
+            rootNode.Text = mavenProject.artifactId;
+
+            if(mavenProject.mavenProjects != null)
+            {
+            foreach(MavenProject childMavenProject in mavenProject.mavenProjects)
+            {
+             TreeNode childNode = CreateTreeNodeFor(childMavenProject);
+             rootNode.Nodes.Add(childNode);
+            }
+            }
+            rootNode.Tag = mavenProject;
+            return rootNode;
+ }
+
+ private MenuItem CreateMenuItemFor(String text, String goal, String pomFile)
+ {
+                MenuItem menuItem = new MenuItem();
+                menuItem.Text = text;
+                BuildCommand buildCommand = new BuildCommand();
+                buildCommand.Init(ideContext);
+                buildCommand.Goal = goal;
+                buildCommand.PomFile = pomFile;
+                buildCommand.LoggerPort = loggerPort;
+                menuItem.Click += new EventHandler(OnFocusOutputWindow);
+                menuItem.Click += new EventHandler(OnClearOutputWindow);
+ menuItem.Click += new EventHandler(buildCommand.Execute);
+ return menuItem;
+ }
+
+ private void OnClearOutputWindow(object sender, EventArgs args)
+ {
+ if(ClearOutputWindow != null)
+ {
+ ClearOutputWindow(this, args);
+ }
+ }
+
+ private void OnFocusOutputWindow(object sender, EventArgs args)
+ {
+ if(FocusOutputWindow != null)
+ {
+ FocusOutputWindow(this, args);
+ }
+ }
+
+        private void treeView_MouseUp(object sender, MouseEventArgs e)
+        {
+            if (e.Button == MouseButtons.Right)
+            {
+                Point point = new Point(e.X, e.Y);
+                TreeNode node = treeView.GetNodeAt(point);
+                if (node == null)
+                {
+                    logger.Log(Level.INFO, "Unable to obtain reference to project - build options disabled: Coordinates: X = "
+                        + e.X + ", Y = " + e.Y);
+                    return;
+                }
+
+                if (node.Tag == null)
+                {
+                    logger.Log(Level.INFO, "Please open and load a solution file project.");
+                    return;
+                }
+
+                MavenProject mavenProject = (MavenProject) node.Tag;
+
+                contextmenu.MenuItems.Clear();
+                contextmenu.MenuItems.Add(CreateMenuItemFor("Compile Project", "compile", mavenProject.pomPath));
+                contextmenu.MenuItems.Add(CreateMenuItemFor("Clean Project", "clean", mavenProject.pomPath));
+                contextmenu.MenuItems.Add(CreateMenuItemFor("Test Project", "test", mavenProject.pomPath));
+                contextmenu.MenuItems.Add(CreateMenuItemFor("Install Project", "install", mavenProject.pomPath));
+
+                contextmenu.Show(this, PointToClient(treeView.PointToScreen(point)));
+            }
+        }
+
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("No Solution Loaded");
+            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
+            this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
+            this.serverToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.startToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.stopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.refreshSolutionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.treeView = new System.Windows.Forms.TreeView();
+            this.toolStrip1.SuspendLayout();
+            this.SuspendLayout();
+            //
+            // toolStrip1
+            //
+            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.toolStripDropDownButton1});
+            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
+            this.toolStrip1.Name = "toolStrip1";
+            this.toolStrip1.Size = new System.Drawing.Size(319, 25);
+            this.toolStrip1.TabIndex = 1;
+            this.toolStrip1.Text = "toolStrip1";
+            //
+            // toolStripDropDownButton1
+            //
+            this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+            this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.serverToolStripMenuItem,
+            this.refreshSolutionToolStripMenuItem});
+            this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
+            this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
+            this.toolStripDropDownButton1.Size = new System.Drawing.Size(70, 22);
+            this.toolStripDropDownButton1.Text = "Options";
+            //
+            // serverToolStripMenuItem
+            //
+            this.serverToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.startToolStripMenuItem,
+            this.stopToolStripMenuItem});
+            this.serverToolStripMenuItem.Name = "serverToolStripMenuItem";
+            this.serverToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
+            this.serverToolStripMenuItem.Text = "Server";
+            //
+            // startToolStripMenuItem
+            //
+            this.startToolStripMenuItem.Name = "startToolStripMenuItem";
+            this.startToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
+            this.startToolStripMenuItem.Text = "Start";
+            this.startToolStripMenuItem.Click += new System.EventHandler(this.startToolStripMenuItem_Click);
+            //
+            // stopToolStripMenuItem
+            //
+            this.stopToolStripMenuItem.Name = "stopToolStripMenuItem";
+            this.stopToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
+            this.stopToolStripMenuItem.Text = "Stop";
+            this.stopToolStripMenuItem.Click += new System.EventHandler(this.stopToolStripMenuItem_Click);
+            //
+            // refreshSolutionToolStripMenuItem
+            //
+            this.refreshSolutionToolStripMenuItem.Name = "refreshSolutionToolStripMenuItem";
+            this.refreshSolutionToolStripMenuItem.Size = new System.Drawing.Size(176, 22);
+            this.refreshSolutionToolStripMenuItem.Text = "Load Solution";
+            this.refreshSolutionToolStripMenuItem.Click += new System.EventHandler(this.refreshSolutionToolStripMenuItem_Click);
+            //
+            // treeView
+            //
+            this.treeView.Location = new System.Drawing.Point(0, 40);
+            this.treeView.Name = "treeView";
+            treeNode1.Name = "";
+            treeNode1.Text = "No Solution Loaded";
+            this.treeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
+            treeNode1});
+            this.treeView.Size = new System.Drawing.Size(316, 316);
+            this.treeView.TabIndex = 2;
+            this.treeView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseUp);
+            //
+            // MavenBuildControl
+            //
+            this.Controls.Add(this.treeView);
+            this.Controls.Add(this.toolStrip1);
+            this.Name = "MavenBuildControl";
+            this.Size = new System.Drawing.Size(319, 359);
+            this.toolStrip1.ResumeLayout(false);
+            this.toolStrip1.PerformLayout();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        private void toolStripButton1_Click(object sender, EventArgs e)
+        {
+            if (Controls.Contains(treeView))
+            {
+                treeView.Nodes.Clear();
+            }
+            logger.Log(Level.INFO, "Solution " + applicationObject.Solution.FullName);
+
+            FileInfo fileInfo = new FileInfo(applicationObject.Solution.FullName);
+            List<MavenProject> mavenProjects = ideContext.GetMavenProjectsFrom(fileInfo.Directory);
+            foreach (MavenProject mavenProject in mavenProjects)
+            {
+                logger.Log(Level.INFO, mavenProject.artifactId);
+                treeView.Nodes.Add(CreateTreeNodeFor(mavenProject));
+            }
+        }
+
+        private void stopToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            WebClient webClient = new WebClient();
+            try
+            {
+                webClient.DownloadData("http://localhost:8080?shutdown=true");
+            }
+            catch (WebException ex)
+            {
+
+            }
+            logger.Log(Level.INFO, "Shutdown Maven embedder");
+        }
+
+        private void startToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            WebClient webClient = new WebClient();
+            byte[] data = null;
+            try
+            {
+                data = webClient.DownloadData("http://localhost:8080/dotnet-service-embedder");
+            }
+            catch (WebException ex)
+            {
+                logger.Log(Level.INFO, "Unable to contact maven embedder. Starting new instance: Message = " + ex.Message);
+            }
+            if (data != null && data.Length > 0)
+            {
+                logger.Log(Level.INFO, "Maven embedder already Started.");
+                return;
+            }
+            logger.Log(Level.INFO, "Executing external command plugin: Command = " + @"mvn org.apache.maven.dotnet.plugins:maven-embedder-plugin:start -Dport=8080 -DwarFile=""" + warFileInfo.FullName + @"""");
+
+            ProcessStartInfo processStartInfo =
+                new ProcessStartInfo("mvn", @"org.apache.maven.dotnet.plugins:maven-embedder-plugin:start -Dport=8080 -DwarFile=""" + warFileInfo.FullName + @"""");
+            processStartInfo.UseShellExecute = true;
+            processStartInfo.WindowStyle = ProcessWindowStyle.Hidden;
+            System.Diagnostics.Process.Start(processStartInfo);
+        }
+
+        private void refreshSolutionToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            logger.Log(Level.INFO, "Solution = " + applicationObject.Solution);
+            if (applicationObject.Solution == null)
+            {
+                logger.Log(Level.INFO, "Please open a solution file project before loading.");
+                return;
+            }
+
+            if (Controls.Contains(treeView))
+            {
+                treeView.Nodes.Clear();
+            }
+
+            logger.Log(Level.INFO, "Loading Solution: Name = " + applicationObject.Solution.FullName);
+            FileInfo fileInfo = null;
+            try
+            {
+                fileInfo = new FileInfo(applicationObject.Solution.FullName);
+            }
+            catch(ArgumentException ex)
+            {
+                logger.Log(Level.INFO, "Invalid Solution");
+                return;
+            }
+            
+            if (!fileInfo.Exists)
+            {
+                logger.Log(Level.INFO, "Solution not found: Name = " + applicationObject.Solution.FullName);
+                return;
+            }
+
+            List<MavenProject> mavenProjects = null;
+            try
+            {
+                mavenProjects = ideContext.GetMavenProjectsFrom(fileInfo.Directory);
+            }
+            catch (IOException ex)
+            {
+                logger.Log(Level.INFO, "Unable to load solution. Try starting the server: Message = "
+                    + ex.Message);
+                return;
+            }
+            catch (WebException ex)
+            {
+                logger.Log(Level.INFO, "Unable to load solution. Try starting the server: Message = "
+                    + ex.Message);
+                return;
+            }
+
+            foreach (MavenProject mavenProject in mavenProjects)
+            {
+                treeView.Nodes.Add(CreateTreeNodeFor(mavenProject));
+            }
+        }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Factory.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Factory.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Factory.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Factory.cs Mon Jun 30 05:54:00 2008
@@ -1,71 +1,71 @@
-#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 NMaven.Logging;
-
-namespace NMaven.IDE
-{
- /// <summary>
- /// Description of Factory.
- /// </summary>
- public static class Factory
- {
-
- public static IIdeConfiguration CreateIdeConfiguration()
- {
- return new IdeConfigurationImpl();
- }
-
- private class IdeConfigurationImpl : IIdeConfiguration
- {
- private Logger logger;
-
- private int socketLoggerPort;
-
- public Logger Logger
- {
- get
- {
- return logger;
- }
-
- set
- {
- logger = value;
- }
- }
-
- public int SocketLoggerPort
- {
- get
- {
- return socketLoggerPort;
- }
-
- set
- {
- socketLoggerPort = 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;
+using NMaven.Logging;
+
+namespace NMaven.IDE
+{
+ /// <summary>
+ /// Description of Factory.
+ /// </summary>
+ public static class Factory
+ {
+
+ public static IIdeConfiguration CreateIdeConfiguration()
+ {
+ return new IdeConfigurationImpl();
+ }
+
+ private class IdeConfigurationImpl : IIdeConfiguration
+ {
+ private Logger logger;
+
+ private int socketLoggerPort;
+
+ public Logger Logger
+ {
+ get
+ {
+ return logger;
+ }
+
+ set
+ {
+ logger = value;
+ }
+ }
+
+ public int SocketLoggerPort
+ {
+ get
+ {
+ return socketLoggerPort;
+ }
+
+ set
+ {
+ socketLoggerPort = value;
+ }
+ }
+ }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeConfiguration.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeConfiguration.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeConfiguration.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeConfiguration.cs Mon Jun 30 05:54:00 2008
@@ -1,44 +1,44 @@
-#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 NMaven.Logging;
-
-namespace NMaven.IDE
-{
- /// <summary>
- /// Description of IIdeConfiguration.
- /// </summary>
- public interface IIdeConfiguration
- {
- int SocketLoggerPort
- {
- get;
- set;
- }
-
- Logger Logger
- {
- get;
- set;
- }
- }
-}
+#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 NMaven.Logging;
+
+namespace NMaven.IDE
+{
+ /// <summary>
+ /// Description of IIdeConfiguration.
+ /// </summary>
+ public interface IIdeConfiguration
+ {
+ int SocketLoggerPort
+ {
+ get;
+ set;
+ }
+
+ Logger Logger
+ {
+ get;
+ set;
+ }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeContext.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeContext.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeContext.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/IIdeContext.cs Mon Jun 30 05:54:00 2008
@@ -1,47 +1,47 @@
-#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 NMaven.Service;
-using NMaven.Logging;
-
-namespace NMaven.IDE
-{
- /// <summary>
- /// Description of IIdeContext.
- /// </summary>
- public interface IIdeContext
- {
- void Init(IIdeConfiguration configuration);
-
- void Dispose();
-
- Logger GetLogger();
-
-        List<MavenProject> GetMavenProjectsFrom(DirectoryInfo buildDirectory);
-
- void Build(MavenExecutionRequest request);
-
- }
-}
+#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 NMaven.Service;
+using NMaven.Logging;
+
+namespace NMaven.IDE
+{
+ /// <summary>
+ /// Description of IIdeContext.
+ /// </summary>
+ public interface IIdeContext
+ {
+ void Init(IIdeConfiguration configuration);
+
+ void Dispose();
+
+ Logger GetLogger();
+
+        List<MavenProject> GetMavenProjectsFrom(DirectoryInfo buildDirectory);
+
+ void Build(MavenExecutionRequest request);
+
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Impl/IdeContextImpl.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Impl/IdeContextImpl.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Impl/IdeContextImpl.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/Impl/IdeContextImpl.cs Mon Jun 30 05:54:00 2008
@@ -1,131 +1,131 @@
-#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.Net;
-using System.Net.Sockets;
-using System.Text;
-using System.Threading;
-using System.Web.Services.Protocols;
-
-using NMaven.Logging;
-using NMaven.IDE;
-using NMaven.Service;
-
-
-namespace NMaven.IDE.Impl
-{
- /// <summary>
- /// Description of IdeContextImpl.
- /// </summary>
- public class IdeContextImpl : IIdeContext
- {
- private Logger logger;
-
- private Socket socket;
-
- private IIdeConfiguration configuration;
-
- public IdeContextImpl()
- {
- }
-
- public void Build(MavenExecutionRequest request)
- {  
- configuration.SocketLoggerPort = FindOpenPort();
-            socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
-            socket.Bind(new IPEndPoint(IPAddress.Any, configuration.SocketLoggerPort));
-            socket.Listen(10);
-          
- Thread thread = new Thread(new ThreadStart(WriteBuildResults));
- thread.Start();
-
-            request.loggerPort = configuration.SocketLoggerPort;
-            request.loggerPortSpecified = true;
-
-            MavenEmbedderService service = new MavenEmbedderService();
- service.execute(request);
- }
-
- public List<MavenProject> GetMavenProjectsFrom(DirectoryInfo buildDirectory)
- {
- MavenEmbedderService service = new MavenEmbedderService();
-            return new List<MavenProject>(service.getMavenProjectsFor(buildDirectory.FullName));
- }
-
- public void Init(IIdeConfiguration configuration)
- {
- this.configuration = configuration;
- this.logger = configuration.Logger;
- }
-
- public void Dispose()
- {
- //socket.Close();
- }
-
- public Logger GetLogger()
- {
- return logger;
- }
-
- private int FindOpenPort()
- {
- for(int i = 1; i < 10; i++)
- {
- int port = (new Random()).Next(1025, 65536);
- try {
-            Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
-            socket.Bind(new IPEndPoint(IPAddress.Any, port));
-            socket.Close();
-            return port;
- }
- catch (SocketException e)
- {
- }
- }
- return -1;
- }
-                        
-        private void WriteBuildResults()
-        {
-            try
-            {
-                Socket client = socket.Accept();
-                NetworkStream networkStream = new NetworkStream(client);
-                StreamReader streamReader = new StreamReader(new NetworkStream(client));
-                while (!streamReader.EndOfStream)
-                {
-                    logger.Log(Level.INFO, String.Concat(streamReader.ReadLine(), Environment.NewLine));
-
-                }
-                streamReader.Close();
-                client.Close();    
-            }
-            catch (IOException ex)
-            {
-                logger.Log(Level.INFO, "Problem reading socket logger: Message = " + ex.Message);
-            }  
-        }
- }
-}
+#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.Net;
+using System.Net.Sockets;
+using System.Text;
+using System.Threading;
+using System.Web.Services.Protocols;
+
+using NMaven.Logging;
+using NMaven.IDE;
+using NMaven.Service;
+
+
+namespace NMaven.IDE.Impl
+{
+ /// <summary>
+ /// Description of IdeContextImpl.
+ /// </summary>
+ public class IdeContextImpl : IIdeContext
+ {
+ private Logger logger;
+
+ private Socket socket;
+
+ private IIdeConfiguration configuration;
+
+ public IdeContextImpl()
+ {
+ }
+
+ public void Build(MavenExecutionRequest request)
+ {  
+ configuration.SocketLoggerPort = FindOpenPort();
+            socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
+            socket.Bind(new IPEndPoint(IPAddress.Any, configuration.SocketLoggerPort));
+            socket.Listen(10);
+          
+ Thread thread = new Thread(new ThreadStart(WriteBuildResults));
+ thread.Start();
+
+            request.loggerPort = configuration.SocketLoggerPort;
+            request.loggerPortSpecified = true;
+
+            MavenEmbedderService service = new MavenEmbedderService();
+ service.execute(request);
+ }
+
+ public List<MavenProject> GetMavenProjectsFrom(DirectoryInfo buildDirectory)
+ {
+ MavenEmbedderService service = new MavenEmbedderService();
+            return new List<MavenProject>(service.getMavenProjectsFor(buildDirectory.FullName));
+ }
+
+ public void Init(IIdeConfiguration configuration)
+ {
+ this.configuration = configuration;
+ this.logger = configuration.Logger;
+ }
+
+ public void Dispose()
+ {
+ //socket.Close();
+ }
+
+ public Logger GetLogger()
+ {
+ return logger;
+ }
+
+ private int FindOpenPort()
+ {
+ for(int i = 1; i < 10; i++)
+ {
+ int port = (new Random()).Next(1025, 65536);
+ try {
+            Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
+            socket.Bind(new IPEndPoint(IPAddress.Any, port));
+            socket.Close();
+            return port;
+ }
+ catch (SocketException e)
+ {
+ }
+ }
+ return -1;
+ }
+                        
+        private void WriteBuildResults()
+        {
+            try
+            {
+                Socket client = socket.Accept();
+                NetworkStream networkStream = new NetworkStream(client);
+                StreamReader streamReader = new StreamReader(new NetworkStream(client));
+                while (!streamReader.EndOfStream)
+                {
+                    logger.Log(Level.INFO, String.Concat(streamReader.ReadLine(), Environment.NewLine));
+
+                }
+                streamReader.Close();
+                client.Close();    
+            }
+            catch (IOException ex)
+            {
+                logger.Log(Level.INFO, "Problem reading socket logger: Message = " + ex.Message);
+            }  
+        }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.Designer.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.Designer.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.Designer.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.Designer.cs Mon Jun 30 05:54:00 2008
@@ -1,60 +1,60 @@
-#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
-
-namespace NMaven.IDE.View
-{
- partial class MainForm : System.Windows.Forms.Form
- {
- /// <summary>
- /// Designer variable used to keep track of non-visual components.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Disposes resources used by the form.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing) {
- if (components != null) {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- /// <summary>
- /// This method is required for Windows Forms designer support.
- /// Do not change the method contents inside the source code editor. The Forms designer might
- /// not be able to load this method if it was changed manually.
- /// </summary>
- private void InitializeComponent()
- {
- //
- // MainForm
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Text = "WindowsAppTest";
- this.Name = "MainForm";
- }
- }
-}
+#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
+
+namespace NMaven.IDE.View
+{
+ partial class MainForm : System.Windows.Forms.Form
+ {
+ /// <summary>
+ /// Designer variable used to keep track of non-visual components.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Disposes resources used by the form.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing) {
+ if (components != null) {
+ components.Dispose();
+ }
+ }
+ base.Dispose(disposing);
+ }
+
+ /// <summary>
+ /// This method is required for Windows Forms designer support.
+ /// Do not change the method contents inside the source code editor. The Forms designer might
+ /// not be able to load this method if it was changed manually.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ //
+ // MainForm
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Text = "WindowsAppTest";
+ this.Name = "MainForm";
+ }
+ }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.Designer.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.IDE/src/main/csharp/NMaven/IDE/View/MainForm.cs Mon Jun 30 05:54:00 2008
@@ -1,67 +1,67 @@
-#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.Drawing;
-using System.Windows.Forms;
-using NMaven.IDE;
-using NMaven.IDE.Impl;
-using NMaven.Service;
-using NMaven.IDE.Commands;
-using NMaven.IDE.Controls;
-using NMaven.Logging;
-
-namespace NMaven.IDE.View {
- /// <summary>
- /// Description of MainForm.
- /// </summary>
- public partial class MainForm
- {
-
- [STAThread]
- public static void Main(string[] args)
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- MainForm mainForm = new MainForm();
- Size size = new Size(400, 400);
-
- mainForm.Init(Logger.GetLogger("IDE"), size);
- Application.Run(mainForm);
- }
-
- public MainForm()
- {
- }
-
- public void Init(Logger logger, Size size)
- {
- InitializeComponent();
- MavenBuildControl mavenBuildControl = new MavenBuildControl();
- mavenBuildControl.Size = size;
- mavenBuildControl.Init(null, logger, 9099, size, null);
- this.Controls.Add(mavenBuildControl);
- //MavenDependencyUserControl mpuc = new MavenDependencyUserControl();
- //this.Controls.Add(mpuc);
- }
- }
-}
+#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.Drawing;
+using System.Windows.Forms;
+using NMaven.IDE;
+using NMaven.IDE.Impl;
+using NMaven.Service;
+using NMaven.IDE.Commands;
+using NMaven.IDE.Controls;
+using NMaven.Logging;
+
+namespace NMaven.IDE.View {
+ /// <summary>
+ /// Description of MainForm.
+ /// </summary>
+ public partial class MainForm
+ {
+
+ [STAThread]
+ public static void Main(string[] args)
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ MainForm mainForm = new MainForm();
+ Size size = new Size(400, 400);
+
+ mainForm.Init(Logger.GetLogger("IDE"), size);
+ Application.Run(mainForm);
+ }
+
+ public MainForm()
+ {
+ }
+
+ public void Init(Logger logger, Size size)
+ {
+ InitializeComponent();
+ MavenBuildControl mavenBuildControl = new MavenBuildControl();
+ mavenBuildControl.Size = size;
+ mavenBuildControl.Init(null, logger, 9099, size, null);
+ this.Controls.Add(mavenBuildControl);
+ //MavenDependencyUserControl mpuc = new MavenDependencyUserControl();
+ //this.Controls.Add(mpuc);
+ }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/ConsoleHandler.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/ConsoleHandler.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/ConsoleHandler.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/ConsoleHandler.cs Mon Jun 30 05:54:00 2008
@@ -1,59 +1,59 @@
-#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.Runtime.CompilerServices;
-
-namespace NMaven.Logging
-{
-
- public class ConsoleHandler : IHandler
- {
-
- private Level level;
-
- public ConsoleHandler()
- {
- this.level = Level.INFO;
- }
-
- [MethodImpl(MethodImplOptions.Synchronized)]
- public void publish(LogRecord record)
- {
- if(record.GetLevel().GetValue() >= level.GetValue())
- {
- Console.WriteLine(record.GetMessage());
- }
- }
-
- [MethodImpl(MethodImplOptions.Synchronized)]
- public void SetLevel(Level level)
- {
- this.level = level;
- }
-
- [MethodImpl(MethodImplOptions.Synchronized)]
- public Level GetLevel()
- {
- return level;
- }
- }
-}
+#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.Runtime.CompilerServices;
+
+namespace NMaven.Logging
+{
+
+ public class ConsoleHandler : IHandler
+ {
+
+ private Level level;
+
+ public ConsoleHandler()
+ {
+ this.level = Level.INFO;
+ }
+
+ [MethodImpl(MethodImplOptions.Synchronized)]
+ public void publish(LogRecord record)
+ {
+ if(record.GetLevel().GetValue() >= level.GetValue())
+ {
+ Console.WriteLine(record.GetMessage());
+ }
+ }
+
+ [MethodImpl(MethodImplOptions.Synchronized)]
+ public void SetLevel(Level level)
+ {
+ this.level = level;
+ }
+
+ [MethodImpl(MethodImplOptions.Synchronized)]
+ public Level GetLevel()
+ {
+ return level;
+ }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/IHandler.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/IHandler.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/IHandler.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/IHandler.cs Mon Jun 30 05:54:00 2008
@@ -1,37 +1,37 @@
-#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.Logging
-{
- /// <summary>
- /// Description of IHandler.
- /// </summary>
- public interface IHandler
- {
- void publish(LogRecord record);
-
- void SetLevel(Level level);
-
- Level GetLevel();
- }
-}
+#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.Logging
+{
+ /// <summary>
+ /// Description of IHandler.
+ /// </summary>
+ public interface IHandler
+ {
+ void publish(LogRecord record);
+
+ void SetLevel(Level level);
+
+ Level GetLevel();
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/Level.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/Level.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/Level.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/Level.cs Mon Jun 30 05:54:00 2008
@@ -1,59 +1,59 @@
-#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.Logging
-{
- public class Level
- {
-
- public static Level SEVERE = new Level("SEVERE", 10);
-
- public static Level WARNING = new Level("WARNING", 9);
-
- public static Level INFO = new Level("INFO", 8);
-
- public static Level FINE = new Level("FINE", 7);
-
- public static Level DEBUG = new Level("DEBUG", 6);
-
- private String name;
-
- private int value;
-
- private Level(String name, int value)
- {
- this.name = name;
- this.value = value;
- }
-
- public String GetName()
- {
- return name;
- }
-
- public int GetValue()
- {
- return 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.Logging
+{
+ public class Level
+ {
+
+ public static Level SEVERE = new Level("SEVERE", 10);
+
+ public static Level WARNING = new Level("WARNING", 9);
+
+ public static Level INFO = new Level("INFO", 8);
+
+ public static Level FINE = new Level("FINE", 7);
+
+ public static Level DEBUG = new Level("DEBUG", 6);
+
+ private String name;
+
+ private int value;
+
+ private Level(String name, int value)
+ {
+ this.name = name;
+ this.value = value;
+ }
+
+ public String GetName()
+ {
+ return name;
+ }
+
+ public int GetValue()
+ {
+ return value;
+ }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/LogManager.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/LogManager.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/LogManager.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/LogManager.cs Mon Jun 30 05:54:00 2008
@@ -1,55 +1,55 @@
-#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.Runtime.CompilerServices;
-
-namespace NMaven.Logging
-{
- public class LogManager
- {
-
- private List<Logger> loggers;
-
- public LogManager()
- {
- loggers = new List<Logger>();
- }
-
- [MethodImpl(MethodImplOptions.Synchronized)]
- public Logger GetLogger(String name)
- {
- foreach(Logger logger in loggers)
- {
- if(logger.getName().Equals(name))
- return logger;
- }
- return null;
- }
-
- [MethodImpl(MethodImplOptions.Synchronized)]
- public void addLogger(Logger logger)
- {
- loggers.Add(logger);
- }
- }
-}
+#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.Runtime.CompilerServices;
+
+namespace NMaven.Logging
+{
+ public class LogManager
+ {
+
+ private List<Logger> loggers;
+
+ public LogManager()
+ {
+ loggers = new List<Logger>();
+ }
+
+ [MethodImpl(MethodImplOptions.Synchronized)]
+ public Logger GetLogger(String name)
+ {
+ foreach(Logger logger in loggers)
+ {
+ if(logger.getName().Equals(name))
+ return logger;
+ }
+ return null;
+ }
+
+ [MethodImpl(MethodImplOptions.Synchronized)]
+ public void addLogger(Logger logger)
+ {
+ loggers.Add(logger);
+ }
+ }
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/LogRecord.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Logging/src/main/csharp/NMaven/Logging/LogRecord.cs?rev=672753&r1=672752&r2=672753&view=diff
=======================================================