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
This commit is contained in:
@@ -25,5 +25,10 @@
|
||||
<assert:assertEquals expected="0" value="${countLogo.intValue().toString()}" msg="Logo not found."/>
|
||||
<x:set var="countUrl" select="count($linkcheckDoc/linkcheck/file/result[contains(child::target,'project-info.html')][contains(child::status,'NOT FOUND')])"/>
|
||||
<assert:assertEquals expected="0" value="${countUrl.intValue().toString()}" msg="Url not found."/>
|
||||
<!-- Test -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/xml_copy_only.xml"/>
|
||||
<assert:assertFileNotFound file="${maven.docs.dest}/xml_copy_only.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/myfile.export.xml"/>
|
||||
<assert:assertFileNotFound file="${maven.docs.dest}/myfile.export.html"/>
|
||||
</goal>
|
||||
</project>
|
||||
|
||||
18
xdoc/src/plugin-test/test02/project.properties
Normal file
18
xdoc/src/plugin-test/test02/project.properties
Normal file
@@ -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
|
||||
35
xdoc/src/plugin-test/test02/xdocs/myfile.export.xml
Normal file
35
xdoc/src/plugin-test/test02/xdocs/myfile.export.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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>Xdoc test Document</title>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="test jslToSite tag">
|
||||
<p>empty document</p>
|
||||
<p>
|
||||
This document is generated separately from other xdoc documents
|
||||
but should retain the site stylesheet and navigation.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
35
xdoc/src/plugin-test/test02/xdocs/xml_copy_only.xml
Normal file
35
xdoc/src/plugin-test/test02/xdocs/xml_copy_only.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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>Xdoc test Document</title>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="test jslToSite tag">
|
||||
<p>empty document</p>
|
||||
<p>
|
||||
This document is generated separately from other xdoc documents
|
||||
but should retain the site stylesheet and navigation.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
Reference in New Issue
Block a user