Author: eworley
Date: Sun May 25 17:47:02 2008
New Revision: 660066

URL: http://svn.apache.org/viewvc?rev=660066&view=rev
Log:
[NMaven-121] Adding support for configuring the nmaven compiler plugin with the 
root namespasce for VB projects
Submitted By: jan ancajas

Modified:
    
incubator/nmaven/branches/NMAVEN_0.14/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java

Modified: 
incubator/nmaven/branches/NMAVEN_0.14/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java?rev=660066&r1=660065&r2=660066&view=diff
==============================================================================
--- 
incubator/nmaven/branches/NMAVEN_0.14/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java
 (original)
+++ 
incubator/nmaven/branches/NMAVEN_0.14/plugins/maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/CompilerMojo.java
 Sun May 25 17:47:02 2008
@@ -120,6 +120,15 @@
      */
     private String language;
 
+   /**
+     * Returns the rootnamespace of the project. Used by VB project only.
+     *
+     * @parameter expression="${rootNameSpace}"
+     * 
+     */
+    private String rootNameSpace;
+    
+
     /**
      * The Vendor for the Compiler. Not
      * case or white-space sensitive.
@@ -209,6 +218,12 @@
         {
             parameters.add( "/debug+" );
         }
+               
+        //rootnamespace for VB
+        if ( "VB".equals(compilerRequirement.getLanguage()) && rootNameSpace 
!= null )
+        {
+            parameters.add( "/rootnamespace:" + rootNameSpace );
+        }
 
         compilerConfig.setCommands( parameters );
 
@@ -318,4 +333,4 @@
         }
         return lastModArtifact;
     }
-}
\ No newline at end of file
+}


Reply via email to