incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r485313 [4/15] - in /incubator/nmaven/trunk: components/ components/dotnet-artifact/ components/dotnet-artifact/src/ components/dotnet-artifact/src/main/ components/dotnet-artifact/src/main/java/ components/dotnet-artifact/src/main/java/org...
Date Sun, 10 Dec 2006 23:44:12 GMT
Added: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,367 @@
+<compilerPlugins>
+    <compilerPlugin>
+        <identifier>MS-CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DefaultCompiler</pluginClass>
+        <vendor>MICROSOFT</vendor>
+        <executable>csc</executable>
+        <language>C_SHARP</language>
+        <profile>FULL</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+                <architecture>x86</architecture>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>delaysign</include>
+                <include>doc</include>
+                <include>keyfile</include>
+                <include>keycontainer</include>
+                <include>platform</include>
+                <include>recurse</include>
+                <include>reference</include>
+                <include>addmodule</include>
+                <include>win32res</include>
+                <include>win32icon</include>
+                <include>resource</include>
+                <include>linkresource</include>
+                <include>debug</include>
+                <include>optimize</include>
+                <include>warnaserror</include>
+                <include>warn</include>
+                <include>nowarn</include>
+                <include>checked</include>
+                <include>unsafe</include>
+                <include>define</include>
+                <include>langversion</include>
+                <include>noconfig</include>
+                <include>baseaddress</include>
+                <include>bugreport</include>
+                <include>codepage</include>
+                <include>utf8output</include>
+                <include>main</include>
+                <include>fullpaths</include>
+                <include>filealign</include>
+                <include>pdb</include>
+                <include>nostdlib</include>
+                <include>lib</include>
+                <include>errorreport</include>
+                <include>moduleassemblyname</include>
+                <include>nologo</include>                
+           </includes>
+        </commandFilter>        
+    </compilerPlugin>
+
+    <compilerPlugin>
+        <identifier>MS-CS:COMPACT</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.CSharpCompilerForProfile</pluginClass>
+        <vendor>MICROSOFT</vendor>
+        <executable>csc</executable>
+        <language>C_SHARP</language>
+        <profile>COMPACT</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+                <architecture>x86</architecture>
+            </platform>
+        </platforms>
+        <defaultAssemblyPath>C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE</defaultAssemblyPath>
+        <assemblies>
+            <assembly>mscorlib</assembly>
+            <assembly>System.Data</assembly>
+            <assembly>System</assembly>
+            <assembly>System.Drawing</assembly>
+            <assembly>System.Messaging</assembly>
+            <assembly>System.Web.Services</assembly>
+            <assembly>System.Windows.Forms.DataGrid</assembly>
+            <assembly>System.Windows.Forms</assembly>
+            <assembly>Microsoft.WindowsCE.Forms</assembly>
+            <assembly>System.Xml</assembly>
+        </assemblies>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>delaysign</include>
+                <include>doc</include>
+                <include>keyfile</include>
+                <include>keycontainer</include>
+                <include>platform</include>
+                <include>recurse</include>
+                <include>reference</include>
+                <include>addmodule</include>
+                <include>win32res</include>
+                <include>win32icon</include>
+                <include>resource</include>
+                <include>linkresource</include>
+                <include>debug</include>
+                <include>optimize</include>
+                <include>warnaserror</include>
+                <include>warn</include>
+                <include>nowarn</include>
+                <include>checked</include>
+                <include>unsafe</include>
+                <include>define</include>
+                <include>langversion</include>
+                <include>noconfig</include>
+                <include>baseaddress</include>
+                <include>bugreport</include>
+                <include>codepage</include>
+                <include>utf8output</include>
+                <include>main</include>
+                <include>fullpaths</include>
+                <include>filealign</include>
+                <include>pdb</include>
+                <include>nostdlib</include>
+                <include>lib</include>
+                <include>errorreport</include>
+                <include>moduleassemblyname</include>
+                <include>nologo</include>
+           </includes>
+        </commandFilter>
+    </compilerPlugin>
+
+    <compilerPlugin>
+        <identifier>MS-VB</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DefaultCompiler</pluginClass>
+        <vendor>MICROSOFT</vendor>
+        <executable>vbc</executable>
+        <language>VB</language>
+        <profile>FULL</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>doc</include>
+                <include>recurse</include>
+                <include>reference</include>
+                <include>addmodule</include>
+                <include>win32resource</include>
+                <include>win32icon</include>
+                <include>resource</include>
+                <include>linkresource</include>
+                <include>debug</include>
+                <include>optimize</include>
+                <include>removeintchecks</include>
+                <include>warnaserror</include>
+                <include>nowarn</include>
+                <include>define</include>
+                <include>imports</include>
+                <include>optionexplicit</include>
+                <include>rootnamespace</include>
+                <include>optionstrict</include>
+                <include>optioncompare</include>
+           </includes>
+        </commandFilter>
+    </compilerPlugin>
+
+    <compilerPlugin>
+        <identifier>MONO-CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DefaultCompiler</pluginClass>
+        <vendor>MONO</vendor>
+        <language>C_SHARP</language>
+        <profile>FULL</profile>
+        <executable>mcs</executable>
+        <frameworkVersions>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>delaysign</include>
+                <include>doc</include>
+                <include>keyfile</include>
+                <include>keycontainer</include>
+                <include>recurse</include>
+                <include>reference</include>
+                <include>addmodule</include>
+                <include>checked</include>
+                <include>codepage</include>
+                <include>clscheck</include>
+                <include>debug</include>
+                <include>optimize</include>
+                <include>warnaserror</include>
+                <include>warn</include>
+                <include>unsafe</include>
+                <include>define</include>
+                <include>langversion</include>
+                <include>main</include>
+                <include>noconfig</include>
+                <include>nostdlib</include>
+                <include>nowarn</include>
+                <include>resource</include>
+           </includes>
+        </commandFilter>
+    </compilerPlugin>
+
+
+    <compilerPlugin>
+        <identifier>MONO-CS-2</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DefaultCompiler</pluginClass>
+        <vendor>MONO</vendor>
+        <language>C_SHARP</language>
+        <profile>FULL</profile>
+        <executable>gmcs</executable>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>delaysign</include>
+                <include>doc</include>
+                <include>keyfile</include>
+                <include>keycontainer</include>
+                <include>recurse</include>
+                <include>reference</include>
+                <include>addmodule</include>
+                <include>checked</include>
+                <include>codepage</include>
+                <include>clscheck</include>
+                <include>debug</include>
+                <include>optimize</include>
+                <include>warnaserror</include>
+                <include>warn</include>
+                <include>unsafe</include>
+                <include>define</include>
+                <include>langversion</include>
+                <include>main</include>
+                <include>noconfig</include>
+                <include>nostdlib</include>
+                <include>nowarn</include>
+                <include>resource</include>
+           </includes>
+        </commandFilter>
+    </compilerPlugin>
+
+    <compilerPlugin>
+        <identifier>NEM</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.NemerleCompiler</pluginClass>
+        <vendor>MONO</vendor>
+        <language>NEMERLE</language>
+        <profile>FULL</profile>
+        <executable>ncc</executable>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>reference</include>
+                <include>library-path</include>
+                <include>define</include>
+                <include>doc</include>
+                <include>resource</include>
+                <include>linkresource</include>
+                <include>debug</include>
+                <include>pkg-config</include>
+                <include>warn</include>
+                <include>nowarn</include>
+                <include>keyfile</include>
+                <include>main</include>
+            </includes>
+        </commandFilter>
+    </compilerPlugin>
+   <compilerPlugin>
+        <identifier>DotGNU-CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DotGNUCompiler</pluginClass>
+        <vendor>DotGNU</vendor>
+        <language>C_SHARP</language>
+        <profile>FULL</profile>
+        <executable>cscc</executable>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+    </compilerPlugin>
+</compilerPlugins>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/compiler-plugins.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/executable-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/executable-plugins.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/executable-plugins.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/executable-plugins.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,173 @@
+<executablePlugins>
+    <executablePlugin>
+        <identifier>MONO:XSD</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.impl.DefaultNetExecutable</pluginClass>
+        <vendor>MONO</vendor>
+        <executable>xsd</executable>
+        <profile>XSD:SCHEMA</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>classes</include>
+                <include>dataset</include>
+                <include>element</include>
+                <include>namespace</include>
+                <include>language</include>
+                <include>generator</include>
+                <include>o</include>
+                <include>type</include>
+                <include>uri</include>
+           </includes>
+        </commandFilter>
+    </executablePlugin>
+    <executablePlugin>
+        <identifier>MONO:XSD:XML_INSTANCE</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.impl.DefaultNetExecutable</pluginClass>
+        <vendor>MONO</vendor>
+        <executable>xsd</executable>
+        <profile>XSD:XML_INSTANCE</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>o</include>
+           </includes>
+        </commandFilter>
+    </executablePlugin>
+    <executablePlugin>
+        <identifier>MS:XSD:XML_INSTANCE</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.impl.DefaultNetExecutable</pluginClass>
+        <vendor>MICROSOFT</vendor>
+        <executable>xsd</executable>
+        <profile>XSD:XML_INSTANCE</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>o</include>
+           </includes>
+        </commandFilter>
+    </executablePlugin>
+    <executablePlugin>
+        <identifier>MS:XSD:SCHEMA</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.impl.DefaultNetExecutable</pluginClass>
+        <vendor>MICROSOFT</vendor>
+        <executable>xsd</executable>
+        <profile>XSD:SCHEMA</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>classes</include>
+                <include>dataset</include>
+                <include>element</include>
+                <include>fields</include>
+                <include>enableDataBinding</include>
+                <include>namespace</include>
+                <include>language</include>
+                <include>out</include>
+                <include>o</include>
+                <include>type</include>
+                <include>uri</include>
+                <include>parameters</include>
+           </includes>
+        </commandFilter>
+    </executablePlugin>
+    <executablePlugin>
+        <identifier>MS:RESGEN</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.impl.DefaultNetExecutable</pluginClass>
+        <vendor>MICROSOFT</vendor>
+        <executable>resgen</executable>
+        <profile>RESGEN</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+        </platforms>
+    </executablePlugin>
+    <executablePlugin>
+        <identifier>MONO:RESGEN</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.impl.DefaultNetExecutable</pluginClass>
+        <vendor>MONO</vendor>
+        <executable>resgen</executable>
+        <profile>RESGEN</profile>
+        <frameworkVersions>
+            <frameworkVersion>2.0.50727</frameworkVersion>
+            <frameworkVersion>1.1.4322</frameworkVersion>
+        </frameworkVersions>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Solaris</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>FreeBSD</operatingSystem>
+            </platform>
+        </platforms>
+    </executablePlugin>
+</executablePlugins>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/executable-plugins.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/net-dependencies.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/net-dependencies.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/net-dependencies.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/net-dependencies.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,14 @@
+<netDependencies>
+    <netDependency>
+        <groupId>NMaven.Utility.ResX</groupId>
+        <artifactId>resx</artifactId>
+        <versionId>0.14</versionId>
+        <type>exe</type>
+    </netDependency>
+    <netDependency>
+        <groupId>NMaven.Utility.Settings</groupId>
+        <artifactId>SettingsGenerator</artifactId>
+        <versionId>0.14</versionId>
+        <type>exe</type>
+    </netDependency>    
+</netDependencies>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/net-dependencies.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/registry-config.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/registry-config.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/registry-config.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/registry-config.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+
+<registry-config>
+    <repositories>
+        <repository>
+            <repository-name>nmaven-settings</repository-name>
+            <repository-class>org.apache.maven.dotnet.vendor.impl.SettingsRepository</repository-class>
+            <repository-config>${user.home}/.m2/nmaven-settings.xml</repository-config>
+            <init-param>
+                <param-name>optional</param-name>
+                <param-value>true</param-value>
+            </init-param>
+        </repository>
+        <repository>
+            <repository-name>nmaven-settings</repository-name>
+            <repository-class>org.apache.maven.dotnet.vendor.impl.SettingsRepository</repository-class>
+            <repository-config>${nmaven.settings}</repository-config>
+            <init-param>
+                <param-name>optional</param-name>
+                <param-value>true</param-value>
+            </init-param>
+        </repository>
+        <repository>
+            <repository-name>compiler-plugins</repository-name>
+            <repository-class>org.apache.maven.dotnet.executable.impl.CompilerPluginsRepository</repository-class>
+            <repository-config>/META-INF/nmaven/compiler-plugins.xml</repository-config>
+        </repository>
+        <repository>
+            <repository-name>assembly-plugins</repository-name>
+            <repository-class>org.apache.maven.dotnet.assembler.impl.AssemblyPluginsRepository</repository-class>
+            <repository-config>/META-INF/nmaven/assembly-plugins.xml</repository-config>
+        </repository>
+        <repository>
+            <repository-name>executable-plugins</repository-name>
+            <repository-class>org.apache.maven.dotnet.executable.impl.ExecutablePluginsRepository</repository-class>
+            <repository-config>/META-INF/nmaven/executable-plugins.xml</repository-config>
+        </repository>
+        <repository>
+            <repository-name>net-dependencies</repository-name>
+            <repository-class>org.apache.maven.dotnet.artifact.impl.NetDependenciesRepository</repository-class>
+            <repository-config>/META-INF/nmaven/net-dependencies.xml</repository-config>
+        </repository>
+    </repositories>
+</registry-config>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/nmaven/registry-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/plexus/components.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/plexus/components.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/plexus/components.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,13 @@
+<component-set>
+    <components>
+        <component>
+            <role>org.apache.maven.dotnet.NMavenRepositoryRegistry</role>
+            <implementation>org.apache.maven.dotnet.impl.NMavenRepositoryRegistryImpl</implementation>
+            <requirements>
+                <requirement>
+                    <role>org.apache.maven.dotnet.registry.RepositoryRegistry</role>
+                </requirement>
+            </requirements>
+        </component>
+    </components>
+</component-set>

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/main/resources/META-INF/plexus/components.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins-dup-languages.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins-dup-languages.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins-dup-languages.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins-dup-languages.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,14 @@
+<assemblyPlugins>
+    <assemblyPlugin>
+        <identifier>CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.assembler.impl.DefaultAssemblyInfoMarshaller</pluginClass>
+        <language>C_SHARP</language>
+        <extension>cs</extension>
+    </assemblyPlugin>
+    <assemblyPlugin>
+        <identifier>CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.assembler.impl.DefaultAssemblyInfoMarshaller</pluginClass>
+        <language>C_SHARP</language>
+        <extension>cs</extension>
+    </assemblyPlugin>
+</assemblyPlugins>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins-dup-languages.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,14 @@
+<assemblyPlugins>
+    <assemblyPlugin>
+        <identifier>CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.assembler.impl.DefaultAssemblyInfoMarshaller</pluginClass>
+        <language>C_SHARP</language>
+        <extension>cs</extension>
+    </assemblyPlugin>
+    <assemblyPlugin>
+        <identifier>CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.assembler.impl.DefaultAssemblyInfoMarshaller</pluginClass>
+        <language>NEMERELE</language>
+        <extension>cs</extension>
+    </assemblyPlugin>
+</assemblyPlugins>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/test/resources/assembly-plugins.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-core/src/test/resources/compiler-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-core/src/test/resources/compiler-plugins.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-core/src/test/resources/compiler-plugins.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-core/src/test/resources/compiler-plugins.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,88 @@
+<compilerPlugins>
+    <compilerPlugin>
+        <identifier>MS-CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DefaultCompiler</pluginClass>
+        <compiler>MICROSOFT</compiler>
+        <executable>csc</executable>
+        <language>C_SHARP</language>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+                <architecture>x86</architecture>
+            </platform>
+        </platforms>
+        <commandFilter>
+            <includes>
+                <include>out</include>
+                <include>target</include>
+                <include>delaysign</include>
+                <include>doc</include>
+                <include>keyfile</include>
+                <include>keycontainer</include>
+                <include>platform</include>
+                <include>recurse</include>
+                <include>reference</include>
+                <include>addmodule</include>
+                <include>win32res</include>
+                <include>win32icon</include>
+                <include>resource</include>
+                <include>debug</include>
+                <include>optimize</include>
+                <include>warnaserror</include>
+                <include>warn</include>
+                <include>nowarn</include>
+                <include>checked</include>
+                <include>unsafe</include>
+                <include>define</include>
+                <include>langversion</include>
+                <include>noconfig</include>
+                <include>baseaddress</include>
+                <include>bugreport</include>
+                <include>codepage</include>
+                <include>utf8output</include>
+                <include>main</include>
+                <include>fullpaths</include>
+                <include>filealign</include>
+                <include>pdb</include>
+                <include>nostdlib</include>
+                <include>lib</include>
+                <include>errorreport</include>
+                <include>moduleassemblyname</include>
+           </includes>
+        </commandFilter>
+    </compilerPlugin>
+
+    <compilerPlugin>
+        <identifier>MONO-CS</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.DefaultCompiler</pluginClass>
+        <compiler>MONO</compiler>
+        <language>C_SHARP</language>
+        <executable>mcs</executable>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+                <architecture>x86</architecture>
+            </platform>
+            <platform>
+                <operatingSystem>Mac OS X</operatingSystem>
+            </platform>
+            <platform>
+                <operatingSystem>Linux</operatingSystem>
+            </platform>
+        </platforms>
+    </compilerPlugin>
+
+    <compilerPlugin>
+        <identifier>NEM</identifier>
+        <pluginClass>org.apache.maven.dotnet.executable.compiler.impl.NemerleCompiler</pluginClass>
+        <compiler>MONO</compiler>
+        <language>NEMERLE</language>
+        <executable>ncc</executable>
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+                <architecture>x86</architecture>
+            </platform>
+        </platforms>
+    </compilerPlugin>
+</compilerPlugins>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-core/src/test/resources/compiler-plugins.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-executable/LICENSE.txt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/LICENSE.txt?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/LICENSE.txt (added)
+++ incubator/nmaven/trunk/components/dotnet-executable/LICENSE.txt Sun Dec 10 15:43:51 2006
@@ -0,0 +1,176 @@
+                               Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS

Propchange: incubator/nmaven/trunk/components/dotnet-executable/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-executable/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/pom.xml?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/pom.xml (added)
+++ incubator/nmaven/trunk/components/dotnet-executable/pom.xml Sun Dec 10 15:43:51 2006
@@ -0,0 +1,57 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <groupId>org.apache.maven.dotnet</groupId>
+        <version>0.14-SNAPSHOT</version>
+        <artifactId>dotnet-components</artifactId>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.maven.dotnet</groupId>
+    <artifactId>dotnet-executable</artifactId>
+    <version>0.14-SNAPSHOT</version>
+    <name>dotnet-executable</name>
+    <description>
+        NMaven
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.maven.dotnet</groupId>
+            <artifactId>dotnet-core</artifactId>
+            <version>0.14-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.dotnet</groupId>
+            <artifactId>dotnet-artifact</artifactId>
+            <version>0.14-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.dotnet</groupId>
+            <artifactId>dotnet-model-executable-plugins</artifactId>
+            <version>0.14-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.maven.dotnet</groupId>
+            <artifactId>dotnet-model-compiler-plugins</artifactId>
+            <version>0.14-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.dotnet</groupId>
+            <artifactId>dotnet-vendor</artifactId>
+            <version>0.14-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/trunk/components/dotnet-executable/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CapabilityMatcher.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CapabilityMatcher.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CapabilityMatcher.java (added)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CapabilityMatcher.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,101 @@
+/*
+ * 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.
+ */
+package org.apache.maven.dotnet.executable;
+
+import org.apache.maven.dotnet.InitializationException;
+import org.apache.maven.dotnet.PlatformUnsupportedException;
+import org.apache.maven.dotnet.executable.compiler.CompilerRequirement;
+import org.apache.maven.dotnet.executable.compiler.CompilerCapability;
+
+import java.util.List;
+
+import org.apache.maven.project.MavenProject;
+
+/**
+ * Provides factory services for creating capabilities (based on user-defined requirements) for compilers and executables.
+ *
+ * @author Shane Isbell
+ */
+public interface CapabilityMatcher
+{
+
+    /**
+     * Returns executable capability for the specified requirement. This method looks at the requirement of the user and returns
+     * an executable that is capable of meeting those requirements.
+     *
+     * @param executableRequirement the requirements for the executable
+     * @return executable capability for the specified requirement.
+     * @throws org.apache.maven.dotnet.PlatformUnsupportedException if the requirements cannot be met by the platform
+     *
+     */
+    ExecutableCapability matchExecutableCapabilityFor( ExecutableRequirement executableRequirement )
+        throws PlatformUnsupportedException;
+
+    /**
+     * Returns executable capability for the specified requirement and match policies. Use this to customize matches beyond
+     * the standard vendor/OS/profile/frameworkVersion parameters.
+     *
+     * @param executableRequirement the requirements for the executable
+     * @param matchPolicies the policies used to specialize the match
+     * @return executable capability for the specified requirement and match policies.
+     * @throws org.apache.maven.dotnet.PlatformUnsupportedException if the requirements cannot be met by the platform
+     *
+     */
+    ExecutableCapability matchExecutableCapabilityFor( ExecutableRequirement executableRequirement,
+                                                       List<ExecutableMatchPolicy> matchPolicies )
+        throws PlatformUnsupportedException;
+
+
+    /**
+     * Returns compiler capability for the specified requirement. This method looks at the requirement of the user and returns
+     * a compiler that is capable of meeting those requirements.
+     *
+     * @param compilerRequirement the requirements for the compiler
+     * @return compiler capability for the specified requirement.
+     * @throws org.apache.maven.dotnet.PlatformUnsupportedException if the requirements cannot be met by the platform
+     *
+     */
+
+    CompilerCapability matchCompilerCapabilityFor( CompilerRequirement compilerRequirement )
+        throws PlatformUnsupportedException;
+
+    /**
+     * Returns compiler capability for the specified requirement and match policies. Use this to customize matches beyond
+     * the standard vendor/OS/profile/language/frameworkVersion parameters.
+     *
+     * @param compilerRequirement requirements for the compiler
+     * @param matchPolicies the policies used to specialize the match
+     * @return compiler capability for the specified requirement and match policies.
+     * @throws PlatformUnsupportedException if the requirements cannot be met by the platform
+     */
+    CompilerCapability matchCompilerCapabilityFor( CompilerRequirement compilerRequirement,
+                                                   List<ExecutableMatchPolicy> matchPolicies )
+        throws PlatformUnsupportedException;
+
+    /**
+     * Initializes the factory.
+     *
+     * @param project the maven project
+     * @throws org.apache.maven.dotnet.InitializationException if there is a problem initializing this factory
+     *
+     */
+    void init( MavenProject project )
+        throws InitializationException;
+
+}

Propchange: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CapabilityMatcher.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandCapability.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandCapability.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandCapability.java (added)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandCapability.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,83 @@
+/*
+ * 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.
+ */
+package org.apache.maven.dotnet.executable;
+
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * Provides information about what commands the compiler can and cannot accept.
+ *
+ * @author Shane Isbell
+ */
+public interface CommandCapability
+{
+    /**
+     * Returns the command options that a compiler supports. This will be used by a <code>CompilerExecutable</code>
+     * implementation to determine whether user-defined parameters are supported by the compiler.
+     *
+     * @return the command options that a compiler supports
+     */
+    List<String> getIncludes();
+
+    /**
+     * Returns the command options that that a compiler does not support. This will be used by a <code>CompilerExecutable</code>
+     * implementation to determine whether user-defined parameters are supported by the compiler.
+     *
+     * @return the command options that that a compiler does not support
+     */
+    List<String> getExcludes();
+
+    /**
+     * Provides factory services for creating a default instance of the command capability.
+     */
+    public static class Factory
+    {
+        /**
+         * Constructor
+         */
+        private Factory()
+        {
+        }
+
+        /**
+         * Creates a command capability.
+         *
+         * @param includes the command options that the compiler supports
+         * @param excludes command options that the compiler does not support
+         * @return the command capability for the specified includes and excludes parameters
+         */
+        public static CommandCapability createDefaultCommandCapability( final List<String> includes,
+                                                                        final List<String> excludes )
+        {
+            return new CommandCapability()
+            {
+                public List<String> getIncludes()
+                {
+                    return ( includes != null ) ? includes : new ArrayList<String>();
+                }
+
+                public List<String> getExcludes()
+                {
+                    return ( excludes != null ) ? excludes : new ArrayList<String>();
+                }
+            };
+        }
+    }
+}

Propchange: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandCapability.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandExecutor.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandExecutor.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandExecutor.java (added)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandExecutor.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,327 @@
+/*
+ * 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.
+ */
+package org.apache.maven.dotnet.executable;
+
+import org.codehaus.plexus.logging.Logger;
+import org.codehaus.plexus.util.cli.*;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.io.File;
+
+/**
+ * Provides services for executing commands (executables or compilers). A <code>NetExecutable</code> or
+ * <code>CompilerExecutable</code> implementation can use the services of this interface for executing commands.
+ *
+ * @author Shane Isbell
+ */
+public interface CommandExecutor
+{
+    /**
+     * Sets the plexus logger.
+     *
+     * @param logger the plexus logger
+     */
+    void setLogger( Logger logger );
+
+    /**
+     * Executes the command for the specified executable and list of command options.
+     *
+     * @param executable the name of the executable (csc, xsd, etc).
+     * @param commands   the command options for the compiler/executable
+     * @throws ExecutionException if compiler or executable writes anything to the standard error stream or if the process
+     *                            returns a process result != 0.
+     */
+    void executeCommand( String executable, List<String> commands )
+        throws ExecutionException;
+
+    /**
+     * Executes the command for the specified executable and list of command options.
+     *
+     * @param executable         the name of the executable (csc, xsd, etc).
+     * @param commands           the commands options for the compiler/executable
+     * @param failsOnErrorOutput if true, throws an <code>ExecutionException</code> if there the compiler or executable
+     *                           writes anything to the error output stream. By default, this value is true
+     * @throws ExecutionException if compiler or executable writes anything to the standard error stream (provided the
+     *                            failsOnErrorOutput is not false) or if the process returns a process result != 0.
+     */
+    void executeCommand( String executable, List<String> commands, boolean failsOnErrorOutput )
+        throws ExecutionException;
+
+    /**
+     * Executes the command for the specified executable and list of command options. If the compiler or executable is
+     * not within the environmental path, you should use this method to specify the working directory. Always use this
+     * method for executables located within the local maven repository.
+     *
+     * @param executable       the name of the executable (csc, xsd, etc).
+     * @param commands         the command options for the compiler/executable
+     * @param workingDirectory the directory where the command will be executed
+     * @throws ExecutionException if compiler or executable writes anything to the standard error stream (provided the
+     *                            failsOnErrorOutput is not false) or if the process returns a process result != 0.
+     */
+    void executeCommand( String executable, List<String> commands, File workingDirectory, boolean failsOnErrorOutput )
+        throws ExecutionException;
+
+    /**
+     * Returns the process result of executing the command. Typically a value of 0 means that the process executed
+     * successfully.
+     *
+     * @return the process result of executing the command
+     */
+    int getResult();
+
+    /**
+     * Returns the standard output from executing the command.
+     *
+     * @return the standard output from executing the command
+     */
+    String getStandardOut();
+
+    /**
+     * Returns the standard error from executing the command.
+     *
+     * @return the standard error from executing the command
+     */
+    String getStandardError();
+
+    /**
+     * Provides factory services for creating a default instance of the command executor.
+     */
+    public static class Factory
+    {
+
+        /**
+         * Constructor
+         */
+        private Factory()
+        {
+        }
+
+        /**
+         * Returns a default instance of the command executor
+         *
+         * @return a default instance of the command executor
+         */
+        public static CommandExecutor createDefaultCommmandExecutor()
+        {
+            return new CommandExecutor()
+            {
+                /**
+                 * Instance of a plugin logger.
+                 */
+                private Logger logger;
+
+                /**
+                 * Standard Out
+                 */
+                private StreamConsumer stdOut;
+
+                /**
+                 * Standard Error
+                 */
+                private ErrorStreamConsumer stdErr;
+
+                /**
+                 * Process result
+                 */
+                private int result;
+
+                public void setLogger( Logger logger )
+                {
+                    this.logger = logger;
+                }
+
+
+                public void executeCommand( String executable, List<String> commands )
+                    throws ExecutionException
+                {
+                    executeCommand( executable, commands, null, true );
+                }
+
+                public void executeCommand( String executable, List<String> commands, boolean failsOnErrorOutput )
+                    throws ExecutionException
+                {
+                    executeCommand( executable, commands, null, failsOnErrorOutput );
+                }
+
+
+                public void executeCommand( String executable, List<String> commands, File workingDirectory,
+                                            boolean failsOnErrorOutput )
+                    throws ExecutionException
+                {
+                    if ( commands == null )
+                    {
+                        commands = new ArrayList<String>();
+                    }
+                    stdOut = new StreamConsumerImpl();
+                    stdErr = new ErrorStreamConsumer();
+                    String[] c = new String[commands.size()];
+                    int j = 0;
+                    for ( String command : commands )
+                    {
+                        c[j++] = command;
+                    }
+
+                    Commandline commandline = new Commandline();
+                    commandline.setExecutable( executable );
+                    commandline.addArguments( c );
+                    if ( workingDirectory != null && workingDirectory.exists() )
+                    {
+                        commandline.setWorkingDirectory( workingDirectory.getAbsolutePath() );
+                    }
+                    try
+                    {
+                        result = CommandLineUtils.executeCommandLine( commandline, stdOut, stdErr );
+                        if ( logger != null )
+                        {
+                            logger.debug( "NMAVEN-040-000: Executed command: Commandline = " + commandline +
+                                ", Result = " + result );
+                        }
+                        else
+                        {
+                            System.out.println( "NMAVEN-040-000: Executed command: Commandline = " + commandline +
+                                ", Result = " + result );
+                        }
+                        if ( ( failsOnErrorOutput && stdErr.hasError() ) || result != 0 )
+                        {
+                            throw new ExecutionException( "NMAVEN-040-001: Could not execute: Command = " +
+                                commandline.toString() + ", Result = " + result );
+                        }
+                    }
+                    catch ( CommandLineException e )
+                    {
+                        throw new ExecutionException(
+                            "NMAVEN-040-002: Could not execute: Command = " + commandline.toString() );
+                    }
+                }
+
+                public int getResult()
+                {
+                    return result;
+                }
+
+                public String getStandardOut()
+                {
+                    return stdOut.toString();
+                }
+
+                public String getStandardError()
+                {
+                    return stdErr.toString();
+                }
+
+                /**
+                 * Provides behavior for determining whether the command utility wrote anything to the Standard Error Stream.
+                 * NOTE: I am using this to decide whether to fail the NMaven build. If the compiler implementation chooses
+                 * to write warnings to the error stream, then the build will fail on warnings!!!
+                 */
+                class ErrorStreamConsumer
+                    implements StreamConsumer
+                {
+
+                    /**
+                     * Is true if there was anything consumed from the stream, otherwise false
+                     */
+                    private boolean error;
+
+                    /**
+                     * Buffer to store the stream
+                     */
+                    private StringBuffer sbe = new StringBuffer();
+
+                    public ErrorStreamConsumer()
+                    {
+                        if ( logger == null )
+                        {
+                            System.out.println( "NMAVEN-040-003: Error Log not set: Will not output error logs" );
+                        }
+                        error = false;
+                    }
+
+                    public void consumeLine( String line )
+                    {
+                        sbe.append( line );
+                        if ( logger != null )
+                        {
+                            logger.error( line );
+                        }
+                        error = true;
+                    }
+
+                    /**
+                     * Returns false if the command utility wrote to the Standard Error Stream, otherwise returns true.
+                     *
+                     * @return false if the command utility wrote to the Standard Error Stream, otherwise returns true.
+                     */
+                    public boolean hasError()
+                    {
+                        return error;
+                    }
+
+                    /**
+                     * Returns the error stream
+                     *
+                     * @return error stream
+                     */
+                    public String toString()
+                    {
+                        return sbe.toString();
+                    }
+                }
+
+                /**
+                 * StreamConsumer instance that buffers the entire output
+                 */
+                class StreamConsumerImpl
+                    implements StreamConsumer
+                {
+
+                    private DefaultConsumer consumer;
+
+                    private StringBuffer sb = new StringBuffer();
+
+                    public StreamConsumerImpl()
+                    {
+                        consumer = new DefaultConsumer();
+                    }
+
+                    public void consumeLine( String line )
+                    {
+                        sb.append( line );
+                        if ( logger != null )
+                        {
+                            consumer.consumeLine( line );
+                        }
+                    }
+
+                    /**
+                     * Returns the stream
+                     *
+                     * @return the stream
+                     */
+                    public String toString()
+                    {
+                        return sb.toString();
+                    }
+                }
+            };
+
+        }
+    }
+}

Propchange: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandFilter.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandFilter.java?view=auto&rev=485313
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandFilter.java (added)
+++ incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandFilter.java Sun Dec 10 15:43:51 2006
@@ -0,0 +1,137 @@
+/*
+ * 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.
+ */
+package org.apache.maven.dotnet.executable;
+
+import org.codehaus.plexus.logging.Logger;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.io.File;
+
+import org.apache.maven.dotnet.executable.CommandCapability;
+
+/**
+ * Provides services for filtering command options. A <code>NetExecutable</code> or
+ * <code>CompilerExecutable</code> implementation can use the services of this interface for filtering out commands that
+ * are not supported by the executable. This allows the <code>AbstractMojo</code> implementation to pass all user-defined
+ * values to the framework with assurances that the framework will only use commands appropriate for the given platform
+ * and executable/compiler.
+ *
+ * @author Shane Isbell
+ */
+public interface CommandFilter
+{
+    /**
+     * Filters the commands.
+     *
+     * @param commands the commands to filter. This parameter should not be null and will throw a
+     * <code>NullPointerException</code> if it is.
+     * @return a list of filtered commands.
+     */
+    List<String> filter( List<String> commands );
+
+    /**
+     * Provides factory methods for creating command filters.
+     */
+    public static class Factory
+    {
+        /**
+         * Default constructor
+         */
+        private Factory()
+        {
+        }
+
+        /**
+         * Creates a default implementation of the command filter. If the capability is null, then the <code>filter</code>
+         * method will return an empty list. In this implementation, the returned list from the
+         * <code>CommandFilter.filter</code>is the intersection of <code>CommandCapability.getIncludes()<code>
+         * and the specified <code>commands<code> parameter list.
+         *
+         * @param capability the executable/compiler options that are supported. This parameter may be null.
+         * @param logger the plexus logger. This parameter may be null.
+         * @return a default implemenation of the command filter
+         */
+        public static CommandFilter createDefaultCommandFilter( final CommandCapability capability,
+                                                                final Logger logger )
+        {
+            return new CommandFilter()
+            {
+                public List<String> filter( List<String> commands )
+                {
+
+                    List<String> includes = ( capability != null && capability.getIncludes() != null )
+                        ? capability.getIncludes() : new ArrayList<String>();
+                    List<String> excludes = ( capability != null && capability.getExcludes() != null )
+                        ? capability.getExcludes() : new ArrayList<String>();
+
+                    List<String> newCommands = new ArrayList<String>();
+                    if ( includes.isEmpty() && !excludes.isEmpty() )
+                    {
+                        //unsupported
+                    }
+                    else if ( !includes.isEmpty() && excludes.isEmpty() )
+                    {
+                        for ( String command : commands )
+                        {
+                            if ( doesInclude( includes, command ) )
+                            {
+                                newCommands.add( command );
+                            }
+                            else if ( logger != null )
+                            {
+                                logger.info( "NMAVEN-060-000: Ignoring unknown command: Command = " + command );
+                            }
+                        }
+                    }
+                    else if ( includes.isEmpty() && excludes.isEmpty() )
+                    {
+                        List<String> list = new ArrayList<String>();
+                        list.addAll( commands );
+                        return list;
+                    }
+                    else if ( !includes.isEmpty() && !excludes.isEmpty() )
+                    {
+                        //unsupported
+                    }
+                    return newCommands;
+                }
+
+                private boolean doesInclude( List<String> includes, String command )
+                {
+                    for ( String include : includes )
+                    {
+                        if ( command.startsWith( include, 1 ) ||
+                            !( command.startsWith( "/" ) || command.startsWith( "-" ) ) )
+                        {
+                            return true;
+                        }
+                    }
+                    //See if it is a file on *nix.
+                    if ( command.startsWith( "/" ) )
+                    {
+                        File file = new File( command );
+                        return file.exists();
+                    }
+                    return false;
+                }
+            };
+        }
+    }
+}

Propchange: incubator/nmaven/trunk/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/CommandFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message