From e87957e80a9e9274c8ef39412cfbcd91b75353ee Mon Sep 17 00:00:00 2001 From: aheritier Date: Mon, 25 Oct 2004 22:45:53 +0000 Subject: [PATCH] MPXDOC-123 : A new property is added : maven.xdoc.xml.copy A comma separated list of patterns to specify xml files to copy from ${maven.docs.src} to ${maven.docs.dest} without to perform a transformation to HTML. The default value is empty (no xml files are copied). git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116185 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/plugin.jelly | 32 +++++++++++++++++ xdoc/plugin.properties | 3 ++ xdoc/src/plugin-test/test02/maven.xml | 5 +++ .../src/plugin-test/test02/project.properties | 18 ++++++++++ .../test02/xdocs/myfile.export.xml | 35 +++++++++++++++++++ .../test02/xdocs/xml_copy_only.xml | 35 +++++++++++++++++++ xdoc/xdocs/changes.xml | 1 + xdoc/xdocs/properties.xml | 10 ++++++ 8 files changed, 139 insertions(+) create mode 100644 xdoc/src/plugin-test/test02/project.properties create mode 100644 xdoc/src/plugin-test/test02/xdocs/myfile.export.xml create mode 100644 xdoc/src/plugin-test/test02/xdocs/xml_copy_only.xml diff --git a/xdoc/plugin.jelly b/xdoc/plugin.jelly index 0403d87b..6ab50413 100644 --- a/xdoc/plugin.jelly +++ b/xdoc/plugin.jelly @@ -280,6 +280,9 @@ + + @@ -287,6 +290,12 @@ + + ${maven_xdoc_xml_copy_pattern} + + + + @@ -597,6 +606,10 @@ + + Copying user supplied resources. + + @@ -623,6 +636,25 @@ + + + + + ${maven_xdoc_xml_copy_pattern} + + Copying user supplied xml files. + + + + + + + + + + + diff --git a/xdoc/plugin.properties b/xdoc/plugin.properties index c639f931..24e82486 100644 --- a/xdoc/plugin.properties +++ b/xdoc/plugin.properties @@ -80,3 +80,6 @@ maven.xdoc.projectInfo = cvs-usage.xml,\ project-info.xml,\ team-list.xml,\ downloads.jelly + +# List of xml files (or patterns) that are copied but not transformed +#maven.xdoc.xml.copy= \ No newline at end of file diff --git a/xdoc/src/plugin-test/test02/maven.xml b/xdoc/src/plugin-test/test02/maven.xml index 5201ad7e..a1f70d82 100644 --- a/xdoc/src/plugin-test/test02/maven.xml +++ b/xdoc/src/plugin-test/test02/maven.xml @@ -25,5 +25,10 @@ + + + + + diff --git a/xdoc/src/plugin-test/test02/project.properties b/xdoc/src/plugin-test/test02/project.properties new file mode 100644 index 00000000..9a67992d --- /dev/null +++ b/xdoc/src/plugin-test/test02/project.properties @@ -0,0 +1,18 @@ +# ------------------------------------------------------------------- +# 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. +# ------------------------------------------------------------------- + +# List of xml files (or patterns) that are copied but not transformed +maven.xdoc.xml.copy=**/*copy_only.xml,**/*.export.xml \ No newline at end of file diff --git a/xdoc/src/plugin-test/test02/xdocs/myfile.export.xml b/xdoc/src/plugin-test/test02/xdocs/myfile.export.xml new file mode 100644 index 00000000..13cd1c11 --- /dev/null +++ b/xdoc/src/plugin-test/test02/xdocs/myfile.export.xml @@ -0,0 +1,35 @@ + + + + + + + Xdoc test Document + + + +
+

empty document

+

+ This document is generated separately from other xdoc documents + but should retain the site stylesheet and navigation. +

+
+ +
\ No newline at end of file diff --git a/xdoc/src/plugin-test/test02/xdocs/xml_copy_only.xml b/xdoc/src/plugin-test/test02/xdocs/xml_copy_only.xml new file mode 100644 index 00000000..13cd1c11 --- /dev/null +++ b/xdoc/src/plugin-test/test02/xdocs/xml_copy_only.xml @@ -0,0 +1,35 @@ + + + + + + + Xdoc test Document + + + +
+

empty document

+

+ This document is generated separately from other xdoc documents + but should retain the site stylesheet and navigation. +

+
+ +
\ No newline at end of file diff --git a/xdoc/xdocs/changes.xml b/xdoc/xdocs/changes.xml index 5726df54..539eeb7c 100644 --- a/xdoc/xdocs/changes.xml +++ b/xdoc/xdocs/changes.xml @@ -27,6 +27,7 @@ + New property (maven.xdoc.xml.copy) to copy only and not transform some xml files provided in the ${maven.docs.src} directory. Make compatible with Maven 1.1 Show version if maven.xdoc.date=right Allow header images and links to use relative paths diff --git a/xdoc/xdocs/properties.xml b/xdoc/xdocs/properties.xml index 64d72c41..91448374 100644 --- a/xdoc/xdocs/properties.xml +++ b/xdoc/xdocs/properties.xml @@ -61,6 +61,16 @@ ${maven.build.dir}/generated-xdocs. + + maven.xdoc.xml.copy + Yes + + A comma separated list of patterns to specify xml files to copy + from ${maven.docs.src} to ${maven.docs.dest} without + to perform a transformation to HTML. + The default value is empty (no xml files are copied). + +