incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r531662 - in /incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin: ./ src/ src/main/ src/main/csharp/ src/main/csharp/NMaven/ src/main/csharp/NMaven/Plugin/ src/main/csharp/NMaven/Plugin/Generator/ src/main/csharp/NMaven/Plugin/Inject...
Date Mon, 23 Apr 2007 23:50:55 GMT
Author: sisbell
Date: Mon Apr 23 16:50:53 2007
New Revision: 531662

URL: http://svn.apache.org/viewvc?view=rev&rev=531662
Log:
Initial import of core .NET plugin package.

Added:
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/NMaven.Plugin.sln
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/pom.xml   (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample-public.snk   (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample.snk   (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven.Plugin.csproj
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClass.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/FieldInjector.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/MavenProjectInjector.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/StringInjector.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/injectors.xml
  (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven.Plugin-Test.csproj
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/AbstractMojoTest.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/TestMojo.cs
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/text.xml
  (with props)

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/NMaven.Plugin.sln
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/NMaven.Plugin.sln?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/NMaven.Plugin.sln (added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/NMaven.Plugin.sln Mon Apr 23
16:50:53 2007
@@ -0,0 +1,28 @@
+Microsoft Visual Studio Solution File, Format Version 9.00
+# SharpDevelop 2.0.0.1710
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NMaven.Plugin", "src\main\csharp\NMaven.Plugin.csproj",
"{d2fb13bd-37b4-4335-9883-1b34d39bc121}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NMaven.Plugin-Test", "src\test\csharp\NMaven.Plugin-Test.csproj",
"{fe42fa80-6048-494c-a70c-1ed9fe3c642e}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NMaven.Plugin.Solution", "..\NMaven.Plugin.Solution\src\main\csharp\NMaven.Plugin.Solution.csproj",
"{8e00e1d0-efb1-4e03-bc48-00ebf5f6579d}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{FE42FA80-6048-494C-A70C-1ED9FE3C642E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{FE42FA80-6048-494C-A70C-1ED9FE3C642E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{FE42FA80-6048-494C-A70C-1ED9FE3C642E}.Release|Any CPU.Build.0 = Release|Any CPU
+		{FE42FA80-6048-494C-A70C-1ED9FE3C642E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D2FB13BD-37B4-4335-9883-1B34D39BC121}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D2FB13BD-37B4-4335-9883-1B34D39BC121}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D2FB13BD-37B4-4335-9883-1B34D39BC121}.Release|Any CPU.Build.0 = Release|Any CPU
+		{D2FB13BD-37B4-4335-9883-1B34D39BC121}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{8E00E1D0-EFB1-4E03-BC48-00EBF5F6579D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{8E00E1D0-EFB1-4E03-BC48-00EBF5F6579D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{8E00E1D0-EFB1-4E03-BC48-00EBF5F6579D}.Release|Any CPU.Build.0 = Release|Any CPU
+		{8E00E1D0-EFB1-4E03-BC48-00EBF5F6579D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+	EndGlobalSection
+EndGlobal

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/pom.xml?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/pom.xml (added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/pom.xml Mon Apr 23 16:50:53
2007
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?><!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+  <parent>
+    <groupId>NMaven</groupId>
+    <version>0.14</version>
+    <artifactId>NMaven.Assemblies</artifactId>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NMaven.Plugin</groupId>
+  <artifactId>NMaven.Plugin</artifactId>
+  <packaging>library</packaging>
+  <version>0.14</version>
+  <name>NMaven.Plugin</name>
+  <dependencies>
+    <dependency>
+      <groupId>NMaven.Model</groupId>
+      <artifactId>NMaven.Model.Pom</artifactId>
+      <type>library</type>
+      <version>0.14</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <keyfile>sample.snk</keyfile>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <profiles>
+    <profile>
+      <activation>
+        <property>
+          <name>version</name>
+          <value>1.1</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.dotnet.plugins</groupId>
+            <artifactId>maven-compile-plugin</artifactId>
+            <extensions>true</extensions>
+            <configuration>
+              <frameworkVersion>1.1.4322</frameworkVersion>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
\ No newline at end of file

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

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample-public.snk
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample-public.snk?view=auto&rev=531662
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample-public.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample.snk
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample.snk?view=auto&rev=531662
==============================================================================
Binary file - no diff available.

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/sample.snk
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven.Plugin.csproj
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven.Plugin.csproj?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven.Plugin.csproj
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven.Plugin.csproj
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,52 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <ProjectGuid>{d2fb13bd-37b4-4335-9883-1b34d39bc121}</ProjectGuid>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <RootNameSpace>NMaven.Plugin</RootNameSpace>
+    <AssemblyName>NMaven.Plugin</AssemblyName>
+    <BaseIntermediateOutputPath>..\..\..\target\obj\</BaseIntermediateOutputPath>
+    <OutputType>Library</OutputType>
+    <OutputPath>..\..\..\target\bin\Debug\</OutputPath>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Xml" />
+    <Reference Include="System.Xml" />
+    <Reference Include="NUnit.Framework">
+      <HintPath>..\..\..\..\..\..\..\.m2\repository\NUnit\NUnit.Framework\2.2.8.0\NUnit.Framework.dll</HintPath>
+      <SpecificVersion>False</SpecificVersion>
+    </Reference>
+    <Reference Include="NMaven.Plugin.Resx">
+      <HintPath>..\..\..\..\..\..\..\.m2\repository\NMaven\Plugin\NMaven.Plugin.Resx\0.14\NMaven.Plugin.Resx.exe</HintPath>
+      <SpecificVersion>False</SpecificVersion>
+    </Reference>
+    <Reference Include="NMaven.Model.Pom">
+      <HintPath>..\..\..\..\..\..\..\.m2\repository\NMaven\Model\NMaven.Model.Pom\0.14\NMaven.Model.Pom.dll</HintPath>
+      <SpecificVersion>False</SpecificVersion>
+    </Reference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="NMaven\Plugin\AbstractMojo.cs" />
+    <Compile Include="NMaven\Plugin\FieldAttribute.cs" />
+    <Compile Include="NMaven\Plugin\Generator\JavaClass.cs" />
+    <Compile Include="NMaven\Plugin\Generator\JavaClassUnmarshaller.cs" />
+    <Compile Include="NMaven\Plugin\Generator\JavaField.cs" />
+    <Compile Include="NMaven\Plugin\ClassAttribute.cs" />
+    <Compile Include="NMaven\Plugin\PluginDomainManager.cs" />
+    <Compile Include="..\..\..\..\NMaven.Plugin.Loader\src\main\csharp\NMaven\Plugin\Loader\PluginLoader.cs">
+      <Link>PluginLoader.cs</Link>
+    </Compile>
+    <Compile Include="NMaven\Plugin\Injector\FieldInjector.cs" />
+    <Compile Include="NMaven\Plugin\Injector\MavenProjectInjector.cs" />
+    <Compile Include="NMaven\Plugin\Injector\StringInjector.cs" />
+    <Compile Include="NMaven\Plugin\Injector\Impl\FieldInjectorRepository.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="NMaven" />
+    <Folder Include="NMaven\Plugin" />
+    <Folder Include="NMaven\Plugin\Generator" />
+    <Folder Include="NMaven\Plugin\Injector" />
+    <Folder Include="NMaven\Plugin\Injector\Impl" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
+</Project>
\ No newline at end of file

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/AbstractMojo.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,115 @@
+//
+// 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.
+//
+
+using System;
+using System.IO;
+using System.Reflection;
+using System.Xml;
+using System.Xml.Serialization;
+
+using NMaven.Plugin.Injector;
+using NMaven.Plugin.Injector.Impl;
+
+namespace NMaven.Plugin
+{
+	public abstract class AbstractMojo : MarshalByRefObject 
+    {
+        public abstract void Execute();
+        
+        public abstract Type getT();
+        
+        public void init()
+        {
+			        	
+        }
+                     
+        public void injectFields(String configurationFile)
+        {
+			XmlTextReader reader = 
+				new XmlTextReader(@configurationFile);
+			FieldInjectorRepository fieldInjectorRepository = new FieldInjectorRepository();
+			
+			while(reader.Read() == true)
+			{	
+				FieldInfo fieldInfo = GetFieldInfoFor(this.getT(), reader.Name);				
+				if(fieldInfo != null) 
+				{
+					IFieldInjector fieldInjector = fieldInjectorRepository.getFieldInjectorFor(fieldInfo);
+					
+					//string fieldType = this.getFieldTypeFor(fieldInfo);
+					//Console.WriteLine("Type = " + fieldType);
+					if(fieldType.Equals("java.lang.String") || fieldType.Equals("String"))
+					{
+						//IFieldInjector fieldInjector = new StringInjector();
+						fieldInjector.inject(fieldInfo, reader.ReadString() )	
+					}
+					else if(fieldType.Equals("org.apache.maven.project.MavenProject"))
+					{	
+						//IFieldInjector fieldInjector = new MavenProjectInjector();
+						fieldInjector.inject(fieldInfo, reader.ReadString());
+						//fieldInfo.SetValue(this, this.CreatePomModelFor(reader.ReadString()));
+					}											
+				}					
+			}        	
+        }
+        
+
+        	/*
+			XmlTextReader reader = 
+				new XmlTextReader(@"C:\Documents and Settings\shane\nmaven-apache\SI_XPT\assemblies\NMaven.Plugin\src\test\resources\text.xml");
+
+			TestMojo m = new TestMojo();
+			
+			while(reader.Read() == true)
+			{	
+				FieldInfo fieldInfo = GetFieldInfoFor(m, reader.Name);
+				if(fieldInfo != null) fieldInfo.SetValue(m, reader.ReadString());
+			}
+		
+			System.Attribute[] attributes =
+				System.Attribute.GetCustomAttributes(typeof(TestMojo));
+			Console.WriteLine("Attributes = " + attributes.Length);
+			foreach(Attribute attribute in attributes) {
+				
+				FieldAttribute mojo = (FieldAttribute) attribute;
+				
+				//Console.WriteLine("LR: " + mojo.Name);
+			}
+					
+			m.print();   
+                                  */
+                                 
+
+
+        
+        private FieldInfo GetFieldInfoFor(Type type, String name)
+        {
+        	foreach(FieldInfo field in type.GetFields())
+	        {
+	            foreach (Attribute attribute in field.GetCustomAttributes(true))
+	            {	            	
+					FieldAttribute fieldAttribute = (FieldAttribute) attribute;
+					if(fieldAttribute.Name.Equals(name))
+						return field;
+	            }
+	        }
+	        return null;
+        }
+    }
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/ClassAttribute.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,40 @@
+using System;
+
+namespace NMaven.Plugin
+{
+	/// <summary>
+	/// Description of ClassAttribute.
+	/// </summary>
+	public class ClassAttribute : Attribute
+	{
+		private string phase;
+		
+		private string goal;
+
+		public string Phase 
+		{
+			get 
+			{
+				return phase;
+			}
+			
+			set
+			{
+				this.phase = value;
+			}			
+		}	
+		
+		public string Goal 
+		{
+			get 
+			{
+				return goal;
+			}
+			
+			set
+			{
+				this.goal = value;
+			}			
+		}		
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/FieldAttribute.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,55 @@
+using System;
+
+namespace NMaven.Plugin
+{
+	/// <summary>
+	/// Description of StringAttribute.
+	/// </summary>
+	public class FieldAttribute : Attribute
+	{
+		private string name;
+		
+		private string expression;
+		
+		private string type;
+		
+		public FieldAttribute(string name)
+		{
+			this.name = name;	
+		}
+		
+		public string Type 
+		{
+			get 
+			{
+				return type;
+			}
+			
+			set
+			{
+				this.type = value;
+			}			
+		}
+		
+		public string Expression 
+		{
+			get 
+			{
+				return expression;
+			}
+			
+			set
+			{
+				this.expression = value;
+			}			
+		}
+		
+		public string Name 
+		{
+			get 
+			{
+				return name;
+			}
+		}
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClass.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClass.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClass.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClass.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,83 @@
+
+using System;
+using System.Collections.Generic;
+
+namespace NMaven.Plugin.Generator
+{
+	/// <summary>
+	/// Description of JavaClass.
+	/// </summary>
+	public class JavaClass
+	{
+		private string className;
+		
+		private string packageName;
+		
+		private string extendsClassName;
+		
+		private List<String> comments;
+		
+		private List<JavaField> javaFields;
+		
+		public string ClassName
+		{
+			get {
+				return className;
+			}
+			
+			set
+			{
+				this.className = value;
+			}
+		}
+		
+		public List<String> Comments
+		{
+			get {
+				return comments;
+			}
+			
+			set
+			{
+				this.comments = value;
+			}
+		}			
+		
+		public List<JavaField> JavaFields
+		{
+			get {
+				return javaFields;
+			}
+			
+			set
+			{
+				this.javaFields = value;
+			}
+		}		
+		
+		public string ExtendsClassName
+		{
+			get {
+				return extendsClassName;
+			}
+			
+			set
+			{
+				this.extendsClassName = value;
+			}
+		}		
+		
+		public string PackageName
+		{
+			get {
+				return packageName;
+			}
+			
+			set
+			{
+				this.packageName = value;
+			}
+		}
+		
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaClassUnmarshaller.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,127 @@
+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
+	{
+		public JavaClassUnmarshaller()
+		{
+		}
+				
+		public JavaClass convert(Type abstractMojoType)
+		{		
+	        JavaClass javaClass = new JavaClass();
+		 	javaClass.PackageName = abstractMojoType.Namespace;
+		 	javaClass.ClassName = abstractMojoType.Name;
+		 	javaClass.ExtendsClassName = "org.apache.maven.plugin.AbstractMojo";
+		 	
+		 	List<String> classComments = new List<String>();
+			System.Attribute[] attributes =
+				System.Attribute.GetCustomAttributes(abstractMojoType);
+			foreach(Attribute attribute in attributes) 
+			{
+				ClassAttribute mojo = (ClassAttribute) attribute;			
+				classComments.Add(@"@phase = """ + mojo.Phase + @"""");	
+				classComments.Add(@"@goal = """ + mojo.Goal + @"""");	
+			}
+			
+			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;
+					
+					List<String> comments = new List<String>();
+					comments.Add(@"@parameter expression = """ + mojo.Expression + @"""");
+					
+				 	JavaField javaField = new JavaField();
+				 	javaField.Access = "private";
+				 	javaField.FieldName = mojo.Name;
+				 	javaField.ReturnType = mojo.Type;
+				 	javaField.Comments = comments;
+				 	javaFields.Add(javaField);
+	            }
+	        }
+        		 	
+		 	javaClass.JavaFields = javaFields;
+		 	return javaClass;
+		}
+			
+		public void unmarshall(JavaClass javaClass, FileInfo fileInfo)
+		{
+			StreamWriter streamWriter = fileInfo.CreateText();
+			streamWriter.WriteLine("package " + javaClass.PackageName + ";");
+			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("     */");						
+					}
+
+					streamWriter.WriteLine("        " + javaField.Access + " " + 
+					                      javaField.ReturnType + " " + javaField.FieldName+ ";");
+					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;
+        }	
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Generator/JavaField.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Generic;
+
+namespace NMaven.Plugin.Generator
+{
+	/// <summary>
+	/// Description of JavaField.
+	/// </summary>
+	public class JavaField
+	{
+		private string fieldName;
+		
+		private string fieldValue;
+		
+		private string access;
+		
+		private string returnType;
+		
+		private List<String> comments;
+
+		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;
+			}
+		}			
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/FieldInjector.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/FieldInjector.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/FieldInjector.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/FieldInjector.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,15 @@
+using System;
+using System.Reflection;
+
+namespace NMaven.Plugin.Injector
+{
+	/// <summary>
+	/// Description of FieldInjector.
+	/// </summary>
+	public interface IFieldInjector
+	{
+		void Inject(FieldInfo fieldInfo, object fieldObject);
+		
+		string getFieldType();
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/Impl/FieldInjectorRepository.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,40 @@
+/*
+ * Created by SharpDevelop.
+ * User: shane
+ * Date: 4/23/2007
+ * Time: 1:34 PM
+ * 
+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
+ */
+
+using System;
+
+namespace NMaven.Plugin.Injector.Impl
+{
+	/// <summary>
+	/// Description of FieldInjectorRepository.
+	/// </summary>
+	public class FieldInjectorRepository
+	{
+		public FieldInjectorRepository()
+		{
+		}
+		
+		public IFieldInjector getFieldInjectorFor(FieldInfo fieldInfo)
+		{
+			
+		}
+		
+
+       public String GetFieldTypeFor(FieldInfo fieldInfo)
+       {
+	    	foreach (Attribute attribute in fieldInfo.GetCustomAttributes(true))
+	        {	            	
+				FieldAttribute fieldAttribute = (FieldAttribute) attribute;
+				return fieldAttribute.Type;
+	        }  
+	    	return null;
+       }
+       
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/MavenProjectInjector.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/MavenProjectInjector.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/MavenProjectInjector.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/MavenProjectInjector.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,30 @@
+using System;
+using System.IO;
+using System.Reflection;
+using System.Xml;
+using System.Xml.Serialization;
+
+namespace NMaven.Plugin.Injector
+{
+	/// <summary>
+	/// Description of MavenProjectInjector.
+	/// </summary>
+	public class MavenProjectInjector : IFieldInjector 
+	{
+		public MavenProjectInjector()
+		{
+		}
+		
+		public void inject(FieldInfo fieldInfo, object fieldObject)
+		{
+			fieldInfo.SetValue(this, this.CreatePomModelFor( ((string) fieldObject) ));
+		}
+		
+   		private NMaven.Model.Model CreatePomModelFor(string fileName)
+		{
+			TextReader reader = new StreamReader(fileName);
+		    XmlSerializer serializer = new XmlSerializer(typeof(NMaven.Model.Model));
+			return (NMaven.Model.Model) serializer.Deserialize(reader);	
+		}   		
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/StringInjector.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/StringInjector.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/StringInjector.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/Injector/StringInjector.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,20 @@
+using System;
+using System.Reflection;
+
+namespace .NMaven.Plugin.Injector
+{
+	/// <summary>
+	/// Description of StringInjector.
+	/// </summary>
+	public class StringInjector : IFieldInjector
+	{
+		public StringInjector()
+		{
+		}
+		
+		public void inject(FieldInfo fieldInfo, object fieldObject)
+		{
+			fieldInfo.SetValue(this, (string) fieldObject );
+		}		
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/csharp/NMaven/Plugin/PluginDomainManager.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,43 @@
+using System;
+using System.IO;
+using System.Reflection;
+
+namespace NMaven.Plugin
+{
+	/// <summary>
+	/// Description of PluginDomainManager.
+	/// </summary>
+	public class PluginDomainManager : AppDomainManager
+	{
+		public PluginDomainManager() : base()
+		{
+			Console.WriteLine("Creating Plugin Domain Manager");
+		}
+
+		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;
+			}
+			
+			//ObjectHandler h = AppDomain.CurrentDomain.CreateInstanceFrom();
+			
+	/*		
+			Type plugin = assembly.GetType("NMaven.Plugin.Solution.SolutionPlugin");
+			
+			object o = Activator.CreateInstance(plugin);
+			MethodInfo executeMethod = plugin.GetMethod("Execute");
+			executeMethod.Invoke(o, null);	
+		*/
+		}
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/injectors.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/injectors.xml?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/injectors.xml
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/injectors.xml
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,7 @@
+<injectors>
+  <injector>
+    <injectorClass></injectorClass>
+    <javaClassType></javaClassType>
+    <parameterType></parameterType>
+  </injector>
+</injectors>
\ No newline at end of file

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/main/resources/resgen/injectors.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven.Plugin-Test.csproj
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven.Plugin-Test.csproj?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven.Plugin-Test.csproj
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven.Plugin-Test.csproj
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,33 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <ProjectGuid>{fe42fa80-6048-494c-a70c-1ed9fe3c642e}</ProjectGuid>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <RootNameSpace>NMaven.Plugin</RootNameSpace>
+    <AssemblyName>NMaven.Plugin-Test</AssemblyName>
+    <BaseIntermediateOutputPath>..\..\..\target\obj\</BaseIntermediateOutputPath>
+    <OutputType>Library</OutputType>
+    <OutputPath>..\..\..\target\bin\Debug\</OutputPath>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="NUnit.Framework" />
+    <Reference Include="System" />
+    <Reference Include="System.Xml" />
+    <Reference Include="NMaven.Plugin.Resx">
+      <HintPath>..\..\..\..\..\..\..\.m2\repository\NMaven\Plugin\NMaven.Plugin.Resx\0.14\NMaven.Plugin.Resx.exe</HintPath>
+      <SpecificVersion>False</SpecificVersion>
+    </Reference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="NMaven\Plugin\AbstractMojoTest.cs" />
+    <Compile Include="NMaven\Plugin\TestMojo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="NMaven" />
+    <Folder Include="NMaven\Plugin" />
+    <ProjectReference Include="C:\Documents and Settings\shane\nmaven-apache\SI_XPT\assemblies\NMaven.Plugin\src\main\csharp\NMaven.Plugin.csproj">
+      <Project>{d2fb13bd-37b4-4335-9883-1b34d39bc121}</Project>
+      <Name>NMaven.Plugin-Test</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
+</Project>
\ No newline at end of file

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/AbstractMojoTest.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/AbstractMojoTest.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/AbstractMojoTest.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/AbstractMojoTest.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,42 @@
+using System;
+using System.IO;
+using NMaven.Plugin.Generator;
+using NUnit.Framework;
+
+using System.Collections.Generic;
+
+namespace NMaven.Plugin
+{
+ [TestFixture]
+ public class AbstractMojoTest
+ {
+ [Test]
+	 public void TestMethod()
+	 {
+    //    	AbstractMojo mojo = new AbstractMojo();
+//        	mojo.Execute();
+        	/*
+        		 	JavaClass javaClass = new JavaClass();
+	 	javaClass.PackageName = "org.apache.maven";
+	 	javaClass.ClassName = "MyTestMojo";
+	 	javaClass.ExtendsClassName = "org.apache.maven.plugins.AbstractMojo";
+	 	JavaField javaField = new JavaField();
+	 	javaField.Access = "private";
+	 	javaField.FieldName = "testM";
+	 	javaField.ReturnType = "String";
+	 	
+	 	List<JavaField> javaFields = new List<JavaField>();
+	 	javaFields.Add(javaField);
+	 	javaClass.JavaFields = javaFields;
+	 	*/
+	 	JavaClassUnmarshaller jc = new JavaClassUnmarshaller();
+	 	
+	 	JavaClass javaClass = jc.convert(typeof(TestMojo));
+	 	FileInfo fileInfo = new FileInfo(@"c:\test-1.java");
+	 	jc.unmarshall(javaClass, fileInfo);   
+	 	
+	 	//PluginLoader pluginLoader = new PluginLoader();
+	 	//pluginLoader.load();
+	 }
+}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/TestMojo.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/TestMojo.cs?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/TestMojo.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/csharp/NMaven/Plugin/TestMojo.cs
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,38 @@
+
+using System;
+
+namespace NMaven.Plugin
+{
+	/// <summary>
+	/// Description of TestMojo.
+	/// </summary>
+	[ClassAttribute(Phase = "compile", Goal = "generate")]
+	public class TestMojo : AbstractMojo
+	{
+		[FieldAttribute("localRepository", Expression = "${localRepository}", Type = "String")]
+		public String localRepository;
+		
+		[FieldAttribute("vendor", Expression = "vendor", Type = "String")]
+		public String vendor;		
+		
+		public TestMojo()
+		{
+		
+		}
+		
+		public override Type getT()
+		{
+			return null;
+		}
+		
+		public override void Execute()
+		{
+			
+		}
+		
+		public void print()
+		{
+			Console.WriteLine("VALUE = " + localRepository);
+		}
+	}
+}

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/text.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/text.xml?view=auto&rev=531662
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/text.xml
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/text.xml
Mon Apr 23 16:50:53 2007
@@ -0,0 +1,4 @@
+<configuration>
+  <localRepository>c:\tmp\repo</localRepository>
+  <vendor>MICROSOFT</vendor>
+</configuration>

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.Plugin/src/test/resources/text.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message