You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gb...@apache.org on 2017/07/19 21:00:18 UTC

svn commit: r1802430 - in /maven/plugins/trunk/maven-antrun-plugin/src/site/apt: examples/customTasks.apt.vm index.apt.vm

Author: gboue
Date: Wed Jul 19 21:00:17 2017
New Revision: 1802430

URL: http://svn.apache.org/viewvc?rev=1802430&view=rev
Log:
[MANTRUN-205] maven-antrun-plugin pages at maven.apache.org still have bad url codehaus references

Add example of using Ant Contrib, previously contained in removed dead link.

Modified:
    maven/plugins/trunk/maven-antrun-plugin/src/site/apt/examples/customTasks.apt.vm
    maven/plugins/trunk/maven-antrun-plugin/src/site/apt/index.apt.vm

Modified: maven/plugins/trunk/maven-antrun-plugin/src/site/apt/examples/customTasks.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antrun-plugin/src/site/apt/examples/customTasks.apt.vm?rev=1802430&r1=1802429&r2=1802430&view=diff
==============================================================================
--- maven/plugins/trunk/maven-antrun-plugin/src/site/apt/examples/customTasks.apt.vm (original)
+++ maven/plugins/trunk/maven-antrun-plugin/src/site/apt/examples/customTasks.apt.vm Wed Jul 19 21:00:17 2017
@@ -86,3 +86,48 @@ Using tasks not included in Ant's defaul
 
 ------
 
+ Another example of this is the use of {{{http://ant-contrib.sourceforge.net/}Ant-Contrib}} tasks:
+
+------
+<project>
+  [...]
+  <build>
+    [...]
+    <plugins>
+      [...]
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>${project.version}</version>
+        <executions>
+          <execution>
+            [...]
+            <configuration>
+              <target>
+                <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
+                [...]
+              </target>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>ant-contrib</groupId>
+            <artifactId>ant-contrib</artifactId>
+            <version>1.0b3</version>
+            <exclusions>
+              <exclusion>
+                <groupId>ant</groupId>
+                <artifactId>ant</artifactId>
+              </exclusion>
+            </exclusions>
+          </dependency>
+        </dependencies>
+      </plugin>
+    </plugins>
+  </build>
+</project>
+------
\ No newline at end of file

Modified: maven/plugins/trunk/maven-antrun-plugin/src/site/apt/index.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antrun-plugin/src/site/apt/index.apt.vm?rev=1802430&r1=1802429&r2=1802430&view=diff
==============================================================================
--- maven/plugins/trunk/maven-antrun-plugin/src/site/apt/index.apt.vm (original)
+++ maven/plugins/trunk/maven-antrun-plugin/src/site/apt/index.apt.vm Wed Jul 19 21:00:17 2017
@@ -62,9 +62,7 @@ ${project.name}
 * Usage
 
   General instructions on how to use the AntRun Plugin can be found on the {{{./usage.html}usage page}}. Some more
-  specific use cases are described in the examples given below. Last but not least, users occasionally contribute
-  additional examples, tips or errata to the
-  {{{http://docs.codehaus.org/display/MAVENUSER/Antrun+Plugin}plugin's wiki page}}.
+  specific use cases are described in the examples given below.
 
   In case you still have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel
   free to contact the {{{./mail-lists.html}user mailing list}}. The posts to the mailing list are archived and could