copy less crud into the images directory by default

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@123907 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett
2005-01-02 22:27:31 +00:00
parent bb981d8488
commit 21845d60c6
4 changed files with 47 additions and 5 deletions

View File

@@ -585,15 +585,32 @@
</copy>
<!-- Copy maven supplied images. -->
<copy todir="${maven.docs.dest}/images" overwrite="yes" filtering="no">
<copy todir="${maven.docs.dest}/images">
<fileset dir="${plugin.resources}/images">
<include name="**/*.gif"/>
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
<util:tokenize var="files" delim=",">${maven.xdoc.copy.excludes}</util:tokenize>
<j:forEach var="pattern" items="${files}">
<exclude name="${pattern}" />
</j:forEach>
<j:if test="${context.getVariable('maven.xdoc.theme') != 'classic'}">
<util:tokenize var="files" delim=",">${maven.xdoc.copy.excludes.classic}</util:tokenize>
<j:forEach var="pattern" items="${files}">
<exclude name="${pattern}" />
</j:forEach>
</j:if>
</fileset>
</copy>
<!-- excluded by default from previous -->
<j:set var="var" value="${maven.xdoc.poweredby.image}" />
<j:if test="${!empty(var)}">
<mkdir dir="${maven.docs.dest}/images/logos" />
<copy todir="${maven.docs.dest}/images/logos"
file="${plugin.resources}/images/logos/${var}" />
</j:if>
</goal>
<!-- ================================================================== -->
@@ -629,7 +646,7 @@
<util:available file="${maven.docs.src}/stylesheets">
<!-- Copy user supplied stylesheets, can override maven -->
<copy todir="${maven.docs.dest}/style" overwrite="true" filtering="no">
<copy todir="${maven.docs.dest}/style">
<fileset dir="${maven.docs.src}/stylesheets">
<include name="**/*.css"/>
</fileset>

View File

@@ -82,4 +82,9 @@ maven.xdoc.projectInfo = cvs-usage.xml,\
downloads.jelly
# List of xml files (or patterns) that are copied but not transformed
#maven.xdoc.xml.copy=
#maven.xdoc.xml.copy=
# Files not copied
maven.xdoc.copy.excludes=file.gif,folder-closed.gif,folder-open.gif,icon_alert.gif,icon_alertsml.gif,icon_arrowfolder1_sml.gif,icon_arrowfolder2_sml.gif,icon_arrowmembers1_sml.gif,icon_arrowmembers2_sml.gif,icon_arrowusergroups1_sml.gif,icon_arrowusergroups2_sml.gif,icon_confirmsml.gif,icon_help_lrg.gif,icon_infosml.gif,icon_members_sml.gif,icon_sortleft.gif,icon_sortright.gif,icon_usergroups_sml.gif,icon_waste_lrg.gif,icon_waste_sml.gif,none.png,nw_maj.gif,nw_maj_hi.gif,nw_med.gif,nw_med_hi.gif,nw_med_rond.gif,nw_min.gif,nw_min_036.gif,nw_min_hi.gif,poweredby_036.gif,product_logo.gif,se_maj_rond.gif,sw_min.gif,logos/**
# Files not copied unless skin is classic
maven.xdoc.copy.excludes.classic=external-classic.png,help_logo.gif,icon_arrowfolderclosed1_sml.gif,icon_arrowwaste1_sml.gif,icon_arrowwaste2_sml.gif,icon_doc_lrg.gif,icon_doc_sml.gif,icon_error_lrg.gif,icon_folder_lrg.gif,icon_folder_sml.gif,icon_help_sml.gif,icon_info_lrg.gif,icon_members_lrg.gif,icon_sortdown.gif,icon_sortup.gif,icon_success_lrg.gif,icon_usergroups_lrg.gif,icon_arrowfolderopen2_sml.gif,icon_warning_lrg.gif,newwindow-classic.png,nw_maj_rond.gif,strich.gif,sw_maj_rond.gif,sw_med_rond.gif

View File

@@ -27,6 +27,7 @@
</properties>
<body>
<release version="1.9-SNAPSHOT" date="in CVS">
<action dev="brett" type="add">Added maven.xdoc.copy.excludes property which lists the files to exclude from the resources copy. This defaults to any images currently unused by Maven. Additionally, if you are not using the classic theme, maven.xdoc.copy.excludes.classic is used to eliminate images only for the classic theme</action>
<action dev="felipel" type="add" issue="MPXDOC-118">Added new tag <code>&lt;escapeXml&gt;</code>.</action>
<action dev="epugh" type="add" issue="MPXDOC-124" due-to="Shinobu Kawai">Maven xdoc plugin clean up generated velocity log as part of calling clean.</action>
<action dev="aheritier" type="add" issue="MPXDOC-123">New property (maven.xdoc.xml.copy) to copy only and not transform some xml files provided in the ${maven.docs.src} directory.</action>

View File

@@ -71,6 +71,26 @@
The default value is empty (no xml files are copied).
</td>
</tr>
<tr>
<td>maven.xdoc.copy.excludes</td>
<td>Yes</td>
<td>
A comma separated list of patterns to specify resources not to copy
in xdoc:copy-resources. By default it is all the images not used by
Maven.
Override this to get back some images you need in your site.
</td>
</tr>
<tr>
<td>maven.xdoc.copy.excludes.classic</td>
<td>Yes</td>
<td>
A comma separated list of patterns to specify resources not to copy
in xdoc:copy-resources when using a theme other than classic.
Override this to get back some images you need in your site when
using a non-classic theme.
</td>
</tr>
</table>
</section>
<section name="Localization Properties">
@@ -200,7 +220,6 @@
<td>Yes</td>
<td>
Sets the name of the image to use (see images/logos).
The default is the propaganda logo by St&#233;phane Mor.
</td>
</tr>
<tr>