You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by si...@apache.org on 2007/08/17 02:05:02 UTC

svn commit: r566903 [2/2] - in /incubator/nmaven/trunk/plugins: ./ maven-compile-plugin/src/main/java/org/apache/maven/dotnet/plugin/compile/ maven-compile-plugin/src/site/ maven-compile-plugin/src/site/apt/ maven-deploy-plugin/ maven-deploy-plugin/src...

Modified: incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/site.xml?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/site.xml (original)
+++ incubator/nmaven/trunk/plugins/maven-wsdl-plugin/src/site/site.xml Thu Aug 16 19:04:57 2007
@@ -1,17 +1,18 @@
 <project name="NMaven">
-    <body>
-        <links>
-            <item name="Project Site" href="http://incubator.apache.org/projects/nmaven.html"/>
-            <item name="NMaven" href="http://incubator.apache.org/nmaven"/>
-            <item name="NMaven SVN" href="http://svn.apache.org/repos/asf/incubator/nmaven/"/>
-            <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="index.html"/>
-            <item name="How to Use" href="how-to-use.html"/>
-        </menu>
-        ${reports}
-    </body>
+  <body>
+    <links>
+      <item name="Project Site" href="http://incubator.apache.org/projects/nmaven.html"/>
+      <item name="NMaven" href="http://incubator.apache.org/nmaven"/>
+      <item name="NMaven SVN" href="http://svn.apache.org/repos/asf/incubator/nmaven/"/>
+      <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="index.html"/>
+      <item name="Goals" href="plugin-info.html"/>
+      <item name="Usage" href="usage.html"/>
+    </menu>
+    ${reports}
+  </body>
 </project>

Modified: incubator/nmaven/trunk/plugins/maven-xsd-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/pom.xml?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/pom.xml (original)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/pom.xml Thu Aug 16 19:04:57 2007
@@ -29,7 +29,7 @@
   <packaging>maven-plugin</packaging>
   <name>maven-xsd-plugin</name>
   <description>
-    Maven Plugin for .NET
+    Maven Plugin for .NET: Generates schema bindings
   </description>
   <distributionManagement>
     <site>

Modified: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java (original)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XmlToXsdGeneratorMojo.java Thu Aug 16 19:04:57 2007
@@ -37,6 +37,7 @@
  * @author Shane Isbell
  * @goal xml
  * @phase process-sources
+ * @description Generates XSD from XML instance
  */
 public class XmlToXsdGeneratorMojo
     extends AbstractMojo

Modified: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java (original)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsd/XsdGeneratorMojo.java Thu Aug 16 19:04:57 2007
@@ -37,6 +37,7 @@
  * @author Shane Isbell
  * @goal xsd
  * @phase process-sources
+ * @description Generates XSD class
  */
 
 public class XsdGeneratorMojo

Added: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/apt/usage.apt?view=auto&rev=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/apt/usage.apt (added)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/apt/usage.apt Thu Aug 16 19:04:57 2007
@@ -0,0 +1,112 @@
+How to Use
+
+* Generate a class binding/dataset from a schema
+
+ If you already have a schema, then use the xsd goal by adding its execution in the pom.xml file. The xsdFile should
+ point to the xsd.
+
++----+
+ <project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.it</groupId>
+  <artifactId>it0006</artifactId>
+  <packaging>library</packaging>
+  <version>1.0.0</version>
+  <name>it0006</name>
+  <build>
+    <sourceDirectory>src/main/csharp</sourceDirectory>
+    <testSourceDirectory>src/test/csharp</testSourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-xsd-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>xsd</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <xsdFile>StockingHandlers_1_0.xsd</xsdFile>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
++----+
+
+ To generate a dataset instead of classes, change the plugin configuation:
+
++----+
+ <project>
+  [...]
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-xsd-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>xsd</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <xsdFile>StockingHandlers_1_0.xsd</xsdFile>
+          <generate>dataset</generate>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
++----+
+
+* Generate a schema from an XML instance and then create a class binding from the generated schema
+
+ You can also generate the schema from a sample XML file prior to generating the bindings. The xmlFiles tag allows
+ you to specify one or more xml files.
+ 
++----+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.it</groupId>
+  <artifactId>it0007</artifactId>
+  <packaging>library</packaging>
+  <version>1.0.0</version>
+  <name>it0007</name>
+  <build>
+    <sourceDirectory>src/main/csharp</sourceDirectory>
+    <testSourceDirectory>src/test/csharp</testSourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-compile-plugin</artifactId>
+        <extensions>true</extensions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.dotnet.plugins</groupId>
+        <artifactId>maven-xsd-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>xml</goal>
+              <goal>xsd</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <xmlFiles>
+            <xmlFile>${basedir}/registry-config.xml</xmlFile>
+          </xmlFiles>
+          <xsdFile>${project.build.directory}/generated-resources/registry-config.xsd</xsdFile>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
++----+
\ No newline at end of file

Modified: incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml (original)
+++ incubator/nmaven/trunk/plugins/maven-xsd-plugin/src/site/site.xml Thu Aug 16 19:04:57 2007
@@ -1,16 +1,18 @@
 <project name="NMaven">
-    <body>
-        <links>
-            <item name="Project Site" href="http://incubator.apache.org/projects/nmaven.html"/>
-            <item name="NMaven" href="http://incubator.apache.org/nmaven"/>
-            <item name="NMaven SVN" href="http://svn.apache.org/repos/asf/incubator/nmaven/"/>
-            <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="index.html"/>            
-        </menu>
-        ${reports}
-    </body>
+  <body>
+    <links>
+      <item name="Project Site" href="http://incubator.apache.org/projects/nmaven.html"/>
+      <item name="NMaven" href="http://incubator.apache.org/nmaven"/>
+      <item name="NMaven SVN" href="http://svn.apache.org/repos/asf/incubator/nmaven/"/>
+      <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="index.html"/>
+      <item name="Goals" href="plugin-info.html"/>
+      <item name="Usage" href="usage.html"/>
+    </menu>
+    ${reports}
+  </body>
 </project>

Modified: incubator/nmaven/trunk/plugins/maven-xsp-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsp-plugin/pom.xml?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsp-plugin/pom.xml (original)
+++ incubator/nmaven/trunk/plugins/maven-xsp-plugin/pom.xml Thu Aug 16 19:04:57 2007
@@ -29,7 +29,7 @@
   <packaging>maven-plugin</packaging>
   <name>maven-xsp-plugin</name>
   <description>
-    Maven Plugin for .NET
+    Maven Plugin for .NET: Manages the Mono XSP Server
   </description>
   <distributionManagement>
     <site>

Modified: incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStarterMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStarterMojo.java?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStarterMojo.java (original)
+++ incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStarterMojo.java Thu Aug 16 19:04:57 2007
@@ -22,28 +22,22 @@
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.dotnet.PlatformUnsupportedException;
 import org.apache.maven.dotnet.vendor.Vendor;
-import org.apache.maven.project.MavenProject;
 
 import java.io.File;
 import java.util.ArrayList;
 
 /**
+ * Starts the XSP server.
+ *
  * @author Shane Isbell
  * @goal start-xsp
  * @phase pre-integration-test
+ * @description Starts the XSP server.
  */
 public class XspStarterMojo
     extends AbstractMojo
 {
     /**
-     * The maven project.
-     *
-     * @parameter expression="${project}"
-     * @required
-     */
-    private MavenProject project;
-
-    /**
      * The home directory of your .NET SDK.
      *
      * @parameter expression="${netHome}"
@@ -56,13 +50,6 @@
     private String frameworkVersion;
 
     /**
-     * The profile that the executable should use.
-     *
-     * @parameter expression = "${profile}" default-value = "XSD:SCHEMA"
-     */
-    private String profile;
-
-    /**
      * @component
      */
     private org.apache.maven.dotnet.executable.NetExecutableFactory netExecutableFactory;
@@ -77,14 +64,13 @@
                                                                                        new ArrayList<String>(),
                                                                                        netHome );
             Thread thread = new Thread( executable );
-            getPluginContext().put( "xspThread", thread);
+            getPluginContext().put( "xspThread", thread );
             thread.start();
 
         }
         catch ( PlatformUnsupportedException e )
         {
-            throw new MojoExecutionException( "NMAVEN-1400-001: Platform Unsupported: Vendor " +
-                ", frameworkVersion = " + frameworkVersion + ", Profile = " + profile, e );
+            throw new MojoExecutionException( "NMAVEN-1400-001: Platform Unsupported:", e );
         }
     }
 }

Modified: incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStopperMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStopperMojo.java?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStopperMojo.java (original)
+++ incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/main/java/org/apache/maven/dotnet/plugin/xsp/XspStopperMojo.java Thu Aug 16 19:04:57 2007
@@ -18,46 +18,21 @@
  */
 package org.apache.maven.dotnet.plugin.xsp;
 
-import org.apache.maven.project.MavenProject;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.AbstractMojo;
 
-import java.io.File;
 
 /**
+ * Stops the XSP Server.
+ *
  * @author Shane Isbell
  * @goal stop-xsp
  * @phase post-integration-test
+ * @description Stops the XSP Server
  */
 public class XspStopperMojo
     extends AbstractMojo
 {
-    /**
-     * The maven project.
-     *
-     * @parameter expression="${project}"
-     * @required
-     */
-    private MavenProject project;
-
-    /**
-     * The home directory of your .NET SDK.
-     *
-     * @parameter expression="${netHome}"
-     */
-    private File netHome;
-
-    /**
-     * @parameter expression = "${frameworkVersion}"
-     */
-    private String frameworkVersion;
-
-    /**
-     * The profile that the executable should use.
-     *
-     * @parameter expression = "${profile}" default-value = "XSD:SCHEMA"
-     */
-    private String profile;
 
     /**
      * @component

Modified: incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/site/site.xml?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/site/site.xml (original)
+++ incubator/nmaven/trunk/plugins/maven-xsp-plugin/src/site/site.xml Thu Aug 16 19:04:57 2007
@@ -1,16 +1,17 @@
 <project name="NMaven">
-    <body>
-        <links>
-            <item name="Project Site" href="http://incubator.apache.org/projects/nmaven.html"/>
-            <item name="NMaven" href="http://incubator.apache.org/nmaven"/>
-            <item name="NMaven SVN" href="http://svn.apache.org/repos/asf/incubator/nmaven/"/>
-            <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="index.html"/>
-        </menu>
-        ${reports}
-    </body>
+  <body>
+    <links>
+      <item name="Project Site" href="http://incubator.apache.org/projects/nmaven.html"/>
+      <item name="NMaven" href="http://incubator.apache.org/nmaven"/>
+      <item name="NMaven SVN" href="http://svn.apache.org/repos/asf/incubator/nmaven/"/>
+      <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="index.html"/>
+      <item name="Goals" href="plugin-info.html"/>
+    </menu>
+    ${reports}
+  </body>
 </project>

Modified: incubator/nmaven/trunk/plugins/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/pom.xml?view=diff&rev=566903&r1=566902&r2=566903
==============================================================================
--- incubator/nmaven/trunk/plugins/pom.xml (original)
+++ incubator/nmaven/trunk/plugins/pom.xml Thu Aug 16 19:04:57 2007
@@ -113,10 +113,13 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jxr-plugin</artifactId>
       </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-javadoc-plugin</artifactId>
-      </plugin>
     </plugins>
   </reporting>
+  <distributionManagement>
+    <site>
+      <id>nmaven-apache-site</id>
+      <name>NMaven Site</name>
+      <url>file://${basedir}/../../www</url>
+    </site>
+  </distributionManagement>
 </project>