You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/02/21 15:31:07 UTC

svn commit: r746519 - in /maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic: ./ invoker.properties pom.xml src/ src/main/ src/main/java/ src/main/java/test/ src/main/java/test/MyMojo.java test.properties

Author: bentmann
Date: Sat Feb 21 14:31:06 2009
New Revision: 746519

URL: http://svn.apache.org/viewvc?rev=746519&view=rev
Log:
o Added IT to check help mojo generation

Added:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties   (with props)
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml   (with props)
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java   (with props)
    maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties   (with props)

Added: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties?rev=746519&view=auto
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties (added)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties Sat Feb 21 14:31:06 2009
@@ -0,0 +1,2 @@
+invoker.goals.1 = install
+invoker.goals.2 = org.apache.maven.its.plugin:help:1.0:help

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml?rev=746519&view=auto
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml (added)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml Sat Feb 21 14:31:06 2009
@@ -0,0 +1,63 @@
+<?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>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.plugin</groupId>
+  <artifactId>help</artifactId>
+  <version>1.0</version>
+  <packaging>maven-plugin</packaging>
+
+  <description>
+    Tests generation and compilation of the help mojo.
+  </description>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>help-goal</id>
+            <goals>
+              <goal>helpmojo</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java?rev=746519&view=auto
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java (added)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java Sat Feb 21 14:31:06 2009
@@ -0,0 +1,43 @@
+package test;
+
+import org.apache.maven.plugin.AbstractMojo;
+
+/**
+ * MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some <strong>important</strong> javadoc<br> and an
+ * inline link to {@link test.AnotherMojo}.
+ * 
+ * @goal test
+ * @deprecated As of 1.0, use the "quoted" goal instead.
+ * @since 2.1
+ */
+public class MyMojo
+    extends AbstractMojo
+{
+
+    /**
+     * This parameter uses "quotation" marks and backslashes '\\' in its description. Those characters <em>must</em> be
+     * escaped in Java string literals.
+     * 
+     * @parameter default-value="escape\\backslash"
+     * @since 2.0
+     */
+    private String defaultParam;
+
+    /**
+     * This parameter is deprecated.
+     * 
+     * @parameter
+     * @deprecated As of version 1.0, us the {@link #defaultParam} instead.
+     */
+    private String deprecatedParam;
+
+    /**
+     * @parameter expression="${test.undocumented}"
+     */
+    private String undocumentedParam;
+
+    public void execute()
+    {
+    }
+
+}

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/src/main/java/test/MyMojo.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties?rev=746519&view=auto
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties (added)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties Sat Feb 21 14:31:06 2009
@@ -0,0 +1,2 @@
+detail = true
+goal = test

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision