maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r326355 - in /maven/components/trunk/maven-site/src/site: apt/guides/index.apt apt/guides/mini/guide-using-ant.apt xdoc/index.xml
Date Wed, 19 Oct 2005 03:36:54 GMT
Author: jvanzyl
Date: Tue Oct 18 20:36:51 2005
New Revision: 326355

URL: http://svn.apache.org/viewcvs?rev=326355&view=rev
Log:
o can't have enough references to the documentation
o add a guide for using ant tasks within the POM
o update the guide toc

Added:
    maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt   (with
props)
Modified:
    maven/components/trunk/maven-site/src/site/apt/guides/index.apt
    maven/components/trunk/maven-site/src/site/xdoc/index.xml

Modified: maven/components/trunk/maven-site/src/site/apt/guides/index.apt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/apt/guides/index.apt?rev=326355&r1=326354&r2=326355&view=diff
==============================================================================
--- maven/components/trunk/maven-site/src/site/apt/guides/index.apt (original)
+++ maven/components/trunk/maven-site/src/site/apt/guides/index.apt Tue Oct 18 20:36:51 2005
@@ -38,7 +38,7 @@
 
  * {{{mini/guide-embedding-m2.html}Guide to Embedding Maven 2.x}}
 
- * {{{mini/guide-generating-sources.html}Guide to Generating Sources}}
+ * {{{mini/guide-generating-sources.html}Guide to generating Sources}}
 
  * {{{mini/guide-ibiblio-upload.html}Guide to uploading artifacts to Ibiblio}}
 
@@ -65,6 +65,8 @@
  * {{{mini/guide-releasing.html}Guide to Releasing}}
 
  * {{{mini/guide-site.html}Guide to creating a site}}
+
+ * {{{mini/guide-using-ant.html}Guide to using Ant with Maven}}
 
  * {{{mini/guide-using-extensions.html}Guide to using Extensions}}
 

Added: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt?rev=326355&view=auto
==============================================================================
--- maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt (added)
+++ maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt Tue Oct
18 20:36:51 2005
@@ -0,0 +1,87 @@
+ ------
+ Guide to using Ant with Maven
+ ------
+ Jason van Zyl
+ ------
+ 12 October 2005
+ ------
+
+Guide to using Ant with Maven
+
+ The example above illustrates how to bind an ant script to a lifecycle phase. You can add
a script to each lifecycle
+ phase, by duplicating the <execution/> section and specifying a new phase.
+
++----+
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>my-test-app</artifactId>
+  <groupId>my-test-group</groupId>
+  <version>1.0-SNAPSHOT</version>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-sources</phase>
+            <configuration>
+              <tasks>
+
+                <!--
+                  Place any ant task here. You can add anything
+                  you can add between <target> and </target> in a
+                  build.xml.
+                -->
+
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
+
++----+
+
+ So a concrete example would be something like the following:
+
++----+
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>my-test-app</artifactId>
+  <groupId>my-test-group</groupId>
+  <version>1.0-SNAPSHOT</version>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-sources</phase>
+            <configuration>
+              <tasks>
+                <exec
+                  dir="${basedir}"
+                  executable="${basedir}/src/main/sh/do-something.sh"
+                  failonerror="true">
+                  <arg line="arg1 arg2 arg3 arg4" />
+                </exec>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
+
++----+
\ No newline at end of file

Propchange: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-using-ant.apt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/components/trunk/maven-site/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/xdoc/index.xml?rev=326355&r1=326354&r2=326355&view=diff
==============================================================================
--- maven/components/trunk/maven-site/src/site/xdoc/index.xml (original)
+++ maven/components/trunk/maven-site/src/site/xdoc/index.xml Tue Oct 18 20:36:51 2005
@@ -25,8 +25,11 @@
             <a href="download.html#installation">Installation Instructions</a>
           </li>
           <li>
-            <a href="getting-started.html">Getting Started</a>
+            <a href="guides/getting-start/getting-started.html">Getting Started</a>
           </li>
+          <li>
+            <a href="guides/index.html">Documentation</a>
+          </li>          
         </ul>
       </div>
       <p>



Mime
View raw message