maven-plugins/ant/xdocs/index.xml
2005-01-20 23:27:33 +00:00

94 lines
4.7 KiB
XML

<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed 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.
*/
-->
<document>
<properties>
<title>Maven Ant Plug-in</title>
<author email="jason@zenplex.com">Jason van Zyl</author>
<author email="aheritier@apache.org">Arnaud Heritier</author>
</properties>
<body>
<section name="Maven Ant Plug-in">
<p>
This plugin generates a vanilla ant build.xml file that so that user's
that haven't installed Maven can still build. Though it is always
highly recommended that you install Maven :-)
</p>
<p>
For more information on the functionality provided by this plugin,
please see the <a href="goals.html">Goals</a> document.
</p>
<p>
For more information on how to customise the functionality provided
by this plugin, please see the <a href="properties.html">properties</a>
document.
</p>
</section>
<section name="Information about the generated Ant build file">
<subsection name="Properties">
<p>When you generate the build file with maven, if the property <a href="properties.html">
<code>"maven.ant.use.properties"</code>
</a> is setted to true (default behaviour), the build file will load successively the properties stored in files <code>"build.properties"</code> located in :</p>
<ol>
<li>the project's root directory,</li>
<li>the user's home directory.</li>
</ol>
<p>If this property is setted to false the generated build file doesn't load this properties, so it will help you to avoid conflicts.</p>
<p>The following properties are defined in the build files and thus can be overridden in the files described previously : </p>
<ul>
<li>
<b>defaulttargetdir</b> : the directory where the generated files are stored <i>(default = ${project.home}/target)</i>.</li>
<li>
<b>libdir</b> : the directory where are downloaded dependencies <i>(default = ${project.home}/target/lib)</i>.</li>
<li>
<b>classesdir</b> : the directory where compiled classes are stored <i>(default = ${project.home}/target/classes)</i>.</li>
<li>
<b>testclassesdir</b> (only if there are unit tests classes in your project) : the directory where compiled classes for unit tests are stored <i>(default = ${project.home}/target/test-classes)</i>.</li>
<li>
<b>testreportdir</b> (only if there are unit tests classes in your project) : the directory where tests reports are stored <i>(default = ${project.home}/target/test-reports)</i>.</li>
<li>
<b>distdir</b> : the directory where the distribution is created <i>(default = ${project.home}/dist)</i>.</li>
<li>
<b>javadocdir</b> : the directory where is stored the javadoc <i>(default = ${project.home}/dist/docs/api)</i>.</li>
<li>
<b>final.name</b> : the name used for the generated jar <i>(default = ${maven.final.name}</i>.</li>
<li>
<b>${dep.artifactId}.jar</b> : a property is created for each project's dependency (for example : <code>activation.jar</code>). This property can be used to override the default url used to download the dependency (for example : <code>activation.jar=http://myhost/repository/sun/jars/activation-1.0.2.jar</code>).</li>
</ul>
</subsection>
<subsection name="Targets">
<p>The main targets defined in the generated ant's buildfile are : </p>
<ul>
<li>
<b>clean</b> : to delete generated directories (${defaulttargetdir} and ${distdir}).</li>
<li>
<b>compile</b> : to compile the code.</li>
<li>
<b>test</b> : to run the test cases.</li>
<li>
<b>jar</b> : to create the jar.</li>
<li>
<b>javadoc</b> : to generate the project's javadoc.</li>
<li>
<b>dist</b> : to create the distribution. It contains the jar, the javadoc, licenses(LICENCE.*) and readme (README.*).</li>
</ul>
</subsection>
</section>
</body>
</document>