You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by lc...@apache.org on 2012/04/26 10:09:07 UTC

svn commit: r1330742 [1/4] - in /incubator/npanday/trunk: ./ components/ components/dotnet-core/src/main/java/npanday/ components/dotnet-model/ components/dotnet-model/dotnet-model-library-import/ components/dotnet-model/dotnet-model-library-import/src...

Author: lcorneliussen
Date: Thu Apr 26 10:09:02 2012
New Revision: 1330742

URL: http://svn.apache.org/viewvc?rev=1330742&view=rev
Log:
[NPANDAY-556] Importer for Nuget Packages

o initial commit and contribution

Added:
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/dotnet-model-nuget-import.iml
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/library-import.mdo
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/pom.xml
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/site/
    incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/site/site.xml
    incubator/npanday/trunk/components/dotnet-nuget/
    incubator/npanday/trunk/components/dotnet-nuget/pom.xml
    incubator/npanday/trunk/components/dotnet-nuget/src/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/DotnetVersion.java
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetException.java
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInstallParameters.java
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInvoker.java
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetSemanticVersion.java
    incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetVersionSpec.java
    incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/npanday/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/npanday/executable-plugins.xml
    incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/plexus/
    incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/plexus/components.xml
    incubator/npanday/trunk/components/dotnet-nuget/src/test/
    incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/
    incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/DotnetVersionTest.groovy
    incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetSemanticVersionTest.groovy
    incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetVersionSpecTest.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT001_InstallPackages/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT001_InstallPackages/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT001_InstallPackages/nunit.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT001_InstallPackages/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT001_InstallPackages/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT002_GeneratePoms/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT002_GeneratePoms/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT002_GeneratePoms/nunit.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT002_GeneratePoms/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT002_GeneratePoms/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT003_MultipleLibDirs/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT003_MultipleLibDirs/fluentassertions.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT003_MultipleLibDirs/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT003_MultipleLibDirs/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT003_MultipleLibDirs/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT004_PackageWithDependencies/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT004_PackageWithDependencies/common.logging.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT004_PackageWithDependencies/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT004_PackageWithDependencies/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT004_PackageWithDependencies/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT005_CustomDependencyIgnore/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT005_CustomDependencyIgnore/autofac.mvc.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT005_CustomDependencyIgnore/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT005_CustomDependencyIgnore/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT005_CustomDependencyIgnore/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT006_CustomSource/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT006_CustomSource/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT006_CustomSource/nunit.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT006_CustomSource/package-source/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT006_CustomSource/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT006_CustomSource/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/local-repo/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/nunit.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/package-source/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT007_InstallToCustomLocalRepository/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/local-deploy-repo/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/local-install-repo/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/nunit.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/package-source/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/package-source/NUnit.2.6.0.12054.nupkg   (with props)
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT008_DeployToCustomLocalRepository/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/goals.txt
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/local-deploy-repo/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/local-install-repo/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/nunit.lib.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/package-source/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/package-source/NUnit.2.6.0.12054.nupkg   (with props)
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/pom.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/IT009_ImporterLifecycle/verify.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/AssemblyInfo.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/DescribeMojo.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/LibraryImporterLifecycleMap.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/ManifestInfoParser.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/NuspecDependency.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/NuspecMetadata.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/groovy/npanday/plugin/libraryimporter/NuspecParser.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/LibImporterPathUtils.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/deploy/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/deploy/AbstractDeployMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/deploy/DeployLibraries.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/generate/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/generate/GeneratePackageArtifactsMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/install/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/install/AbstractInstallMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/install/InstallLibraries.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/model/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/model/NugetPackage.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/model/NugetPackageLibrary.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/resolve/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/resolve/AbstractManifestInfoMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/resolve/AbstractNugetMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/resolve/ExtractNuspecFromPackagesMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/resolve/GeneratePackageManifestInfosMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/resolve/ResolvePackagesMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/skeletons/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/skeletons/AbstractHandleEachLibraryMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/skeletons/AbstractLibraryImportsProvidingMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/skeletons/AbstractNPandayMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/java/npanday/plugin/libraryimporter/skeletons/AbstractNPandaySettingsAwareMojo.java
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/resources/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/resources/META-INF/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/resources/META-INF/npanday/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/resources/META-INF/npanday/executable-plugins.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/resources/META-INF/plexus/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/resources/META-INF/plexus/components.xml
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/script/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/main/script/plexus_component_xml.groovy
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/site/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/site/apt/
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/site/apt/index.apt.vm
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/site/apt/nuget-mapping.apt.vm
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/site/apt/usage.apt.vm
    incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/site/site.xml
Modified:
    incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/ArtifactType.java
    incubator/npanday/trunk/components/dotnet-model/pom.xml
    incubator/npanday/trunk/components/dotnet-model/settings/settings.mdo
    incubator/npanday/trunk/components/pom.xml
    incubator/npanday/trunk/plugins/pom.xml
    incubator/npanday/trunk/pom.xml

Modified: incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/ArtifactType.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/ArtifactType.java?rev=1330742&r1=1330741&r2=1330742&view=diff
==============================================================================
--- incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/ArtifactType.java (original)
+++ incubator/npanday/trunk/components/dotnet-core/src/main/java/npanday/ArtifactType.java Thu Apr 26 10:09:02 2012
@@ -109,7 +109,7 @@ public enum ArtifactType
     // DOTNET_("dotnet-gac_64", "library", "dll"),	
     // DOTNET_("dotnet-nar", "library", "nar"),
     // DOTNET_("dotnet-visual-studio-addin", "library", "dll"),
-    
+
     /** 
      * Use DOTNET_MODULE instead
      */
@@ -183,7 +183,13 @@ public enum ArtifactType
 
     // Silverlight support
     SILVERLIGHT_LIBRARY ("silverlight-library", "library", "dll"),
-    SILVERLIGHT_APPLICATION ("silverlight-application", "library", "xap", true);
+    SILVERLIGHT_APPLICATION ("silverlight-application", "library", "xap", true),
+
+    /* Nuget support */
+    NUGET_PACKAGE ("nuget-package", null, "nupkg"),
+    DOTNET_LIBRARY_IMPORTER("dotnet-library-importer", null, "pom")
+    ;
+
 
     /**
      * The extension used for the artifact(netmodule, dll, exe)

Added: incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/dotnet-model-nuget-import.iml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/dotnet-model-nuget-import.iml?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/dotnet-model-nuget-import.iml (added)
+++ incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/dotnet-model-nuget-import.iml Thu Apr 26 10:09:02 2012
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
+    <output url="file://$MODULE_DIR$/target/classes" />
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src/test/groovy" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/target/generated-sources/modello" isTestSource="false" />
+      <excludeFolder url="file://$MODULE_DIR$/target/classes" />
+      <excludeFolder url="file://$MODULE_DIR$/target/generated-sources/groovy-stubs" />
+      <excludeFolder url="file://$MODULE_DIR$/target/maven-archiver" />
+      <excludeFolder url="file://$MODULE_DIR$/target/maven-shared-archive-resources" />
+      <excludeFolder url="file://$MODULE_DIR$/target/surefire" />
+      <excludeFolder url="file://$MODULE_DIR$/target/surefire-reports" />
+      <excludeFolder url="file://$MODULE_DIR$/target/test-classes" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="library" name="Maven: org.codehaus.plexus:plexus-utils:1.5.15" level="project" />
+    <orderEntry type="library" name="Maven: com.google.guava:guava:10.0.1" level="project" />
+    <orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:1.3.9" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.8.1" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.gmock:gmock:0.8.1" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.codehaus.groovy:groovy-all:1.7.0" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: jline:jline:0.9.94" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.easymock:easymock:2.0" level="project" />
+  </component>
+</module>
+

Added: incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/library-import.mdo
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/library-import.mdo?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/library-import.mdo (added)
+++ incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/library-import.mdo Thu Apr 26 10:09:02 2012
@@ -0,0 +1,142 @@
+<!--
+  ~ 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.
+  -->
+<model xmlns="http://modello.codehaus.org/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.4.0 http://modello.codehaus.org/xsd/modello-1.4.0.xsd"
+       xml.namespace="http://npanday.apache.org/library-import/1.0.0">
+  <id>library-imports</id>
+  <name>LibraryImports</name>
+  <description></description>
+  <defaults>
+    <default>
+      <key>package</key>
+      <value>npanday.model.library.imports</value>
+    </default>
+  </defaults>
+  <versionDefinition>
+    <type>namespace</type>
+  </versionDefinition>
+  <classes>
+    <class rootElement="true" xml.tagName="libs" xsd.compositor="sequence">
+      <name>LibraryImports</name>
+      <fields>
+        <field>
+          <name>nugetSources</name>
+          <association>
+            <type>NugetSources</type>
+            <multiplicity>1</multiplicity>
+          </association>
+        </field>
+        <field>
+          <name>nugetImports</name>
+          <association xml.itemsStyle="flat" xml.tagName="nuget">
+            <type>NugetImport</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+      </fields>
+    </class>
+    <class>
+      <name>NugetSources</name>
+      <fields>
+        <field xml.attribute="true" xml.tagName="addNugetGallery">
+          <name>addNugetGallery</name>
+          <type>boolean</type>
+        </field>
+        <field>
+          <name>customSources</name>
+          <association xml.itemsStyle="flat" xml.tagName="custom">
+            <type>String</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+      </fields>
+    </class>
+    <class>
+      <name>NugetImport</name>
+      <fields>
+        <field xml.tagName="package">
+          <name>packageName</name>
+          <type>String</type>
+        </field>
+        <field>
+          <name>versions</name>
+          <association xml.itemsStyle="flat" xml.tagName="version">
+            <type>ImportVersion</type>
+            <multiplicity>n</multiplicity>
+          </association>
+        </field>
+        <field xml.tagName="libDirs">
+          <name>libraryDirectories</name>
+          <association>
+            <type>LibraryDirectories</type>
+            <multiplicity>1</multiplicity>
+          </association>
+        </field>
+        <field>
+          <name>referenceMappings</name>
+          <association xml.itemsStyle="flat" xml.tagName="mapReference">
+            <type>ReferenceMapping</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
+      </fields>
+    </class>
+    <class>
+      <name>ImportVersion</name>
+      <fields>
+        <field xml.attribute="true">
+          <name>source</name>
+          <type>String</type>
+        </field>
+        <field xml.attribute="true" xml.tagName="mapTo">
+          <name>maven</name>
+          <type>String</type>
+        </field>
+      </fields>
+    </class>
+    <class>
+      <name>LibraryDirectories</name>
+      <fields>
+        <field xml.tagName="default">
+          <name>defaultDirectory</name>
+          <type>String</type>
+        </field>
+
+        <!-- TODO: support importing multiple library folders by adding classifiers to the version -->
+      </fields>
+    </class>
+    <class>
+      <name>ReferenceMapping</name>
+      <fields>
+        <field xml.attribute="true" xml.tagName="name">
+          <name>name</name>
+          <type>String</type>
+        </field>
+
+        <field xml.attribute="true" xml.tagName="ignore">
+          <name>ignore</name>
+          <type>boolean</type>
+        </field>
+
+        <!-- TODO: add 'namePattern' for regex matching -->
+        <!-- TODO: allow for specify mapping to different artifact -->
+      </fields>
+    </class>
+  </classes>
+</model>
\ No newline at end of file

Added: incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/pom.xml?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/pom.xml (added)
+++ incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/pom.xml Thu Apr 26 10:09:02 2012
@@ -0,0 +1,46 @@
+<?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" 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.npanday</groupId>
+    <version>1.5.0-incubating-SNAPSHOT</version>  
+    <artifactId>dotnet-model</artifactId> 
+  </parent>  
+  <modelVersion>4.0.0</modelVersion>  
+  <artifactId>dotnet-model-library-import</artifactId>
+  <name>NPanday :: Model :: Library Import</name>
+  <description>Model for describing how to import libraries and nuget packages into maven repos.</description>
+  <build> 
+    <plugins>
+      <plugin> 
+        <groupId>org.codehaus.modello</groupId>  
+        <artifactId>modello-maven-plugin</artifactId>  
+        <configuration>
+          <models>
+            <model>library-import.mdo</model>
+          </models>
+          <version>1.0.0</version> 
+        </configuration> 
+      </plugin> 
+    </plugins> 
+  </build>  
+</project>

Added: incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/site/site.xml?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/site/site.xml (added)
+++ incubator/npanday/trunk/components/dotnet-model/dotnet-model-library-import/src/site/site.xml Thu Apr 26 10:09:02 2012
@@ -0,0 +1,39 @@
+<!--
+  ~ 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 name="NPanday">
+  <bannerRight>
+    <src>./images/apache-incubator-logo.png</src>
+  </bannerRight>
+
+  <body>
+    <links>
+      <item name="Project Site" href="http://incubator.apache.org/projects/npanday.html"/>
+      <item name="NPanday" href="http://incubator.apache.org/npanday"/>
+      <item name="NPanday SVN" href="http://svn.apache.org/repos/asf/incubator/npanday/"/>
+      <item name="Maven" href="http://maven.apache.org/"/>
+      <item name="Mono Project" href="http://www.mono-project.com/"/>
+      <item name="DotGNU" href="http://dotgnu.org/"/>
+    </links>
+    <menu name="General Info">
+      <item name="About" href="assembly-plugin.html"/>
+    </menu>
+    ${reports}
+  </body>
+</project>
\ No newline at end of file

Modified: incubator/npanday/trunk/components/dotnet-model/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-model/pom.xml?rev=1330742&r1=1330741&r2=1330742&view=diff
==============================================================================
--- incubator/npanday/trunk/components/dotnet-model/pom.xml (original)
+++ incubator/npanday/trunk/components/dotnet-model/pom.xml Thu Apr 26 10:09:02 2012
@@ -36,7 +36,8 @@
     <module>netdependency</module>  
     <module>configuration-appenders</module>  
     <module>settings</module>
-  </modules>  
+    <module>dotnet-model-library-import</module>
+  </modules>
   <dependencies> 
     <dependency> 
       <groupId>org.codehaus.plexus</groupId>  

Modified: incubator/npanday/trunk/components/dotnet-model/settings/settings.mdo
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-model/settings/settings.mdo?rev=1330742&r1=1330741&r2=1330742&view=diff
==============================================================================
--- incubator/npanday/trunk/components/dotnet-model/settings/settings.mdo (original)
+++ incubator/npanday/trunk/components/dotnet-model/settings/settings.mdo Thu Apr 26 10:09:02 2012
@@ -17,104 +17,104 @@
   ~ under the License.
   -->
 <model xmlns="http://modello.codehaus.org/MODELLO/1.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.4.0 http://modello.codehaus.org/xsd/modello-1.4.0.xsd">
-  <id>npanday-settings</id>
-  <name>NPandaySettings</name>
-  <description></description>
-  <defaults>
-    <default>
-      <key>package</key>
-      <value>npanday.model.settings</value>
-    </default>
-  </defaults>
-  <classes>
-    <class rootElement="true" xml.tagName="npandaySettings">
-      <name>NPandaySettings</name>
-      <fields>
-        <field>
-          <name>operatingSystem</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>vendors</name>
-          <association>
-            <type>Vendor</type>
-            <multiplicity>*</multiplicity>
-          </association>
-        </field>
-        <field>
-          <name>defaultSetup</name>
-          <association>
-            <type>DefaultSetup</type>
-            <multiplicity>1</multiplicity>
-          </association>
-        </field>
-      </fields>
-    </class>
-    <class>
-      <name>DefaultSetup</name>
-      <fields>
-        <field>
-          <name>vendorName</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>vendorVersion</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>frameworkVersion</name>
-          <type>String</type>
-        </field>
-      </fields>
-    </class>
-    <class>
-      <name>Vendor</name>
-      <fields>
-        <field>
-          <name>vendorName</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>vendorVersion</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>isDefault</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>frameworks</name>
-          <association>
-            <type>Framework</type>
-            <multiplicity>*</multiplicity>
-          </association>
-        </field>
-      </fields>
-    </class>
-    <class>
-      <name>Framework</name>
-      <fields>
-        <field>
-          <name>frameworkVersion</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>installRoot</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>sdkInstallRoot</name>
-          <type>String</type>
-        </field>
-        <field>
-          <name>executablePaths</name>
-          <association>
-            <type>String</type>
-            <multiplicity>*</multiplicity>
-          </association>
-        </field>        
-      </fields>
-    </class>
-  </classes>
+       xsi:schemaLocation="http://modello.codehaus.org/MODELLO/1.4.0 http://modello.codehaus.org/xsd/modello-1.4.0.xsd">
+    <id>npanday-settings</id>
+    <name>NPandaySettings</name>
+    <description></description>
+    <defaults>
+        <default>
+            <key>package</key>
+            <value>npanday.model.settings</value>
+        </default>
+    </defaults>
+    <classes>
+        <class rootElement="true" xml.tagName="npandaySettings">
+            <name>NPandaySettings</name>
+            <fields>
+                <field>
+                    <name>operatingSystem</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>vendors</name>
+                    <association>
+                        <type>Vendor</type>
+                        <multiplicity>*</multiplicity>
+                    </association>
+                </field>
+                <field>
+                    <name>defaultSetup</name>
+                    <association>
+                        <type>DefaultSetup</type>
+                        <multiplicity>1</multiplicity>
+                    </association>
+                </field>
+            </fields>
+        </class>
+        <class>
+            <name>DefaultSetup</name>
+            <fields>
+                <field>
+                    <name>vendorName</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>vendorVersion</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>frameworkVersion</name>
+                    <type>String</type>
+                </field>
+            </fields>
+        </class>
+        <class>
+            <name>Vendor</name>
+            <fields>
+                <field>
+                    <name>vendorName</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>vendorVersion</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>isDefault</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>frameworks</name>
+                    <association>
+                        <type>Framework</type>
+                        <multiplicity>*</multiplicity>
+                    </association>
+                </field>
+            </fields>
+        </class>
+        <class>
+            <name>Framework</name>
+            <fields>
+                <field>
+                    <name>frameworkVersion</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>installRoot</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>sdkInstallRoot</name>
+                    <type>String</type>
+                </field>
+                <field>
+                    <name>executablePaths</name>
+                    <association>
+                        <type>String</type>
+                        <multiplicity>*</multiplicity>
+                    </association>
+                </field>
+            </fields>
+        </class>
+    </classes>
 </model>
\ No newline at end of file

Added: incubator/npanday/trunk/components/dotnet-nuget/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/pom.xml?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/pom.xml (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/pom.xml Thu Apr 26 10:09:02 2012
@@ -0,0 +1,82 @@
+<?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" 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.npanday</groupId>
+    <version>1.5.0-incubating-SNAPSHOT</version>  
+    <artifactId>dotnet-components</artifactId> 
+  </parent>  
+  <modelVersion>4.0.0</modelVersion>  
+  <artifactId>dotnet-nuget</artifactId>
+  <name>NPanday :: MSBuild</name>
+  <description>Shared logic for executing Nuget in the context of Mojos.</description>
+  <dependencies> 
+    <dependency> 
+      <groupId>org.apache.npanday</groupId>
+      <artifactId>dotnet-core</artifactId>  
+    </dependency>  
+    <dependency> 
+      <groupId>org.apache.npanday</groupId>
+      <artifactId>dotnet-artifact</artifactId>  
+    </dependency>  
+    <dependency> 
+      <groupId>org.apache.npanday</groupId>
+      <artifactId>dotnet-model-executable-plugins</artifactId>  
+    </dependency>  
+    <dependency> 
+      <groupId>org.apache.npanday</groupId>
+      <artifactId>dotnet-model-compiler-plugins</artifactId>  
+    </dependency>  
+    <dependency> 
+      <groupId>org.apache.npanday</groupId>
+      <artifactId>dotnet-executable</artifactId>  
+    </dependency>
+	<dependency> 
+      <groupId>org.apache.npanday</groupId>
+      <artifactId>dotnet-vendor</artifactId>  
+    </dependency>
+    <dependency> 
+      <groupId>junit</groupId>  
+      <artifactId>junit</artifactId>  
+      <version>4.8.1</version>  
+      <scope>test</scope> 
+    </dependency>
+    <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-exec</artifactId>
+      <version>1.1</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.plexus</groupId>
+        <artifactId>plexus-maven-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <!-- enable groovy testing -->
+        <groupId>org.codehaus.gmaven</groupId>
+        <artifactId>gmaven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/DotnetVersion.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/DotnetVersion.java?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/DotnetVersion.java (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/DotnetVersion.java Thu Apr 26 10:09:02 2012
@@ -0,0 +1,226 @@
+/*
+ * 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 npanday.nuget;
+
+import org.codehaus.plexus.util.StringUtils;
+
+import javax.annotation.Nonnegative;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+import javax.annotation.concurrent.Immutable;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+/**
+ * A four-digit .NET version.
+ *
+ * @author <a href="me@lcorneliussen.de">Lars Corneliussen, Faktum Software</a>
+ */
+@Immutable
+public final class DotnetVersion
+    implements Comparable<DotnetVersion>
+{
+
+    /**
+     * {@link DotnetVersion} element. From most meaningful to less meaningful.
+     */
+    public enum Element
+    {
+        MAJOR, MINOR, PATCH, BUILD;
+    }
+
+    private static final String FORMAT = "(\\d+)\\.(\\d+)(?:\\.)?(\\d*)(?:\\.)?(\\d*)";
+
+    private static final Pattern PATTERN = Pattern.compile( DotnetVersion.FORMAT );
+
+    private final int major;
+
+    private final int minor;
+
+    private final int patch;
+
+    private final int build;
+
+    public DotnetVersion( @Nonnegative final int major, @Nonnegative final int minor, @Nonnegative final int patch )
+    {
+        this( major, minor, patch, 0 );
+    }
+
+    public DotnetVersion(
+        @Nonnegative final int major, @Nonnegative final int minor, @Nonnegative final int patch,
+        @Nonnegative final int build )
+    {
+        if ( major < 0 )
+        {
+            throw new IllegalArgumentException( Element.MAJOR + " must be positive" );
+        }
+        if ( minor < 0 )
+        {
+            throw new IllegalArgumentException( Element.MINOR + " must be positive" );
+        }
+        if ( patch < 0 )
+        {
+            throw new IllegalArgumentException( Element.PATCH + " must be positive" );
+        }
+        if ( build < 0 )
+        {
+            throw new IllegalArgumentException( Element.BUILD + " must be positive" );
+        }
+
+        this.major = major;
+        this.minor = minor;
+        this.patch = patch;
+        this.build = build;
+    }
+
+    /**
+     * Creates a version from a string representation. Must match version#FORMAT.
+     *
+     * @param version
+     * @return
+     */
+    public static DotnetVersion parse( @Nonnull final String version )
+    {
+        final Matcher matcher = DotnetVersion.PATTERN.matcher( version );
+        if ( !matcher.matches() )
+        {
+            throw new IllegalArgumentException( "<" + version + "> does not match format " + DotnetVersion.FORMAT );
+        }
+
+        final int major = Integer.valueOf( matcher.group( 1 ) );
+        final int minor = Integer.valueOf( matcher.group( 2 ) );
+        final int patch;
+        final String patchMatch = matcher.group( 3 );
+        if ( StringUtils.isNotEmpty( patchMatch ) )
+        {
+            patch = Integer.valueOf( patchMatch );
+        }
+        else
+        {
+            patch = 0;
+        }
+        final int build;
+        final String buildMatch = matcher.group( 4 );
+        if ( StringUtils.isNotEmpty( buildMatch ) )
+        {
+            build = Integer.valueOf( buildMatch );
+        }
+        else
+        {
+            build = 0;
+        }
+        return new DotnetVersion( major, minor, patch, build );
+    }
+
+    @Override
+    public int hashCode()
+    {
+        int hash = 5;
+        hash = 43 * hash + this.major;
+        hash = 43 * hash + this.minor;
+        hash = 43 * hash + this.patch;
+        hash = 43 * hash + this.build;
+        return hash;
+    }
+
+    @Override
+    public boolean equals( @Nullable final Object object )
+    {
+        if ( !( object instanceof DotnetVersion ) )
+        {
+            return false;
+        }
+
+        final DotnetVersion other = (DotnetVersion) object;
+        if ( other.major != this.major || other.minor != this.minor || other.patch != this.patch
+            || other.build != this.build )
+        {
+            return false;
+        }
+        return true;
+    }
+
+    public int compareTo( final DotnetVersion other )
+    {
+        if ( equals( other ) )
+        {
+            return 0;
+        }
+
+        if ( this.major < other.major )
+        {
+            return -1;
+        }
+        else if ( this.major == other.major )
+        {
+            if ( this.minor < other.minor )
+            {
+                return -1;
+            }
+            else if ( this.minor == other.minor )
+            {
+                if ( this.patch < other.patch )
+                {
+                    return -1;
+                }
+                else if ( this.patch == other.patch )
+                {
+                    if ( this.build < other.build )
+                    {
+                        return -1;
+                    }
+                }
+            }
+        }
+        return 1;
+    }
+
+    @Override
+    public String toString()
+    {
+        final StringBuilder builder = new StringBuilder();
+        builder.append( this.major );
+        builder.append( "." ).append( this.minor );
+        builder.append( "." ).append( this.patch );
+        builder.append(".").append( this.build );
+
+        return builder.toString();
+    }
+
+    public int getMajor()
+    {
+        return major;
+    }
+
+    public int getMinor()
+    {
+        return minor;
+    }
+
+    public int getPatch()
+    {
+        return patch;
+    }
+
+    public int getBuild()
+    {
+        return build;
+    }
+}
\ No newline at end of file

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetException.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetException.java?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetException.java (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetException.java Thu Apr 26 10:09:02 2012
@@ -0,0 +1,48 @@
+/*
+ * 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 npanday.nuget;
+
+/**
+ * Something went wrong while instrumenting or executing Nuget.
+ *
+ * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
+ */
+public class NugetException
+    extends Exception
+{
+    public NugetException()
+    {
+    }
+
+    public NugetException(String message)
+    {
+        super( message );
+    }
+
+    public NugetException(String message, Throwable cause)
+    {
+        super( message, cause );
+    }
+
+    public NugetException(Throwable cause)
+    {
+        super( cause );
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInstallParameters.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInstallParameters.java?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInstallParameters.java (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInstallParameters.java Thu Apr 26 10:09:02 2012
@@ -0,0 +1,120 @@
+/*
+ * 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 npanday.nuget;
+
+import com.google.common.base.Preconditions;
+import com.google.common.base.Strings;
+import com.google.common.collect.Lists;
+
+import java.io.File;
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
+ */
+public class NugetInstallParameters
+{
+    private String packageName;
+
+    private String version;
+
+    private File outputDirectory;
+
+    private boolean prerelease;
+
+    private boolean excludeVersion;
+
+    private List<String> sources;
+
+    public NugetInstallParameters( String packageName )
+    {
+        Preconditions.checkArgument( packageName != null, "packageName was null!" );
+
+        this.packageName = packageName;
+    }
+
+    public Collection<String> buildCommands()
+    {
+        List<String> commands = Lists.newArrayList();
+
+        commands.add( "install" );
+
+        commands.add( packageName );
+
+        if ( !Strings.isNullOrEmpty( version ) )
+        {
+            commands.add( "-Version" );
+            commands.add( version );
+        }
+
+        if ( outputDirectory != null )
+        {
+            commands.add( "-OutputDirectory" );
+            commands.add( outputDirectory.getAbsolutePath() );
+        }
+
+        if ( prerelease )
+        {
+            commands.add( "-Prerelease" );
+        }
+
+        if ( excludeVersion )
+        {
+            commands.add( "-ExcludeVersion" );
+        }
+
+        if ( sources != null && sources.size() > 0 )
+        {
+            for ( String source : sources )
+            {
+                commands.add( "-Source" );
+                commands.add( source );
+            }
+        }
+
+        return commands;
+    }
+
+    public void setSources( List<String> sources )
+    {
+        this.sources = sources;
+    }
+
+    public void setVersion( String version )
+    {
+        this.version = version;
+    }
+
+    public void setOutputDirectory( File outputDirectory )
+    {
+        this.outputDirectory = outputDirectory;
+    }
+
+    public void setPrerelease( boolean prerelease )
+    {
+        this.prerelease = prerelease;
+    }
+
+    public void setExcludeVersion( boolean excludeVersion )
+    {
+        this.excludeVersion = excludeVersion;
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInvoker.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInvoker.java?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInvoker.java (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetInvoker.java Thu Apr 26 10:09:02 2012
@@ -0,0 +1,75 @@
+/*
+ * 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 npanday.nuget;
+
+import com.google.common.base.Splitter;
+import com.google.common.collect.Lists;
+import npanday.PlatformUnsupportedException;
+import npanday.executable.ExecutableRequirement;
+import npanday.executable.ExecutionException;
+import npanday.executable.ExecutionResult;
+import npanday.executable.NetExecutable;
+import npanday.executable.NetExecutableFactory;
+import org.codehaus.plexus.logging.AbstractLogEnabled;
+
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+/**
+ * @author <a href="mailto:lcorneliussen@apache.org">Lars Corneliussen</a>
+ * @plexus.component role="npanday.nuget.NugetInvoker"
+ */
+public class NugetInvoker
+    extends AbstractLogEnabled
+{
+    /**
+     * @plexus.requirement
+     */
+    protected NetExecutableFactory netExecutableFactory;
+
+    public void install(
+        ExecutableRequirement executableRequirement, NugetInstallParameters parameters ) throws
+        PlatformUnsupportedException,
+        NugetException
+    {
+        final NetExecutable executable = netExecutableFactory.getNetExecutableFor(
+            executableRequirement, buildCommands( parameters ), null
+        );
+
+        try
+        {
+            executable.execute();
+        }
+        catch ( ExecutionException e )
+        {
+            throw new NugetException( "NPANDAY-143-000: Exception on executing Nuget with " + parameters, e );
+        }
+    }
+
+    private List<String> buildCommands( NugetInstallParameters parameters )
+    {
+        List<String> commands = Lists.newArrayList();
+
+        commands.addAll( parameters.buildCommands() );
+
+        return commands;
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetSemanticVersion.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetSemanticVersion.java?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetSemanticVersion.java (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetSemanticVersion.java Thu Apr 26 10:09:02 2012
@@ -0,0 +1,183 @@
+/*
+ * 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 npanday.nuget;
+
+import com.google.common.base.Preconditions;
+import com.google.common.base.Strings;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+/**
+ * Port of Nugets SemanticVersion as of version 1.7
+ *
+ * @author <a href="mailto:me@lcorneliussen.de>Lars Corneliussen, Faktum Software</a>
+ */
+public class NugetSemanticVersion
+    implements Comparable<NugetSemanticVersion>
+{
+    private static Pattern _semanticVersionRegex = Pattern.compile("^(\\d+(\\s*\\.\\s*\\d+){0,3})(-[a-z][0-9a-z-]*)?$", Pattern.CASE_INSENSITIVE);
+    private static Pattern _strictSemanticVersionRegex = Pattern.compile("^(\\d+(\\.\\d+){2})(-[a-z][0-9a-z-]*)?$", Pattern.CASE_INSENSITIVE);
+    private String _originalString;
+
+    public NugetSemanticVersion( int major, int minor, int build, int revision )
+    {
+        this( new DotnetVersion( major, minor, build, revision ) );
+    }
+
+    public NugetSemanticVersion( int major, int minor, int build, String specialVersion )
+    {
+        this(new DotnetVersion(major, minor, build), specialVersion);
+    }
+
+    public NugetSemanticVersion( DotnetVersion version )
+    {
+        this( version, "" );
+    }
+
+    public NugetSemanticVersion( DotnetVersion version, String specialVersion )
+
+    {
+        this( version, specialVersion, null );
+    }
+
+    private NugetSemanticVersion( DotnetVersion version, String specialVersion, String originalString )
+    {
+        Preconditions.checkNotNull( version );
+
+        this.version = version;
+        this.specialVersion = specialVersion == null ? "" : specialVersion;
+        _originalString = Strings.isNullOrEmpty( originalString ) ? version.toString() + (!Strings.isNullOrEmpty(
+            specialVersion
+        ) ? '-' + specialVersion : null) : originalString;
+    }
+
+
+    /**
+     *  Gets the normalized version portion.
+     */
+    DotnetVersion version;
+
+    /**
+     *  Gets the optional special version.
+     */
+    String specialVersion;
+
+    /**
+     * Parses a version string using loose semantic versioning rules that allows 2-4 version components followed by an optional special version.
+     */
+    public static NugetSemanticVersion parse( String version )
+    {
+        NugetSemanticVersion semVer = tryParse( version );
+        Preconditions.checkArgument( semVer != null, "Version '" + version + "' is invalid!" );
+        return semVer;
+    }
+
+    /**
+     * Parses a version string using loose semantic versioning rules that allows 2-4 version components followed by an optional special version.
+     * @param version
+     * @return
+     */
+    public static NugetSemanticVersion tryParse( String version )
+    {
+        return tryParseInternal( version, _semanticVersionRegex );
+    }
+
+    /**
+     * Parses a version string using strict semantic versioning rules that allows exactly 3 components and an optional special version.
+     */
+    public static NugetSemanticVersion tryParseStrict( String version )
+    {
+        return tryParseInternal( version, _strictSemanticVersionRegex );
+    }
+
+    private static NugetSemanticVersion tryParseInternal( String version, Pattern regex )
+    {
+        if (Strings.isNullOrEmpty( version ))
+        {
+            return null;
+        }
+
+        Matcher match = regex.matcher( version.trim() );
+        DotnetVersion versionValue;
+        if (!match.matches() || null == (versionValue = DotnetVersion.parse( match.group( 1 ) )))
+        {
+            return null;
+        }
+
+        String release = match.group( 3 );
+        if (release != null && release.startsWith( "-" ))
+            release = release.substring( 1 );
+
+        return new NugetSemanticVersion(versionValue, release, version.replace( " ", "" ));
+    }
+
+    @Override
+    public String toString()
+    {
+        return _originalString;
+    }
+
+    public boolean equals(NugetSemanticVersion other)
+    {
+        return other != null &&
+            version.equals( other.version ) &&
+            specialVersion.equalsIgnoreCase( other.specialVersion );
+    }
+
+    @Override
+    public int hashCode() {
+        int hash = 5;
+        hash = 43 * hash + this.version.hashCode();
+        hash = 43 * hash + (this.specialVersion != null ? this.specialVersion.hashCode() : 0);
+        return hash;
+    }
+
+    public int compareTo( NugetSemanticVersion other )
+    {
+        if (this == other)
+        {
+            return 1;
+        }
+
+        int result = version.compareTo(other.version );
+
+        if (result != 0)
+        {
+            return result;
+        }
+
+        boolean empty = Strings.isNullOrEmpty( specialVersion );
+        boolean otherEmpty = Strings.isNullOrEmpty(other.specialVersion );
+        if (empty && otherEmpty)
+        {
+            return 0;
+        }
+        else if (empty)
+        {
+            return 1;
+        }
+        else if (otherEmpty)
+        {
+            return -1;
+        }
+        return specialVersion.compareToIgnoreCase( other.specialVersion );
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetVersionSpec.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetVersionSpec.java?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetVersionSpec.java (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/java/npanday/nuget/NugetVersionSpec.java Thu Apr 26 10:09:02 2012
@@ -0,0 +1,171 @@
+/*
+ * 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 npanday.nuget;
+
+import com.google.common.base.Preconditions;
+import com.google.common.base.Splitter;
+import com.google.common.collect.Iterables;
+
+/**
+ * Port of Nugets VersionSpec as of version 1.7
+ *
+ * @author <a href="mailto:me@lcorneliussen.de>Lars Corneliussen, Faktum Software</a>
+ */
+public class NugetVersionSpec
+{
+    NugetSemanticVersion MinVersion, MaxVersion;
+
+    boolean IsMinInclusive, IsMaxInclusive;
+
+    @Override
+    public String toString()
+    {
+        if ( MinVersion != null && IsMinInclusive && MaxVersion == null && !IsMaxInclusive )
+        {
+            return MinVersion.toString();
+        }
+
+        if ( MinVersion != null && MaxVersion != null && MinVersion == MaxVersion && IsMinInclusive && IsMaxInclusive )
+        {
+            return "[" + MinVersion + "]";
+        }
+
+        StringBuilder versionBuilder = new StringBuilder();
+        versionBuilder.append( IsMinInclusive ? '[' : '(' );
+        versionBuilder.append( MinVersion + ", " + MaxVersion );
+        versionBuilder.append( IsMaxInclusive ? ']' : ')' );
+
+        return versionBuilder.toString();
+    }
+
+    static Splitter VERSIONS_IN_RANGE = Splitter.on( "," ).omitEmptyStrings().trimResults();
+
+    public static NugetVersionSpec parse (String value){
+        NugetVersionSpec spec = tryParse( value );
+        Preconditions.checkArgument( spec != null, "Version spec '" + value + "' is invalid!");
+        return spec;
+    }
+
+    public static NugetVersionSpec tryParse( String value )
+    {
+        Preconditions.checkNotNull( value );
+
+        value = value.trim();
+        NugetVersionSpec versionSpec = new NugetVersionSpec();
+
+        // First, try to parse it as a plain version string
+        NugetSemanticVersion version = NugetSemanticVersion.tryParse( value );
+        if ( version != null )
+        {
+            // A plain version is treated as an inclusive minimum range
+            versionSpec.IsMinInclusive = true;
+            versionSpec.MinVersion = version;
+            return versionSpec;
+        }
+
+        // Fail early if the string is too short to be valid
+        if ( value.length() < 3 )
+        {
+            return null;
+        }
+
+        // The first character must be [ ot (
+        switch ( value.charAt( 0 ) )
+        {
+            case '[':
+                versionSpec.IsMinInclusive = true;
+                break;
+            case '(':
+                versionSpec.IsMinInclusive = false;
+                break;
+            default:
+                return null;
+        }
+
+        // The last character must be ] ot )
+        switch ( value.charAt( value.length() - 1 ) )
+        {
+            case ']':
+                versionSpec.IsMaxInclusive = true;
+                break;
+            case ')':
+                versionSpec.IsMaxInclusive = false;
+                break;
+            default:
+                return null;
+        }
+
+        // Get rid of the two brackets
+        value = value.substring( 1, value.length() - 1 );
+
+        // Split by comma, and make sure we don't get more than two pieces
+        String[] parts = Iterables.toArray( VERSIONS_IN_RANGE.split( value ), String.class );
+        if ( parts.length > 2 || parts.length == 0 )
+        {
+            return null;
+        }
+
+        // If there is only one piece, we use it for both min and max
+        String minVersionString = parts[0];
+        String maxVersionString = ( parts.length == 2 ) ? parts[1] : parts[0];
+
+        NugetSemanticVersion minVersion = NugetSemanticVersion.tryParse( minVersionString );
+        NugetSemanticVersion maxVersion = NugetSemanticVersion.tryParse( maxVersionString );
+
+        if ( minVersion == null || maxVersion == null )
+        {
+            return null;
+        }
+
+        versionSpec.MinVersion = minVersion;
+        versionSpec.MaxVersion = maxVersion;
+
+        return versionSpec;
+    }
+
+    public boolean isSatisfiedBy(NugetSemanticVersion version){
+        boolean condition = true;
+        if (MinVersion != null)
+        {
+            if (IsMinInclusive)
+            {
+                condition = condition && version.compareTo( MinVersion ) >= 0;
+            }
+            else
+            {
+                condition = condition && version.compareTo( MinVersion) > 0;
+            }
+        }
+
+        if (MaxVersion != null)
+        {
+            if (IsMaxInclusive)
+            {
+                condition = condition && version.compareTo( MaxVersion) <= 0;
+            }
+            else
+            {
+                condition = condition && version.compareTo( MaxVersion) < 0;
+            }
+        }
+
+        return condition;
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/npanday/executable-plugins.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/npanday/executable-plugins.xml?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/npanday/executable-plugins.xml (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/npanday/executable-plugins.xml Thu Apr 26 10:09:02 2012
@@ -0,0 +1,46 @@
+<!--
+  ~ 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.
+  -->
+
+<executablePlugins>
+    <executablePlugin>
+        <profile>NUGET</profile>
+        <pluginClass>npanday.executable.impl.DefaultNetExecutable</pluginClass>
+
+        <executable>nuget</executable>
+        <executableVersion>1.7</executableVersion>
+
+        <vendor>MICROSOFT</vendor>
+
+        <frameworkVersions>
+            <frameworkVersion>4.0</frameworkVersion>
+            <frameworkVersion>3.5</frameworkVersion>
+            <frameworkVersion>2.0</frameworkVersion>
+        </frameworkVersions>
+
+        <probingPaths>
+        </probingPaths>
+
+        <platforms>
+            <platform>
+                <operatingSystem>Windows</operatingSystem>
+            </platform>
+        </platforms>
+
+    </executablePlugin>
+</executablePlugins>

Added: incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/plexus/components.xml?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/plexus/components.xml (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/main/resources/META-INF/plexus/components.xml Thu Apr 26 10:09:02 2012
@@ -0,0 +1,24 @@
+<!--
+  ~ 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.
+  -->
+
+<component-set>
+  <components>
+    <!-- created through annotations -->
+  </components>
+</component-set>

Added: incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/DotnetVersionTest.groovy
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/DotnetVersionTest.groovy?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/DotnetVersionTest.groovy (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/DotnetVersionTest.groovy Thu Apr 26 10:09:02 2012
@@ -0,0 +1,66 @@
+import npanday.nuget.DotnetVersion
+import org.junit.Test
+/*
+ * 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.
+ */
+
+/**
+ * 
+ * @author <a href="mailto:me@lcorneliussen.de>Lars Corneliussen, Faktum Software</a>
+ */
+class DotnetVersionTest {
+    @Test
+    void parse_1_0()
+    {
+        DotnetVersion v = DotnetVersion.parse("1.0")
+        assert v.getMajor() == 1
+        assert v.getMinor() == 0
+        assert v.getPatch() == 0
+        assert v.getBuild() == 0
+    }
+
+    @Test
+    void parse_1_2_3_4()
+    {
+        DotnetVersion v = DotnetVersion.parse("1.2.3.4")
+        assert v.getMajor() == 1
+        assert v.getMinor() == 2
+        assert v.getPatch() == 3
+        assert v.getBuild() == 4
+    }
+
+    @Test
+    void compare()
+    {
+        assert DotnetVersion.parse("1.0") < DotnetVersion.parse("1.1")
+        assert DotnetVersion.parse("1.1.0") < DotnetVersion.parse("1.1.1")
+        assert DotnetVersion.parse("1.1.1.0") < DotnetVersion.parse("1.1.1.1")
+
+        assert DotnetVersion.parse("1.1") > DotnetVersion.parse("1.0")
+        assert DotnetVersion.parse("1.1.1") > DotnetVersion.parse("1.1.0")
+        assert DotnetVersion.parse("1.1.1.1") > DotnetVersion.parse("1.1.1.0")
+
+        assert DotnetVersion.parse("1.1") != DotnetVersion.parse("1.0")
+        assert DotnetVersion.parse("1.1.1") != DotnetVersion.parse("1.1.0")
+        assert DotnetVersion.parse("1.1.1.1") != DotnetVersion.parse("1.1.1.0")
+
+        assert DotnetVersion.parse("1.1") == DotnetVersion.parse("1.1")
+        assert DotnetVersion.parse("1.1.1") == DotnetVersion.parse("1.1.1")
+        assert DotnetVersion.parse("1.1.1.1") == DotnetVersion.parse("1.1.1.1")
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetSemanticVersionTest.groovy
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetSemanticVersionTest.groovy?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetSemanticVersionTest.groovy (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetSemanticVersionTest.groovy Thu Apr 26 10:09:02 2012
@@ -0,0 +1,73 @@
+import npanday.nuget.NugetSemanticVersion
+import org.junit.Test
+/*
+ * 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.
+ */
+
+/**
+ * 
+ * @author <a href="mailto:me@lcorneliussen.de>Lars Corneliussen, Faktum Software</a>
+ */
+class NugetSemanticVersionTest {
+
+    @Test
+    void compare()
+    {
+        assert NugetSemanticVersion.parse( "1.0" ) < NugetSemanticVersion.parse("1.1")
+        assert NugetSemanticVersion.parse("1.1.0") < NugetSemanticVersion.parse("1.1.1")
+        assert NugetSemanticVersion.parse("1.1.1.0") < NugetSemanticVersion.parse("1.1.1.1")
+
+        assert NugetSemanticVersion.parse("1.1") > NugetSemanticVersion.parse("1.0")
+        assert NugetSemanticVersion.parse("1.1.1") > NugetSemanticVersion.parse("1.1.0")
+        assert NugetSemanticVersion.parse("1.1.1.1") > NugetSemanticVersion.parse("1.1.1.0")
+    }
+
+    @Test
+    void compare_special()
+    {
+        assert NugetSemanticVersion.parse("1.1-a") < NugetSemanticVersion.parse("1.1-b")
+        assert NugetSemanticVersion.parse("1.1.1-a") < NugetSemanticVersion.parse("1.1.1-b")
+        assert NugetSemanticVersion.parse("1.1.1.1-a") < NugetSemanticVersion.parse("1.1.1.1-b")
+
+        assert NugetSemanticVersion.parse("1.1-b") > NugetSemanticVersion.parse("1.1-a")
+        assert NugetSemanticVersion.parse("1.1.1-b") > NugetSemanticVersion.parse("1.1.1-a")
+        assert NugetSemanticVersion.parse("1.1.1.1-b") > NugetSemanticVersion.parse("1.1.1.1-a")
+    }
+
+    @Test
+    void equality(){
+        assert NugetSemanticVersion.parse("1.1") != NugetSemanticVersion.parse("1.0")
+        assert NugetSemanticVersion.parse("1.1.1") != NugetSemanticVersion.parse("1.1.0")
+        assert NugetSemanticVersion.parse("1.1.1.1") != NugetSemanticVersion.parse("1.1.1.0")
+
+        assert NugetSemanticVersion.parse("1.1") == NugetSemanticVersion.parse("1.1")
+        assert NugetSemanticVersion.parse("1.1.1") == NugetSemanticVersion.parse("1.1.1")
+        assert NugetSemanticVersion.parse("1.1.1.1") == NugetSemanticVersion.parse("1.1.1.1")
+    }
+
+    @Test
+    void equality_special(){
+        assert NugetSemanticVersion.parse("1.1-a") != NugetSemanticVersion.parse("1.1-b")
+        assert NugetSemanticVersion.parse("1.1.1-a") != NugetSemanticVersion.parse("1.1.1-b")
+        assert NugetSemanticVersion.parse("1.1.1.1-a") != NugetSemanticVersion.parse("1.1.1.1-b")
+
+        assert NugetSemanticVersion.parse("1.1-a") == NugetSemanticVersion.parse("1.1-a")
+        assert NugetSemanticVersion.parse("1.1.1-a") == NugetSemanticVersion.parse("1.1.1-a")
+        assert NugetSemanticVersion.parse("1.1.1.1-a") == NugetSemanticVersion.parse("1.1.1.1-a")
+    }
+}

Added: incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetVersionSpecTest.groovy
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetVersionSpecTest.groovy?rev=1330742&view=auto
==============================================================================
--- incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetVersionSpecTest.groovy (added)
+++ incubator/npanday/trunk/components/dotnet-nuget/src/test/groovy/NugetVersionSpecTest.groovy Thu Apr 26 10:09:02 2012
@@ -0,0 +1,90 @@
+import org.junit.Test
+import npanday.nuget.NugetVersionSpec
+import npanday.nuget.NugetSemanticVersion
+/*
+ * 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.
+ */
+
+/**
+ * 
+ * @author <a href="mailto:me@lcorneliussen.de>Lars Corneliussen, Faktum Software</a>
+ */
+class NugetVersionSpecTest {
+
+    @Test
+    void parse_simple(){
+        NugetVersionSpec spec = NugetVersionSpec.parse("1.0-a")
+        assert spec.IsMinInclusive
+        assert spec.MinVersion
+        assert !spec.IsMaxInclusive
+        assert spec.MaxVersion == null
+    }
+
+    @Test
+    void parse_exact(){
+        NugetVersionSpec spec = NugetVersionSpec.parse("[1.0-a]")
+        assert spec.IsMinInclusive
+        assert spec.MinVersion == NugetSemanticVersion.parse("1.0-a")
+        assert spec.IsMaxInclusive
+        assert spec.MaxVersion == NugetSemanticVersion.parse("1.0-a")
+    }
+
+    @Test
+    void parse_between_exclusive(){
+        NugetVersionSpec spec = NugetVersionSpec.parse("(1.0, 2.0)")
+        assert !spec.IsMinInclusive
+        assert spec.MinVersion == NugetSemanticVersion.parse("1.0")
+        assert !spec.IsMaxInclusive
+        assert spec.MaxVersion == NugetSemanticVersion.parse("2.0")
+    }
+
+    @Test
+    void isSatisfiedBy_simple(){
+         assert NugetVersionSpec.parse("1.0").isSatisfiedBy( NugetSemanticVersion.parse("1.0"))
+         assert NugetVersionSpec.parse("1.0").isSatisfiedBy( NugetSemanticVersion.parse("1.1"))
+    }
+
+    @Test
+    void isSatisfiedBy_exact(){
+        def spec = NugetVersionSpec.parse( "[1.0]" )
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("1.0"))
+        assert !spec.isSatisfiedBy( NugetSemanticVersion.parse("1.0.1"))
+        assert !spec.isSatisfiedBy( NugetSemanticVersion.parse("1.1"))
+        assert !spec.isSatisfiedBy( NugetSemanticVersion.parse("0.9"))
+    }
+
+    @Test
+    void isSatisfiedBy_between_exclusive(){
+        def spec = NugetVersionSpec.parse( "(1.0, 2.0)" )
+        assert !spec.isSatisfiedBy( NugetSemanticVersion.parse("1.0"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("1.1"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("1.0.1"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("1.9"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("1.9.9.9"))
+        assert !spec.isSatisfiedBy( NugetSemanticVersion.parse("2.0"))
+    }
+
+    @Test
+    void isSatisfiedBy_with_special(){
+        def spec = NugetVersionSpec.parse( "2.0-beta" )
+        assert !spec.isSatisfiedBy( NugetSemanticVersion.parse("2.0-alpha"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("2.0-beta"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("2.0-beta2"))
+        assert spec.isSatisfiedBy( NugetSemanticVersion.parse("2.0"))
+    }
+}

Modified: incubator/npanday/trunk/components/pom.xml
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/pom.xml?rev=1330742&r1=1330741&r2=1330742&view=diff
==============================================================================
--- incubator/npanday/trunk/components/pom.xml (original)
+++ incubator/npanday/trunk/components/pom.xml Thu Apr 26 10:09:02 2012
@@ -43,6 +43,7 @@
     <module>dotnet-vendor</module>
     <module>dotnet-packaging</module>
     <module>dotnet-msbuild</module>
+    <module>dotnet-nuget</module>
   </modules>
   <dependencies>
     <dependency>