You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2009/02/14 23:51:32 UTC

svn commit: r744580 - in /maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site: apt/usage.apt fml/ fml/faq.fml site.xml

Author: hboutemy
Date: Sat Feb 14 22:51:31 2009
New Revision: 744580

URL: http://svn.apache.org/viewvc?rev=744580&view=rev
Log:
[MANTTASKS-114] added a FAQ

Added:
    maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/
    maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml   (with props)
Modified:
    maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/usage.apt
    maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/site.xml

Modified: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/usage.apt?rev=744580&r1=744579&r2=744580&view=diff
==============================================================================
--- maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/usage.apt (original)
+++ maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/apt/usage.apt Sat Feb 14 22:51:31 2009
@@ -60,14 +60,14 @@
 </javac>
 -----
 
-  <(since 2.0.8)> For each dependency resolved using either inline declaration or a pom reference, the property 
+  <(since 2.0.8)> For each dependency resolved using either inline declaration or a pom reference, the property
   <<<groupId:artifactId:type[:classifier]>>> is defined pointing to the corresponding file.  For example,
   a resolved dependency on junit can be accessed in the following way:
-  
+
 -----
 <echo message="JUnit jar file downloaded to ${junit:junit:jar}"/>
 -----
-  
+
   Another option you can use is <<<filesetId>>>, which will give you a fileset reference that can be used to copy
   files into a particular location. For example, to populate <<<WEB-INF/lib>>> with your dependencies
   you could use the following:
@@ -375,8 +375,13 @@
       {{{http://svn.apache.org/repos/asf/maven/components/trunk/maven-distribution/src/conf/settings.xml} sample settings file}}
       in the Maven installation.
 
-* Sample Ant Script
+* Examples
 
-  The file
-  {{{http://svn.apache.org/repos/asf/maven/ant-tasks/trunk/sample.build.xml} sample.build.xml}}
-  is a sample Ant script showing some of the functionality in action.
+  * Maven Ant Tasks's
+    {{{http://svn.apache.org/repos/asf/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/sample.build.xml} sample.build.xml}}
+    is a sample Ant script showing most of the functionality in action (it's used as unit-tests).
+
+  * Maven itself can be bootstrapped using Maven Ant Tasks:
+    see {{{http://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/build.xml} build.xml}} in
+    Maven Core sources. Note that most content is about building Maven project: there is only a little part that is
+    using Maven Ant Tasks, to get dependencies, ie the <<<pull>>> target (with its <<<depends>>> targets).
\ No newline at end of file

Added: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml?rev=744580&view=auto
==============================================================================
--- maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml (added)
+++ maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml Sat Feb 14 22:51:31 2009
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!--
+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.
+-->
+
+<faqs title="Frequently Asked Questions">
+  <part id="General">
+    <faq id="build">
+      <question>How to build a Maven project with Maven Ant Tasks?</question>
+      <answer>
+        <p>Maven Ant Tasks are not meant to <i>build</i> a project based on its <code>pom.xml</code>, but only
+        get dependencies defined in <code>pom.xml</code>.</p>
+      </answer>
+    </faq>
+  </part>
+</faqs>
\ No newline at end of file

Propchange: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/fml/faq.fml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/site.xml?rev=744580&r1=744579&r2=744580&view=diff
==============================================================================
--- maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/site.xml (original)
+++ maven/ant-tasks/branches/maven-ant-tasks-2.0.x/src/site/site.xml Sat Feb 14 22:51:31 2009
@@ -33,8 +33,9 @@
       <item name="Installation" href="installation.html"/>
       <item name="Usage" href="usage.html"/>
       <item name="Release Notes" href="release-notes.html"/>
+      <item name="FAQ" href="faq.html"/>
     </menu>
-    <menu name="Reference">
+    <menu name="References">
       <item name="Task Reference" href="reference.html#Task">
         <item name="dependencies" href="reference.html#dependencies"/>
         <item name="install, deploy" href="reference.html#install"/>