PR: MPDIST-19
New property maven.dist.bin.include.site to optionally include the site docs in the binary distribution. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@413185 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
13
dist/plugin.jelly
vendored
13
dist/plugin.jelly
vendored
@@ -34,7 +34,7 @@
|
||||
|
||||
<goal
|
||||
name="dist:prepare-bin-filesystem"
|
||||
prereqs="xdoc:init, jar:jar, site:generate"
|
||||
prereqs="jar:jar"
|
||||
description="Builds the binary distribution file system.">
|
||||
|
||||
<!--
|
||||
@@ -68,6 +68,17 @@
|
||||
</ant:fileset>
|
||||
</ant:copy>
|
||||
|
||||
<!-- Delete any previously generated documentation -->
|
||||
<ant:delete dir="${maven.docs.dest}"/>
|
||||
<j:set var="includeSite" value="${maven.dist.bin.include.site}"/>
|
||||
<j:choose>
|
||||
<j:when test="${includeSite}">
|
||||
<attainGoal name="site"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<attainGoal name="javadoc"/>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
<!-- Copy documentation -->
|
||||
<j:set var="docsDest" value="${maven.docs.dest}"/>
|
||||
<ant:copy todir="${maven.dist.bin.assembly.dir}/docs">
|
||||
|
||||
1
dist/plugin.properties
vendored
1
dist/plugin.properties
vendored
@@ -29,3 +29,4 @@ maven.dist.dir=${maven.build.dir}/distributions
|
||||
maven.dist.bin.artifact=${maven.final.name}.jar
|
||||
maven.dist.crlf.filter=**/*.txt
|
||||
maven.dist.lf.filter=
|
||||
maven.dist.bin.include.site=true
|
||||
|
||||
1
dist/xdocs/changes.xml
vendored
1
dist/xdocs/changes.xml
vendored
@@ -25,6 +25,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.7-SNAPSHOT" date="in SVN">
|
||||
<action dev="ltheussl" type="add" issue="MPDIST-19">New property <code>maven.dist.bin.include.site</code> to optionally include the site docs in the binary distribution.</action>
|
||||
<action dev="ltheussl" type="fix" issue="MPDIST-12">build-src goal does not use <code>pom.build.sourceDirectory</code>.</action>
|
||||
<action dev="aheritier" type="update">Fix compatibility with the version of ant plugin newer or equal to 1.10.</action>
|
||||
<action dev="ltheussl" type="update" issue="MPDIST-15" due-to="Fabrizio Giustina">New <code>maven.dist.src.include</code> property.</action>
|
||||
|
||||
10
dist/xdocs/properties.xml
vendored
10
dist/xdocs/properties.xml
vendored
@@ -66,7 +66,15 @@
|
||||
<td>maven.dist.bin.artifact</td>
|
||||
<td>yes - default is <code>${maven.final.name}.jar</code>.</td>
|
||||
<td>The name of the binary artifact to include in distribution, relative to target dir.</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.dist.bin.include.site</td>
|
||||
<td>yes - default is <code>true</code>.</td>
|
||||
<td>
|
||||
Whether to run <code>maven site</code> and include the site docs in the binary distribution, or not.
|
||||
If set to <code>false</code>, only the javadocs will be included.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.dist.crlf.filter</td>
|
||||
<td>yes - default is <code>"**/*.txt"</code>.</td>
|
||||
|
||||
Reference in New Issue
Block a user