You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by br...@apache.org on 2008/06/30 12:54:03 UTC

svn commit: r672753 [4/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...

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs Mon Jun 30 05:54:00 2008
@@ -1,302 +1,302 @@
-#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.Collections;
-using System.Reflection;
-
-using NMaven.Plugin;
-
-namespace NMaven.Plugin.Generator
-{
-	/// <summary>
-	/// Description of JavaClassUnmarshaller.
-	/// </summary>
-	public class JavaClassUnmarshaller : MarshalByRefObject 
-	{
-		public JavaClassUnmarshaller()
-		{
-		}
-			
-		public List<JavaClass> GetMojosFor(string assemblyName, string groupId)
-		{
-			List<JavaClass> javaClasses = new List<JavaClass>();
-			Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
-			foreach(Assembly assembly in assemblies)
-			{
-				Console.WriteLine("Assembly :" + assembly.GetName().Name);
-				if(assembly.GetName().Name.Equals(assemblyName))
-				{
-					Type[] types = assembly.GetTypes();
-					foreach(Type type in types)
-					{
-						String baseName = type.BaseType.Name;
-						if(baseName.Equals("AbstractMojo"))
-						{
-							JavaClass javaClass = convert(type, groupId);
-							javaClasses.Add(javaClass);
-						}
-					}			
-				}
-			}
-			return javaClasses;
-		}
-		
-		public JavaClass convert(Type abstractMojoType, string groupId)
-		{		
-	        JavaClass javaClass = new JavaClass();
-		 	javaClass.PackageName = abstractMojoType.Namespace;
-		 	javaClass.ClassName = abstractMojoType.Name;
-		 	javaClass.ExtendsClassName = "org.apache.maven.dotnet.plugin.AbstractMojo";
-	 	    
-		 	ImportPackage importPackage = new ImportPackage();
-		 	javaClass.ImportPackage = importPackage.AddPackage("org.apache.maven.dotnet.plugin.FieldAnnotation");
-		 	
-		 	List<String> classComments = new List<String>();
-			System.Attribute[] attributes =
-				System.Attribute.GetCustomAttributes(abstractMojoType);
-			
-			foreach(Attribute attribute in attributes) 
-			{
-				if(attribute is ClassAttribute)
-				{
-					ClassAttribute mojo = (ClassAttribute) attribute;			
-					classComments.Add(@"@phase " + mojo.Phase);	
-					classComments.Add(@"@goal " + mojo.Goal);	
-					break;
-				}
-			}
-			
-			javaClass.Comments = classComments;
-		 	
-		 	List<JavaField> javaFields = new List<JavaField>();
-        	foreach(FieldInfo field in abstractMojoType.GetFields())
-	        {
-	            foreach (Attribute attribute in field.GetCustomAttributes(true))
-	            {	            	
-					FieldAttribute mojo = (FieldAttribute) attribute;
-					javaFields.Add(CreateJavaField("public", mojo.Type, mojo.Name, 
-					                               CreateMojoComment(mojo.Expression),
-					                               "FieldAnnotation()"));
-	            }
-	        }
-        	
-        	//mojo parameters
-        	javaFields.Add(CreateJavaField("private", "org.apache.maven.project.MavenProject", "project",  
-        	                               CreateMojoComment("${project}"), null));        	
-        	javaFields.Add(CreateJavaField("private", "String", "localRepository",  
-        	                               CreateMojoComment("${settings.localRepository}"), null));
-        	javaFields.Add(CreateJavaField("private", "String", "vendor",  
-        	                               CreateMojoComment("${vendor}"), null));
-        	javaFields.Add(CreateJavaField("private", "String", "vendorVersion",  
-        	                               CreateMojoComment("${vendorVersion}"), null));
-        	javaFields.Add(CreateJavaField("private", "String", "frameworkVersion", 
-        	                               CreateMojoComment("${frameworkVersion}"), null));
-        	
-        	//components
-        	List<String> comments = new List<String>();
-        	comments.Add("@component");
-        	javaFields.Add(CreateJavaField("private", "org.apache.maven.dotnet.executable.NetExecutableFactory", 
-        	                               "netExecutableFactory", comments, null));
-        	javaFields.Add(CreateJavaField("private", "org.apache.maven.dotnet.plugin.PluginContext", 
-        	                               "pluginContext", comments, null)); 
-        	
-        	//methods
-        	List<JavaMethod> javaMethods = new List<JavaMethod>();
-        		
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getMojoArtifactId", 
-        	                                 new Code().AddLine(@"return """
-        	                                                    + abstractMojoType.Namespace + @""";")));
-        	                       	
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getMojoGroupId", 
-        	                                 new Code().AddLine(@"return """ 
-        	                                                    + groupId + @""";")));
-
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getClassName", 
-        	                                 new Code().AddLine(@"return """ + abstractMojoType.Namespace 
-        	                                                    + "." + abstractMojoType.Name + @""";")));
-        	                               
-        	javaMethods.Add(CreateJavaMethod("public", "org.apache.maven.dotnet.plugin.PluginContext", 
-        	                                 "getNetPluginContext",
-        	                                 CreateCodeWithSimpleReturnType("pluginContext")));
-        	
-        	javaMethods.Add(CreateJavaMethod("public", "org.apache.maven.dotnet.executable.NetExecutableFactory", 
-        	                                 "getNetExecutableFactory",
-        	                                 CreateCodeWithSimpleReturnType("netExecutableFactory"))); 
-        	                                
-        	javaMethods.Add(CreateJavaMethod("public", "org.apache.maven.project.MavenProject", "getMavenProject", 
-        	                                 CreateCodeWithSimpleReturnType("project"))); 
-        	                                
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getLocalRepository", 
-        	                                 CreateCodeWithSimpleReturnType("localRepository")));  
-        	
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getVendorVersion", 
-        	                                 CreateCodeWithSimpleReturnType("vendorVersion")));          	
-
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getVendor", 
-        	                                 CreateCodeWithSimpleReturnType("vendor"))); 
-        	
-        	javaMethods.Add(CreateJavaMethod("public", "String", "getFrameworkVersion", 
-        	                                 CreateCodeWithSimpleReturnType("frameworkVersion")));            	
-        	javaClass.JavaMethods = javaMethods;
-		 	javaClass.JavaFields = javaFields;
-		 	return javaClass;
-		}	
-		
-		private List<String> CreateMojoComment(string expression)
-		{
-		    List<String> comments = new List<String>();
-		    comments.Add(@"@parameter expression = """ + expression + @"""");	
-		    return comments;
-		}
-		
-		private JavaField CreateJavaField(string access, string fieldType, string fieldName, 
-		                                  List<String> comments, string annotation)
-		{
-		    JavaField javaField = new JavaField();
-			javaField.Access = access;
-			javaField.FieldName = fieldName;
-			javaField.ReturnType = fieldType;
-			javaField.Comments = comments;
-			javaField.Annotation = annotation;
-			return javaField;
-		}
-		
-		private Code CreateCodeWithSimpleReturnType(String type)
-		{
-			Code code = new Code();
-			return code.AddLine("return " + type + ";");
-		}
-		
-		private JavaMethod CreateJavaMethod(string access, string returnType, string methodName, Code code)
-		{
-        	JavaMethod javaMethod = new JavaMethod();
-        	javaMethod.MethodName = methodName;
-        	javaMethod.ReturnType = returnType;
-        	javaMethod.Access = access;
-        	javaMethod.Code = code;
-        	return javaMethod;
-		}
-			
-		public void unmarshall(JavaClass javaClass, FileInfo fileInfo)
-		{
-			StreamWriter streamWriter = fileInfo.CreateText();
-			streamWriter.WriteLine("package " + javaClass.PackageName + ";");
-			streamWriter.WriteLine("");
-			
-			foreach(String importPackageName in javaClass.ImportPackage.Packages)
-			{
-				streamWriter.WriteLine("import " + importPackageName + ";");
-				streamWriter.WriteLine("");
-			}
-			
-			if(javaClass.Comments != null)
-			{
-				streamWriter.WriteLine("/**");
-				foreach(String comment in javaClass.Comments)
-				{
-					streamWriter.WriteLine(" * " + comment);		
-				}
-				streamWriter.WriteLine(" */");				
-			}
-						   
-			streamWriter.WriteLine("public class " + javaClass.ClassName);
-			if(javaClass.ExtendsClassName != null)
-			{
-				streamWriter.WriteLine("    extends " + javaClass.ExtendsClassName);
-			}
-			streamWriter.WriteLine("{");
-			
-			if(javaClass.JavaFields != null)
-			{
-				foreach(JavaField javaField in javaClass.JavaFields)
-				{
-					List<String> comments = javaField.Comments;
-					if(comments != null && comments.Count > 0)
-					{
-						streamWriter.WriteLine("       /**");
-						foreach(String comment in comments)
-						{
-							streamWriter.WriteLine("        * " + comment);
-						}	
-						streamWriter.WriteLine("        */");						
-					}
-					if(javaField.Annotation != null)
-					{
-						streamWriter.WriteLine("        @" + javaField.Annotation);
-					}
-					
-					streamWriter.WriteLine("        " + javaField.Access + " " + 
-					                      javaField.ReturnType + " " + javaField.FieldName + ";");
-					streamWriter.WriteLine("");
-				}
-			}
-			
-			if(javaClass.JavaMethods != null)
-			{
-				foreach(JavaMethod javaMethod in javaClass.JavaMethods)
-				{
-					List<String> comments = javaMethod.Comments;
-					if(comments != null && comments.Count > 0)
-					{
-						streamWriter.WriteLine("       /**");
-						foreach(String comment in comments)
-						{
-							streamWriter.WriteLine("      * " + comment);
-						}	
-						streamWriter.WriteLine("        */");						
-					}
-					streamWriter.WriteLine("        " + javaMethod.Access + " " + javaMethod.ReturnType 
-					                       + " " + javaMethod.MethodName + "()");
-					streamWriter.WriteLine("        {");
-					foreach(String codeLine in javaMethod.Code.CodeLines)
-					{
-						streamWriter.WriteLine("            " + codeLine);
-					}
-					streamWriter.WriteLine("        }");
-					streamWriter.WriteLine("");
-					 
-				}
-			}
-			
-			streamWriter.WriteLine("}");			
-			streamWriter.AutoFlush = true;
-			streamWriter.Close();
-			Console.WriteLine("File Exists = " + fileInfo.Exists);
-		}
-
-	
-        private FieldInfo GetFieldInfoFor(Type type, String name)
-        {
-        	foreach(FieldInfo field in type.GetFields())
-	        {
-	            foreach (Attribute attribute in field.GetCustomAttributes(true))
-	            {	            	
-					FieldAttribute mojo = (FieldAttribute) attribute;
-					if(mojo.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.Collections.Generic;
+using System.IO;
+using System.Collections;
+using System.Reflection;
+
+using NMaven.Plugin;
+
+namespace NMaven.Plugin.Generator
+{
+	/// <summary>
+	/// Description of JavaClassUnmarshaller.
+	/// </summary>
+	public class JavaClassUnmarshaller : MarshalByRefObject 
+	{
+		public JavaClassUnmarshaller()
+		{
+		}
+			
+		public List<JavaClass> GetMojosFor(string assemblyName, string groupId)
+		{
+			List<JavaClass> javaClasses = new List<JavaClass>();
+			Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
+			foreach(Assembly assembly in assemblies)
+			{
+				Console.WriteLine("Assembly :" + assembly.GetName().Name);
+				if(assembly.GetName().Name.Equals(assemblyName))
+				{
+					Type[] types = assembly.GetTypes();
+					foreach(Type type in types)
+					{
+						String baseName = type.BaseType.Name;
+						if(baseName.Equals("AbstractMojo"))
+						{
+							JavaClass javaClass = convert(type, groupId);
+							javaClasses.Add(javaClass);
+						}
+					}			
+				}
+			}
+			return javaClasses;
+		}
+		
+		public JavaClass convert(Type abstractMojoType, string groupId)
+		{		
+	        JavaClass javaClass = new JavaClass();
+		 	javaClass.PackageName = abstractMojoType.Namespace;
+		 	javaClass.ClassName = abstractMojoType.Name;
+		 	javaClass.ExtendsClassName = "org.apache.maven.dotnet.plugin.AbstractMojo";
+	 	    
+		 	ImportPackage importPackage = new ImportPackage();
+		 	javaClass.ImportPackage = importPackage.AddPackage("org.apache.maven.dotnet.plugin.FieldAnnotation");
+		 	
+		 	List<String> classComments = new List<String>();
+			System.Attribute[] attributes =
+				System.Attribute.GetCustomAttributes(abstractMojoType);
+			
+			foreach(Attribute attribute in attributes) 
+			{
+				if(attribute is ClassAttribute)
+				{
+					ClassAttribute mojo = (ClassAttribute) attribute;			
+					classComments.Add(@"@phase " + mojo.Phase);	
+					classComments.Add(@"@goal " + mojo.Goal);	
+					break;
+				}
+			}
+			
+			javaClass.Comments = classComments;
+		 	
+		 	List<JavaField> javaFields = new List<JavaField>();
+        	foreach(FieldInfo field in abstractMojoType.GetFields())
+	        {
+	            foreach (Attribute attribute in field.GetCustomAttributes(true))
+	            {	            	
+					FieldAttribute mojo = (FieldAttribute) attribute;
+					javaFields.Add(CreateJavaField("public", mojo.Type, mojo.Name, 
+					                               CreateMojoComment(mojo.Expression),
+					                               "FieldAnnotation()"));
+	            }
+	        }
+        	
+        	//mojo parameters
+        	javaFields.Add(CreateJavaField("private", "org.apache.maven.project.MavenProject", "project",  
+        	                               CreateMojoComment("${project}"), null));        	
+        	javaFields.Add(CreateJavaField("private", "String", "localRepository",  
+        	                               CreateMojoComment("${settings.localRepository}"), null));
+        	javaFields.Add(CreateJavaField("private", "String", "vendor",  
+        	                               CreateMojoComment("${vendor}"), null));
+        	javaFields.Add(CreateJavaField("private", "String", "vendorVersion",  
+        	                               CreateMojoComment("${vendorVersion}"), null));
+        	javaFields.Add(CreateJavaField("private", "String", "frameworkVersion", 
+        	                               CreateMojoComment("${frameworkVersion}"), null));
+        	
+        	//components
+        	List<String> comments = new List<String>();
+        	comments.Add("@component");
+        	javaFields.Add(CreateJavaField("private", "org.apache.maven.dotnet.executable.NetExecutableFactory", 
+        	                               "netExecutableFactory", comments, null));
+        	javaFields.Add(CreateJavaField("private", "org.apache.maven.dotnet.plugin.PluginContext", 
+        	                               "pluginContext", comments, null)); 
+        	
+        	//methods
+        	List<JavaMethod> javaMethods = new List<JavaMethod>();
+        		
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getMojoArtifactId", 
+        	                                 new Code().AddLine(@"return """
+        	                                                    + abstractMojoType.Namespace + @""";")));
+        	                       	
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getMojoGroupId", 
+        	                                 new Code().AddLine(@"return """ 
+        	                                                    + groupId + @""";")));
+
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getClassName", 
+        	                                 new Code().AddLine(@"return """ + abstractMojoType.Namespace 
+        	                                                    + "." + abstractMojoType.Name + @""";")));
+        	                               
+        	javaMethods.Add(CreateJavaMethod("public", "org.apache.maven.dotnet.plugin.PluginContext", 
+        	                                 "getNetPluginContext",
+        	                                 CreateCodeWithSimpleReturnType("pluginContext")));
+        	
+        	javaMethods.Add(CreateJavaMethod("public", "org.apache.maven.dotnet.executable.NetExecutableFactory", 
+        	                                 "getNetExecutableFactory",
+        	                                 CreateCodeWithSimpleReturnType("netExecutableFactory"))); 
+        	                                
+        	javaMethods.Add(CreateJavaMethod("public", "org.apache.maven.project.MavenProject", "getMavenProject", 
+        	                                 CreateCodeWithSimpleReturnType("project"))); 
+        	                                
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getLocalRepository", 
+        	                                 CreateCodeWithSimpleReturnType("localRepository")));  
+        	
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getVendorVersion", 
+        	                                 CreateCodeWithSimpleReturnType("vendorVersion")));          	
+
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getVendor", 
+        	                                 CreateCodeWithSimpleReturnType("vendor"))); 
+        	
+        	javaMethods.Add(CreateJavaMethod("public", "String", "getFrameworkVersion", 
+        	                                 CreateCodeWithSimpleReturnType("frameworkVersion")));            	
+        	javaClass.JavaMethods = javaMethods;
+		 	javaClass.JavaFields = javaFields;
+		 	return javaClass;
+		}	
+		
+		private List<String> CreateMojoComment(string expression)
+		{
+		    List<String> comments = new List<String>();
+		    comments.Add(@"@parameter expression = """ + expression + @"""");	
+		    return comments;
+		}
+		
+		private JavaField CreateJavaField(string access, string fieldType, string fieldName, 
+		                                  List<String> comments, string annotation)
+		{
+		    JavaField javaField = new JavaField();
+			javaField.Access = access;
+			javaField.FieldName = fieldName;
+			javaField.ReturnType = fieldType;
+			javaField.Comments = comments;
+			javaField.Annotation = annotation;
+			return javaField;
+		}
+		
+		private Code CreateCodeWithSimpleReturnType(String type)
+		{
+			Code code = new Code();
+			return code.AddLine("return " + type + ";");
+		}
+		
+		private JavaMethod CreateJavaMethod(string access, string returnType, string methodName, Code code)
+		{
+        	JavaMethod javaMethod = new JavaMethod();
+        	javaMethod.MethodName = methodName;
+        	javaMethod.ReturnType = returnType;
+        	javaMethod.Access = access;
+        	javaMethod.Code = code;
+        	return javaMethod;
+		}
+			
+		public void unmarshall(JavaClass javaClass, FileInfo fileInfo)
+		{
+			StreamWriter streamWriter = fileInfo.CreateText();
+			streamWriter.WriteLine("package " + javaClass.PackageName + ";");
+			streamWriter.WriteLine("");
+			
+			foreach(String importPackageName in javaClass.ImportPackage.Packages)
+			{
+				streamWriter.WriteLine("import " + importPackageName + ";");
+				streamWriter.WriteLine("");
+			}
+			
+			if(javaClass.Comments != null)
+			{
+				streamWriter.WriteLine("/**");
+				foreach(String comment in javaClass.Comments)
+				{
+					streamWriter.WriteLine(" * " + comment);		
+				}
+				streamWriter.WriteLine(" */");				
+			}
+						   
+			streamWriter.WriteLine("public class " + javaClass.ClassName);
+			if(javaClass.ExtendsClassName != null)
+			{
+				streamWriter.WriteLine("    extends " + javaClass.ExtendsClassName);
+			}
+			streamWriter.WriteLine("{");
+			
+			if(javaClass.JavaFields != null)
+			{
+				foreach(JavaField javaField in javaClass.JavaFields)
+				{
+					List<String> comments = javaField.Comments;
+					if(comments != null && comments.Count > 0)
+					{
+						streamWriter.WriteLine("       /**");
+						foreach(String comment in comments)
+						{
+							streamWriter.WriteLine("        * " + comment);
+						}	
+						streamWriter.WriteLine("        */");						
+					}
+					if(javaField.Annotation != null)
+					{
+						streamWriter.WriteLine("        @" + javaField.Annotation);
+					}
+					
+					streamWriter.WriteLine("        " + javaField.Access + " " + 
+					                      javaField.ReturnType + " " + javaField.FieldName + ";");
+					streamWriter.WriteLine("");
+				}
+			}
+			
+			if(javaClass.JavaMethods != null)
+			{
+				foreach(JavaMethod javaMethod in javaClass.JavaMethods)
+				{
+					List<String> comments = javaMethod.Comments;
+					if(comments != null && comments.Count > 0)
+					{
+						streamWriter.WriteLine("       /**");
+						foreach(String comment in comments)
+						{
+							streamWriter.WriteLine("      * " + comment);
+						}	
+						streamWriter.WriteLine("        */");						
+					}
+					streamWriter.WriteLine("        " + javaMethod.Access + " " + javaMethod.ReturnType 
+					                       + " " + javaMethod.MethodName + "()");
+					streamWriter.WriteLine("        {");
+					foreach(String codeLine in javaMethod.Code.CodeLines)
+					{
+						streamWriter.WriteLine("            " + codeLine);
+					}
+					streamWriter.WriteLine("        }");
+					streamWriter.WriteLine("");
+					 
+				}
+			}
+			
+			streamWriter.WriteLine("}");			
+			streamWriter.AutoFlush = true;
+			streamWriter.Close();
+			Console.WriteLine("File Exists = " + fileInfo.Exists);
+		}
+
+	
+        private FieldInfo GetFieldInfoFor(Type type, String name)
+        {
+        	foreach(FieldInfo field in type.GetFields())
+	        {
+	            foreach (Attribute attribute in field.GetCustomAttributes(true))
+	            {	            	
+					FieldAttribute mojo = (FieldAttribute) attribute;
+					if(mojo.Name.Equals(name))
+						return field;
+	            }
+	        }
+	        return null;
+        }	
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs Mon Jun 30 05:54:00 2008
@@ -1,122 +1,122 @@
-#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 JavaField.
-	/// </summary>
-	[Serializable]
-	public class JavaField
-	{
-		private string fieldName;
-		
-		private string fieldValue;
-		
-		private string access;
-		
-		private string returnType;
-		
-		private List<String> comments;
-
-		private string annotation;
-				
-		public string Annotation
-		{
-			get 
-			{
-				return annotation;
-			}
-			
-			set
-			{
-				this.annotation = value;
-			}
-		}
-		
-		public List<String> Comments
-		{
-			get 
-			{
-				return comments;
-			}
-			
-			set
-			{
-				this.comments = value;
-			}
-		}
-		
-		public string FieldName
-		{
-			get 
-			{
-				return fieldName;
-			}
-			
-			set
-			{
-				this.fieldName = value;
-			}
-		}
-		
-		public string FieldValue
-		{
-			get 
-			{
-				return fieldValue;
-			}
-			
-			set
-			{
-				this.fieldValue = value;
-			}
-		}	
-		
-		public string Access
-		{
-			get 
-			{
-				return access;
-			}
-			
-			set
-			{
-				this.access = value;
-			}
-		}	
-		
-		public string ReturnType
-		{
-			get 
-			{
-				return returnType;
-			}
-			
-			set
-			{
-				this.returnType = 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 System.Collections.Generic;
+
+namespace NMaven.Plugin.Generator
+{
+	/// <summary>
+	/// Description of JavaField.
+	/// </summary>
+	[Serializable]
+	public class JavaField
+	{
+		private string fieldName;
+		
+		private string fieldValue;
+		
+		private string access;
+		
+		private string returnType;
+		
+		private List<String> comments;
+
+		private string annotation;
+				
+		public string Annotation
+		{
+			get 
+			{
+				return annotation;
+			}
+			
+			set
+			{
+				this.annotation = value;
+			}
+		}
+		
+		public List<String> Comments
+		{
+			get 
+			{
+				return comments;
+			}
+			
+			set
+			{
+				this.comments = value;
+			}
+		}
+		
+		public string FieldName
+		{
+			get 
+			{
+				return fieldName;
+			}
+			
+			set
+			{
+				this.fieldName = value;
+			}
+		}
+		
+		public string FieldValue
+		{
+			get 
+			{
+				return fieldValue;
+			}
+			
+			set
+			{
+				this.fieldValue = value;
+			}
+		}	
+		
+		public string Access
+		{
+			get 
+			{
+				return access;
+			}
+			
+			set
+			{
+				this.access = value;
+			}
+		}	
+		
+		public string ReturnType
+		{
+			get 
+			{
+				return returnType;
+			}
+			
+			set
+			{
+				this.returnType = value;
+			}
+		}			
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaMethod.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaMethod.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaMethod.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaMethod.cs Mon Jun 30 05:54:00 2008
@@ -1,104 +1,104 @@
-#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 JavaMethod.
-	/// </summary>
-	[Serializable]
-	public class JavaMethod
-	{
-		private string methodName;
-		
-		private string access;
-		
-		private string returnType;
-		
-		private Code code;
-		
-		private List<String> comments;
-
-		public Code Code
-		{
-			get 
-			{
-				return code;
-			}
-			
-			set
-			{
-				this.code = value;				
-			}
-		}
-		
-		public List<String> Comments
-		{
-			get {
-				return comments;
-			}
-			
-			set
-			{
-				this.comments = value;
-			}
-		}
-		
-		public string MethodName
-		{
-			get {
-				return methodName;
-			}
-			
-			set
-			{
-				this.methodName = value;
-			}
-		}
-		
-		public string Access
-		{
-			get {
-				return access;
-			}
-			
-			set
-			{
-				this.access = value;
-			}
-		}	
-		
-		public string ReturnType
-		{
-			get {
-				return returnType;
-			}
-			
-			set
-			{
-				this.returnType = 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 System.Collections.Generic;
+
+namespace NMaven.Plugin.Generator
+{
+	/// <summary>
+	/// Description of JavaMethod.
+	/// </summary>
+	[Serializable]
+	public class JavaMethod
+	{
+		private string methodName;
+		
+		private string access;
+		
+		private string returnType;
+		
+		private Code code;
+		
+		private List<String> comments;
+
+		public Code Code
+		{
+			get 
+			{
+				return code;
+			}
+			
+			set
+			{
+				this.code = value;				
+			}
+		}
+		
+		public List<String> Comments
+		{
+			get {
+				return comments;
+			}
+			
+			set
+			{
+				this.comments = value;
+			}
+		}
+		
+		public string MethodName
+		{
+			get {
+				return methodName;
+			}
+			
+			set
+			{
+				this.methodName = value;
+			}
+		}
+		
+		public string Access
+		{
+			get {
+				return access;
+			}
+			
+			set
+			{
+				this.access = value;
+			}
+		}	
+		
+		public string ReturnType
+		{
+			get {
+				return returnType;
+			}
+			
+			set
+			{
+				this.returnType = value;
+			}
+		}					
+		
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/IFieldInjector.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/IFieldInjector.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/IFieldInjector.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/IFieldInjector.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;
-using System.Reflection;
-
-namespace NMaven.Plugin.Injector
-{
-	/// <summary>
-	/// Provides services for injecting information into fields.
-	/// </summary>
-	public interface IFieldInjector
-	{
-		/// <summary>
-		/// Injects the specified field object into the field info of the specified target object.
-		/// </summary>
-		/// <param name="targetObject">the target object containing the fields that are to be injected</param>
-		/// <param name="fieldInfo">the field to inject</param>
-		/// <param name="fieldObject">the value to set on the field</param>
-		void Inject(object targetObject, FieldInfo fieldInfo, object fieldObject);
-		
-		/// <summary>
-		/// Returns the java class name of field within the Java Mojo equivalent.
-		/// </summary>
-		/// <returns>the java class name of field within the Java Mojo equivalent</returns>
-		string GetJavaClassName();
-	}
-}
+#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;
+
+namespace NMaven.Plugin.Injector
+{
+	/// <summary>
+	/// Provides services for injecting information into fields.
+	/// </summary>
+	public interface IFieldInjector
+	{
+		/// <summary>
+		/// Injects the specified field object into the field info of the specified target object.
+		/// </summary>
+		/// <param name="targetObject">the target object containing the fields that are to be injected</param>
+		/// <param name="fieldInfo">the field to inject</param>
+		/// <param name="fieldObject">the value to set on the field</param>
+		void Inject(object targetObject, FieldInfo fieldInfo, object fieldObject);
+		
+		/// <summary>
+		/// Returns the java class name of field within the Java Mojo equivalent.
+		/// </summary>
+		/// <returns>the java class name of field within the Java Mojo equivalent</returns>
+		string GetJavaClassName();
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs Mon Jun 30 05:54:00 2008
@@ -1,74 +1,74 @@
-#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.Collections.Generic;
-using System.Collections;
-
-namespace NMaven.Plugin.Injector.Impl
-{
-	/// <summary>
-	/// Provides methods for getting field injectors.
-	/// </summary>
-	internal sealed class FieldInjectorRepository
-	{		
-		internal FieldInjectorRepository()
-		{
-		}
-		
-		internal IFieldInjector getFieldInjectorFor(FieldInfo fieldInfo)
-		{
-			Type[] types = this.GetType().Assembly.GetTypes();
-			foreach(Type type in types)
-			{
-				if(type.GetInterface("NMaven.Plugin.Injector.IFieldInjector") == null) 
-				{
-					continue;
-				}
-				
-			    foreach (Attribute attribute in type.GetCustomAttributes(false))
-		        {	 
-			    	if(attribute is FieldInjectorAttribute)
-			    	{
-			    		FieldInjectorAttribute fieldInjectorAttribute = (FieldInjectorAttribute) attribute;	
-			    		Console.WriteLine(fieldInfo.FieldType.FullName + ":" + fieldInjectorAttribute.TargetClassName);
-			    		if(fieldInfo.FieldType.FullName.Equals(fieldInjectorAttribute.TargetClassName))
-			    		{
-			    			return (IFieldInjector) type.GetConstructor(System.Type.EmptyTypes).Invoke(null);
-			    		}
-			    	}
-		        }  
-			}
-			return null;
-		}
-		
-
-       internal String GetFieldTypeFor(FieldInfo fieldInfo)
-       {
-	    	foreach (Attribute attribute in fieldInfo.GetCustomAttributes(true))
-	        {	            	
-				FieldAttribute fieldAttribute = (FieldAttribute) attribute;
-				return fieldAttribute.Type;
-	        }  
-	    	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.Reflection;
+using System.Collections.Generic;
+using System.Collections;
+
+namespace NMaven.Plugin.Injector.Impl
+{
+	/// <summary>
+	/// Provides methods for getting field injectors.
+	/// </summary>
+	internal sealed class FieldInjectorRepository
+	{		
+		internal FieldInjectorRepository()
+		{
+		}
+		
+		internal IFieldInjector getFieldInjectorFor(FieldInfo fieldInfo)
+		{
+			Type[] types = this.GetType().Assembly.GetTypes();
+			foreach(Type type in types)
+			{
+				if(type.GetInterface("NMaven.Plugin.Injector.IFieldInjector") == null) 
+				{
+					continue;
+				}
+				
+			    foreach (Attribute attribute in type.GetCustomAttributes(false))
+		        {	 
+			    	if(attribute is FieldInjectorAttribute)
+			    	{
+			    		FieldInjectorAttribute fieldInjectorAttribute = (FieldInjectorAttribute) attribute;	
+			    		Console.WriteLine(fieldInfo.FieldType.FullName + ":" + fieldInjectorAttribute.TargetClassName);
+			    		if(fieldInfo.FieldType.FullName.Equals(fieldInjectorAttribute.TargetClassName))
+			    		{
+			    			return (IFieldInjector) type.GetConstructor(System.Type.EmptyTypes).Invoke(null);
+			    		}
+			    	}
+		        }  
+			}
+			return null;
+		}
+		
+
+       internal String GetFieldTypeFor(FieldInfo fieldInfo)
+       {
+	    	foreach (Attribute attribute in fieldInfo.GetCustomAttributes(true))
+	        {	            	
+				FieldAttribute fieldAttribute = (FieldAttribute) attribute;
+				return fieldAttribute.Type;
+	        }  
+	    	return null;
+       }       
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/MavenProjectInjector.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/MavenProjectInjector.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/MavenProjectInjector.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/MavenProjectInjector.cs Mon Jun 30 05:54:00 2008
@@ -1,69 +1,69 @@
-#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;
-
-namespace NMaven.Plugin.Injector.Impl
-{
-	/// <summary>
-	/// Provides methods for injecting maven project models values into fields.
-	/// </summary>
-	[FieldInjectorAttribute("NMaven.Model.Pom.Model")]
-	public sealed class MavenProjectInjector : IFieldInjector 
-	{
-		public MavenProjectInjector()
-		{
-		}
-		
-		/// 
-		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.Inject(object, FieldInfo, object)"> 
-		/// 
-		public void Inject(object targetObject, FieldInfo fieldInfo, object fieldObject)
-		{
-			fieldInfo.SetValue(targetObject, this.CreatePomModelFor( ((string) fieldObject) ));
-		}
-		
-		/// 
-		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.GetJavaClassName()"> 
-		/// 		
-		public string GetJavaClassName() 
-		{
-			return "org.apache.maven.project.MavenProject";				
-		}  		
-		
-		/// <summary>
-		/// Creates a model from the specified project file.
-		/// </summary>
-		/// <param name="fileName">The fully qualified file name of the project file</param>
-		/// <returns>A model from the specified project file</returns>
-   		private NMaven.Model.Pom.Model CreatePomModelFor(string fileName)
-		{
-			TextReader reader = new StreamReader(fileName);
-		    XmlSerializer serializer = new XmlSerializer(typeof(NMaven.Model.Pom.Model));
-			return (NMaven.Model.Pom.Model) serializer.Deserialize(reader);	
-		}  
-	}
-}
+#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;
+
+namespace NMaven.Plugin.Injector.Impl
+{
+	/// <summary>
+	/// Provides methods for injecting maven project models values into fields.
+	/// </summary>
+	[FieldInjectorAttribute("NMaven.Model.Pom.Model")]
+	public sealed class MavenProjectInjector : IFieldInjector 
+	{
+		public MavenProjectInjector()
+		{
+		}
+		
+		/// 
+		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.Inject(object, FieldInfo, object)"> 
+		/// 
+		public void Inject(object targetObject, FieldInfo fieldInfo, object fieldObject)
+		{
+			fieldInfo.SetValue(targetObject, this.CreatePomModelFor( ((string) fieldObject) ));
+		}
+		
+		/// 
+		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.GetJavaClassName()"> 
+		/// 		
+		public string GetJavaClassName() 
+		{
+			return "org.apache.maven.project.MavenProject";				
+		}  		
+		
+		/// <summary>
+		/// Creates a model from the specified project file.
+		/// </summary>
+		/// <param name="fileName">The fully qualified file name of the project file</param>
+		/// <returns>A model from the specified project file</returns>
+   		private NMaven.Model.Pom.Model CreatePomModelFor(string fileName)
+		{
+			TextReader reader = new StreamReader(fileName);
+		    XmlSerializer serializer = new XmlSerializer(typeof(NMaven.Model.Pom.Model));
+			return (NMaven.Model.Pom.Model) serializer.Deserialize(reader);	
+		}  
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/StringInjector.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/StringInjector.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/StringInjector.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/StringInjector.cs Mon Jun 30 05:54:00 2008
@@ -1,54 +1,54 @@
-#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 NMaven.Plugin;
-
-namespace NMaven.Plugin.Injector.Impl
-{
-	/// <summary>
-	/// Provides methods for injecting string values into fields.
-	/// </summary>
-	[FieldInjectorAttribute("System.String")]
-	public sealed class StringInjector : IFieldInjector
-	{
-		public StringInjector()
-		{
-		}
-
-		/// 
-		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.Inject(object, FieldInfo, object)"> 
-		/// 		
-		public void Inject(object targetObject, FieldInfo fieldInfo, object fieldObject)
-		{
-			fieldInfo.SetValue(targetObject, (string) fieldObject );
-		}	
-
-		/// 
-		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.GetJavaClassName()"> 
-		/// 			
-		public string GetJavaClassName() 
-		{
-			return "java.lang.String";			
-		}
-	}
-}
+#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 NMaven.Plugin;
+
+namespace NMaven.Plugin.Injector.Impl
+{
+	/// <summary>
+	/// Provides methods for injecting string values into fields.
+	/// </summary>
+	[FieldInjectorAttribute("System.String")]
+	public sealed class StringInjector : IFieldInjector
+	{
+		public StringInjector()
+		{
+		}
+
+		/// 
+		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.Inject(object, FieldInfo, object)"> 
+		/// 		
+		public void Inject(object targetObject, FieldInfo fieldInfo, object fieldObject)
+		{
+			fieldInfo.SetValue(targetObject, (string) fieldObject );
+		}	
+
+		/// 
+		/// <see cref ="NMaven.Plugin.Injector.IFieldInjector.GetJavaClassName()"> 
+		/// 			
+		public string GetJavaClassName() 
+		{
+			return "java.lang.String";			
+		}
+	}
+}

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.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
-using System;
-using System.IO;
-using System.Reflection;
-
-namespace NMaven.Plugin
-{
-	/// <summary>
-	/// Allows loading of .NET Maven Plugins (and its dependencies) into a separate application domain.
-	/// </summary>
-	public sealed class PluginDomainManager : AppDomainManager
-	{
-		/// <summary>
-		/// Default constructor
-		/// </summary>
-		public PluginDomainManager() : base()
-		{
-			Console.WriteLine("Creating Plugin Domain Manager");
-		}
-		
-		/// <summary>
-		/// Loads the specified .NET Maven plugin into the plugin domain 
-		/// </summary>
-		/// <param name="assemblyFile">The .NET Maven plugin</param>
-		public void LoadPlugin(FileInfo assemblyFile)
-		{
-			
-			Assembly assembly = null;
-			try 
-			{
-				string assemblyName = assemblyFile.Name.TrimEnd(assemblyFile.Extension.ToCharArray());
-				assembly = AppDomain.CurrentDomain.Load(assemblyName);				
-			}
-			catch(FileNotFoundException e)
-			{
-				Console.WriteLine("FNE: " + e.Message);
-				return;
-			}
-		}
-	}
-}
+#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;
+
+namespace NMaven.Plugin
+{
+	/// <summary>
+	/// Allows loading of .NET Maven Plugins (and its dependencies) into a separate application domain.
+	/// </summary>
+	public sealed class PluginDomainManager : AppDomainManager
+	{
+		/// <summary>
+		/// Default constructor
+		/// </summary>
+		public PluginDomainManager() : base()
+		{
+			Console.WriteLine("Creating Plugin Domain Manager");
+		}
+		
+		/// <summary>
+		/// Loads the specified .NET Maven plugin into the plugin domain 
+		/// </summary>
+		/// <param name="assemblyFile">The .NET Maven plugin</param>
+		public void LoadPlugin(FileInfo assemblyFile)
+		{
+			
+			Assembly assembly = null;
+			try 
+			{
+				string assemblyName = assemblyFile.Name.TrimEnd(assemblyFile.Extension.ToCharArray());
+				assembly = AppDomain.CurrentDomain.Load(assemblyName);				
+			}
+			catch(FileNotFoundException e)
+			{
+				Console.WriteLine("FNE: " + e.Message);
+				return;
+			}
+		}
+	}
+}

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

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

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/CompilerMessageViewHandler.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/CompilerMessageViewHandler.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/CompilerMessageViewHandler.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/CompilerMessageViewHandler.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;
-using System.Runtime.CompilerServices;
-using System.Windows.Forms;
-using System.Drawing;
-using System.Threading;
-using NMaven.Logging;
-using ICSharpCode.Core;
-using ICSharpCode.SharpDevelop.Gui;
-using ICSharpCode.SharpDevelop;
-
-namespace NMaven.SharpDevelop.Addin
-{
-	/// <summary>
-	/// Description of CompilerMessageViewLogger.
-	/// </summary>
-	public class CompilerMessageViewHandler : IHandler
-	{
-		private Level level;
-		
-		private CompilerMessageView compilerMessageView;
-				
-		public CompilerMessageViewHandler()
-		{
-			this.level = Level.INFO;
-		}
-		
-		public void SetCompilerMessageView(CompilerMessageView compilerMessageView)
-		{
-			this.compilerMessageView = compilerMessageView;	
-		}
-		
-		[MethodImpl(MethodImplOptions.Synchronized)]
-		public void publish(LogRecord record)
-		{
-			if(record.GetLevel().GetValue() >= level.GetValue())
-			{
-				compilerMessageView.GetCategory("NMaven Build")
-					.AppendText(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;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Threading;
+using NMaven.Logging;
+using ICSharpCode.Core;
+using ICSharpCode.SharpDevelop.Gui;
+using ICSharpCode.SharpDevelop;
+
+namespace NMaven.SharpDevelop.Addin
+{
+	/// <summary>
+	/// Description of CompilerMessageViewLogger.
+	/// </summary>
+	public class CompilerMessageViewHandler : IHandler
+	{
+		private Level level;
+		
+		private CompilerMessageView compilerMessageView;
+				
+		public CompilerMessageViewHandler()
+		{
+			this.level = Level.INFO;
+		}
+		
+		public void SetCompilerMessageView(CompilerMessageView compilerMessageView)
+		{
+			this.compilerMessageView = compilerMessageView;	
+		}
+		
+		[MethodImpl(MethodImplOptions.Synchronized)]
+		public void publish(LogRecord record)
+		{
+			if(record.GetLevel().GetValue() >= level.GetValue())
+			{
+				compilerMessageView.GetCategory("NMaven Build")
+					.AppendText(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.SharpDevelop.Addin/Src/CompilerMessageViewHandler.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildControl.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildControl.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildControl.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildControl.cs Mon Jun 30 05:54:00 2008
@@ -1,93 +1,93 @@
-#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.Windows.Forms;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Net;
-using System.Net.Sockets;
-
-using NMaven.IDE.View;
-using NMaven.IDE;
-using NMaven.IDE.Commands;
-using NMaven.IDE.Controls;
-using NMaven.IDE.Impl;
-using NMaven.Service;
-using NMaven.Logging;
-
-using ICSharpCode.SharpDevelop.Gui;
-using ICSharpCode.SharpDevelop.Gui.XmlForms;
-using ICSharpCode.SharpDevelop;
-
-namespace NMaven.SharpDevelop.Addin
-{
-	public class NMavenBuildControl : BaseSharpDevelopUserControl
-	{
-       
-		private CompilerMessageView view;
-		
-		private MessageViewCategory category;
-		
-		public NMavenBuildControl()
-		{
-			category = new MessageViewCategory("NMaven Build");
-			view = CompilerMessageView.Instance;
-			view.AddCategory(category);
-    		
-			SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("NMaven.SharpDevelop.Addin.Resources.NMavenBuildControl.xfrm"));
-			
-			CompilerMessageViewHandler handler = new CompilerMessageViewHandler();
-			handler.SetCompilerMessageView(view);
-			Logger logger = Logger.GetLogger("NMaven Build");
-			logger.AddHandler(handler);
-			logger.Log(Level.INFO, "NMaven Build\r\n");
-			MavenBuildControl buildControl = new MavenBuildControl();            
-			buildControl.Init(logger, findOpenPort(), new Size(400, 400) );
-			buildControl.Size = new Size(400, 400);
-			buildControl.ClearOutputWindow += new EventHandler(ClearOutputWindow);
-			this.Controls.Add(buildControl);
-		}
-		
-		void ClearOutputWindow(object sender, EventArgs e)
-		{
-			category.ClearText();
-		}
-		
-		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;
-		}
-	}		
-}
+#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.Windows.Forms;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Net;
+using System.Net.Sockets;
+
+using NMaven.IDE.View;
+using NMaven.IDE;
+using NMaven.IDE.Commands;
+using NMaven.IDE.Controls;
+using NMaven.IDE.Impl;
+using NMaven.Service;
+using NMaven.Logging;
+
+using ICSharpCode.SharpDevelop.Gui;
+using ICSharpCode.SharpDevelop.Gui.XmlForms;
+using ICSharpCode.SharpDevelop;
+
+namespace NMaven.SharpDevelop.Addin
+{
+	public class NMavenBuildControl : BaseSharpDevelopUserControl
+	{
+       
+		private CompilerMessageView view;
+		
+		private MessageViewCategory category;
+		
+		public NMavenBuildControl()
+		{
+			category = new MessageViewCategory("NMaven Build");
+			view = CompilerMessageView.Instance;
+			view.AddCategory(category);
+    		
+			SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("NMaven.SharpDevelop.Addin.Resources.NMavenBuildControl.xfrm"));
+			
+			CompilerMessageViewHandler handler = new CompilerMessageViewHandler();
+			handler.SetCompilerMessageView(view);
+			Logger logger = Logger.GetLogger("NMaven Build");
+			logger.AddHandler(handler);
+			logger.Log(Level.INFO, "NMaven Build\r\n");
+			MavenBuildControl buildControl = new MavenBuildControl();            
+			buildControl.Init(logger, findOpenPort(), new Size(400, 400) );
+			buildControl.Size = new Size(400, 400);
+			buildControl.ClearOutputWindow += new EventHandler(ClearOutputWindow);
+			this.Controls.Add(buildControl);
+		}
+		
+		void ClearOutputWindow(object sender, EventArgs e)
+		{
+			category.ClearText();
+		}
+		
+		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;
+		}
+	}		
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildControl.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildPad.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildPad.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildPad.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildPad.cs Mon Jun 30 05:54:00 2008
@@ -1,70 +1,70 @@
-#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.Windows.Forms;
-using ICSharpCode.Core;
-using ICSharpCode.SharpDevelop.Gui;
-
-namespace NMaven.SharpDevelop.Addin
-{
-	/// <summary>
-	/// Description of the pad content
-	/// </summary>
-	public class NMavenBuildPad : AbstractPadContent
-	{
-		NMavenBuildControl ctl;
-		
-		/// <summary>
-		/// Creates a new TestPad object
-		/// </summary>
-		public NMavenBuildPad()
-		{
-			ctl = new NMavenBuildControl();
-		}
-		
-		/// <summary>
-		/// The <see cref="System.Windows.Forms.Control"/> representing the pad
-		/// </summary>
-		public override Control Control {
-			get {
-				return ctl;
-			}
-		}
-		
-		/// <summary>
-		/// Refreshes the pad
-		/// </summary>
-		public override void RedrawContent()
-		{
-			// TODO: Refresh the whole pad control here, renew all resource strings whatever
-			//       Note that you do not need to recreate the control.
-		}
-		
-		/// <summary>
-		/// Cleans up all used resources
-		/// </summary>
-		public override void Dispose()
-		{
-			ctl.Dispose();
-		}
-	}
-}
+#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.Windows.Forms;
+using ICSharpCode.Core;
+using ICSharpCode.SharpDevelop.Gui;
+
+namespace NMaven.SharpDevelop.Addin
+{
+	/// <summary>
+	/// Description of the pad content
+	/// </summary>
+	public class NMavenBuildPad : AbstractPadContent
+	{
+		NMavenBuildControl ctl;
+		
+		/// <summary>
+		/// Creates a new TestPad object
+		/// </summary>
+		public NMavenBuildPad()
+		{
+			ctl = new NMavenBuildControl();
+		}
+		
+		/// <summary>
+		/// The <see cref="System.Windows.Forms.Control"/> representing the pad
+		/// </summary>
+		public override Control Control {
+			get {
+				return ctl;
+			}
+		}
+		
+		/// <summary>
+		/// Refreshes the pad
+		/// </summary>
+		public override void RedrawContent()
+		{
+			// TODO: Refresh the whole pad control here, renew all resource strings whatever
+			//       Note that you do not need to recreate the control.
+		}
+		
+		/// <summary>
+		/// Cleans up all used resources
+		/// </summary>
+		public override void Dispose()
+		{
+			ctl.Dispose();
+		}
+	}
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.SharpDevelop.Addin/Src/NMavenBuildPad.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/ExecutionException.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/Factory.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/Factory.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/Factory.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/Factory.cs Mon Jun 30 05:54:00 2008
@@ -1,46 +1,46 @@
-#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.Text;
-
-using NMaven.Solution.Impl;
-[assembly: CLSCompliantAttribute(true)]
-namespace NMaven.Solution
-{
-    [CLSCompliantAttribute(false)]
-    public sealed class Factory
-    {
-
-        private Factory() { } 
-
-        public static IProjectReference createDefaultProjectReference()
-        {
-            return new ProjectReferenceImpl();
-        }
-
-        public static IProjectGenerator createDefaultProjectGenerator()
-        {
-            return new ProjectGeneratorImpl();
-        }
-    }
-}
+#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.Text;
+
+using NMaven.Solution.Impl;
+[assembly: CLSCompliantAttribute(true)]
+namespace NMaven.Solution
+{
+    [CLSCompliantAttribute(false)]
+    public sealed class Factory
+    {
+
+        private Factory() { } 
+
+        public static IProjectReference createDefaultProjectReference()
+        {
+            return new ProjectReferenceImpl();
+        }
+
+        public static IProjectGenerator createDefaultProjectGenerator()
+        {
+            return new ProjectGeneratorImpl();
+        }
+    }
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/Factory.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/IProjectGenerator.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/IProjectGenerator.cs?rev=672753&r1=672752&r2=672753&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/IProjectGenerator.cs (original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/IProjectGenerator.cs Mon Jun 30 05:54:00 2008
@@ -1,69 +1,69 @@
-#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.Collections.Generic;
-
-using NMaven.Model;
-
-namespace NMaven.Solution
-{
-	/// <summary>
-	/// Provides services for generating .NET project and solution files.
-	/// </summary>
-    [CLSCompliantAttribute(false)]
-	public interface IProjectGenerator
-	{
-		
-        /// <summary>
-        /// Generates a .csproj file from the specified maven model.
-        /// </summary>
-        /// <param name="model">the pom model</param>
-        /// <param name="sourceFileDirectory">the directory containing the source files </param>
-        /// <param name="projectFileName">the name of the project: usually corresponds to the artifact id</param>
-        /// <param name="projectReferences">references to other projects that this project is dependent upon</param>
-        /// <returns></returns>
-        [CLSCompliantAttribute(false)]
-		IProjectReference GenerateProjectFor(NMaven.Model.Pom.Model model, 
-		                            DirectoryInfo sourceFileDirectory,
-		                            string projectFileName,
-                                    ICollection<IProjectReference> projectReferences,
-                                    DirectoryInfo localRepository);
-		
-        /// <summary>
-        /// Generates a solution file that references the specified projects.
-        /// </summary>
-        /// <param name="fileInfo">the solution file</param>
-        /// <param name="projectReferences">csproj references</param>
-        void GenerateSolutionFor(FileInfo fileInfo, ICollection<IProjectReference> projectReferences);
-		
-        /// <summary>
-        /// Creates a model from the pom.
-        /// </summary>
-        /// <param name="fileName">file name of the pom.xml file</param>
-        /// <returns>a model binding of the pom file</returns>
-        /// 
-        [CLSCompliantAttribute(false)]
-		NMaven.Model.Pom.Model CreatePomModelFor(string fileName);
-		
-	}
-}
+#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.Collections.Generic;
+
+using NMaven.Model;
+
+namespace NMaven.Solution
+{
+	/// <summary>
+	/// Provides services for generating .NET project and solution files.
+	/// </summary>
+    [CLSCompliantAttribute(false)]
+	public interface IProjectGenerator
+	{
+		
+        /// <summary>
+        /// Generates a .csproj file from the specified maven model.
+        /// </summary>
+        /// <param name="model">the pom model</param>
+        /// <param name="sourceFileDirectory">the directory containing the source files </param>
+        /// <param name="projectFileName">the name of the project: usually corresponds to the artifact id</param>
+        /// <param name="projectReferences">references to other projects that this project is dependent upon</param>
+        /// <returns></returns>
+        [CLSCompliantAttribute(false)]
+		IProjectReference GenerateProjectFor(NMaven.Model.Pom.Model model, 
+		                            DirectoryInfo sourceFileDirectory,
+		                            string projectFileName,
+                                    ICollection<IProjectReference> projectReferences,
+                                    DirectoryInfo localRepository);
+		
+        /// <summary>
+        /// Generates a solution file that references the specified projects.
+        /// </summary>
+        /// <param name="fileInfo">the solution file</param>
+        /// <param name="projectReferences">csproj references</param>
+        void GenerateSolutionFor(FileInfo fileInfo, ICollection<IProjectReference> projectReferences);
+		
+        /// <summary>
+        /// Creates a model from the pom.
+        /// </summary>
+        /// <param name="fileName">file name of the pom.xml file</param>
+        /// <returns>a model binding of the pom file</returns>
+        /// 
+        [CLSCompliantAttribute(false)]
+		NMaven.Model.Pom.Model CreatePomModelFor(string fileName);
+		
+	}
+}

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/IProjectGenerator.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.Solution/IProjectReference.cs
------------------------------------------------------------------------------
    svn:eol-style = native