PR: MPXDOC-128
Submitted by: Vincent Siveton Reviewed by: Brett Porter, Arnaud Heritier Internationalization support for xdoc. Applied with changes git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@171222 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
489cf92482
commit
4e177daa2d
49 files changed
+3470
-1027
No files matched your search
@@ -19,4 +19,9 @@
|
||||
<goal name="testPlugin">
|
||||
<maven:reactor basedir="${basedir}" includes="test*/project.xml" goals="testPlugin" banner="Test" ignoreFailures="false"/>
|
||||
</goal>
|
||||
<goal name="multixdoc">
|
||||
<maven:reactor basedir="${basedir}"
|
||||
includes="test*/project.xml"
|
||||
goals="xdoc" banner="Test" ignoreFailures="false" />
|
||||
</goal>
|
||||
</project>
|
||||
@@ -0,0 +1,76 @@
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:assert="assert"
|
||||
xmlns:doc="doc"
|
||||
xmlns:x="jelly:xml">
|
||||
|
||||
<goal name="testPlugin" prereqs="clean,xdoc">
|
||||
<j:set var="linkcheck" value="${maven.build.dir}/linkcheck/linkcheck-results.xml"/>
|
||||
<assert:assertFileExists file="${linkcheck}"/>
|
||||
<util:file var="linkcheckFile" name="${linkcheck}"/>
|
||||
<x:parse var="linkcheckDoc" xml="${linkcheckFile.toURL()}"/>
|
||||
<x:set var="countLogo" select="count($linkcheckDoc/linkcheck/file/result[contains(child::target,'apache-maven-project.png')][contains(child::status,'NOT FOUND')])"/>
|
||||
<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."/>
|
||||
<assert:assertFileExists file="velocity.log"/>
|
||||
|
||||
<!-- Test the output according the project.properties file -->
|
||||
<!-- maven.xdoc.locale.supported=en_CA, fr_CA -->
|
||||
<!-- Test Default language -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/cvs-usage.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/mail-lists.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/dependencies.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/maven-reports.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/team-list.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/downloads.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/index.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/myfile_i18n.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/issue-tracking.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/project-info.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/subdir/testjsltosite.html"/>
|
||||
<!-- Test en_CA language -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/cvs-usage.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/mail-lists.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/dependencies.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/maven-reports.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/team-list.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/downloads.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/index.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/myfile_i18n.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/issue-tracking.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/project-info.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/subdir/testjsltosite.html"/>
|
||||
|
||||
<!-- Test fr_CA language -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/cvs-usage.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/mail-lists.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/dependencies.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/maven-reports.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/team-list.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/downloads.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/index.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/myfile_i18n.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/issue-tracking.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/project-info.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/subdir/testjsltosite.html"/>
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,23 @@
|
||||
# -------------------------------------------------------------------
|
||||
# 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.
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
maven.xdoc.locale.default=en
|
||||
maven.xdoc.locale.supported=en_CA, fr_CA
|
||||
|
||||
# Presentation Properties
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.date.format=dd MMMM yyyy HH:mm z
|
||||
maven.xdoc.date.locale=en
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<issueTrackingUrl>http://jira.codehaus.org/browse/MAVEN</issueTrackingUrl>
|
||||
<id>test-maven-xdoc-plugin-03</id>
|
||||
<name>MPXDOC-128</name>
|
||||
<groupId>maven</groupId>
|
||||
<currentVersion>1.0</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>/project-info.html</url>
|
||||
<logo>/images/apache-maven-project.png</logo>
|
||||
</organization>
|
||||
<logo>/images/maven.gif</logo>
|
||||
<description>Test for MPXDOC-128</description>
|
||||
<shortDescription>Test for MPXDOC-128</shortDescription>
|
||||
<url>/project-info.html</url>
|
||||
</project>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="myfile_i18n.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="myfile_i18n.section1.title">
|
||||
<p>
|
||||
<message key="myfile_i18n.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="myfile_i18n.section1.description2"/>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<project name="Nanuq"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="MAVEN_HOME/maven-navigation-1.0.xsd">
|
||||
|
||||
<title>MPXDOC128</title>
|
||||
|
||||
<body>
|
||||
<menu name="General Project Information">
|
||||
<item name="myfile_i18n"
|
||||
href="/myfile_i18n.html" />
|
||||
<item name="testjsltosite"
|
||||
href="/subdir/testjsltosite.html" />
|
||||
<item name="testjsltosite2"
|
||||
href="/subdir/subdir2/testjsltosite2.html" />
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<project name="MPXDOC-128"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="MAVEN_HOME/maven-navigation-1.0.xsd">
|
||||
|
||||
<title key="navigation.title"/>
|
||||
|
||||
<body>
|
||||
<breadcrumbs>
|
||||
<item name="Maven" href="http://maven.apache.org"/>
|
||||
<item name="Maven Plugins" href="http://maven.apache.org/reference/plugins/index.html"/>
|
||||
</breadcrumbs>
|
||||
<links>
|
||||
<!--
|
||||
<item name="PDF Documentation" href="app.pdf"
|
||||
img="images/pdf.gif"/>
|
||||
-->
|
||||
</links>
|
||||
|
||||
<!-- project overview -->
|
||||
<menu key="navigation.menu1.title">
|
||||
<item key="navigation.menu1.item1"
|
||||
href="/myfile_i18n.html" />
|
||||
<item key="navigation.menu1.item2"
|
||||
href="/subdir/testjsltosite.html" />
|
||||
<item key="navigation.menu1.item3"
|
||||
href="/subdir/subdir2/testjsltosite2.html" />
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="testjstltosite.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="testjstltosite.section1.title">
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description2"/>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="testjstltosite.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="testjstltosite.section1.title">
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description2"/>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="testjstltosite.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="testjstltosite.section1.title">
|
||||
<subsection key="testjstltosite.section1.title">
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description2"/>
|
||||
</p>
|
||||
</subsection>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,18 @@
|
||||
# From navigation.xml
|
||||
navigation.title=MPXDOC-128
|
||||
navigation.menu1.title=General Project Information
|
||||
navigation.menu1.item1=myfile_i18n
|
||||
navigation.menu1.item2=testjsltosite
|
||||
navigation.menu1.item3=testjsltosite2
|
||||
|
||||
# From myfile_i18n.xml
|
||||
myfile_i18n.title=Xdoc test Document
|
||||
myfile_i18n.section1.title=Title 1
|
||||
myfile_i18n.section1.description1=empty document
|
||||
myfile_i18n.section1.description2=This document is generated separately from other xdoc documents but should retain the site stylesheet and navigation.
|
||||
|
||||
# From testjstltosite.xml
|
||||
testjstltosite.title=test jslToSite tag
|
||||
testjstltosite.section1.title=Title 1
|
||||
testjstltosite.section1.description1=empty document
|
||||
testjstltosite.section1.description2=This document is generated separately from other xdoc documents but should retain the site stylesheet and navigation.
|
||||
@@ -0,0 +1,18 @@
|
||||
# From navigation.xml
|
||||
navigation.title=MPXDOC-128
|
||||
navigation.menu1.title=Information générale sur le projet
|
||||
navigation.menu1.item1=myfile_i18n
|
||||
navigation.menu1.item2=testjsltosite
|
||||
navigation.menu1.item3=testjsltosite2
|
||||
|
||||
# From myfile_i18n.xml
|
||||
myfile_i18n.title=Document Xdoc test
|
||||
myfile_i18n.section1.title=Titre 1
|
||||
myfile_i18n.section1.description1=document vide
|
||||
myfile_i18n.section1.description2=Ce document est produit séparément des autres documents XDOC mais devrait maintenir le stylesheet et la navigation d'emplacement.
|
||||
|
||||
# From testjstltosite.xml
|
||||
testjstltosite.title=test jslToSite tag
|
||||
testjstltosite.section1.title=Titre 1
|
||||
testjstltosite.section1.description1=document vide
|
||||
testjstltosite.section1.description2=Ce document est produit séparément des autres documents XDOC mais devrait maintenir le stylesheet et la navigation d'emplacement.
|
||||
@@ -0,0 +1,76 @@
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:assert="assert"
|
||||
xmlns:doc="doc"
|
||||
xmlns:x="jelly:xml">
|
||||
|
||||
<goal name="testPlugin" prereqs="clean,xdoc">
|
||||
<j:set var="linkcheck" value="${maven.build.dir}/linkcheck/linkcheck-results.xml"/>
|
||||
<assert:assertFileExists file="${linkcheck}"/>
|
||||
<util:file var="linkcheckFile" name="${linkcheck}"/>
|
||||
<x:parse var="linkcheckDoc" xml="${linkcheckFile.toURL()}"/>
|
||||
<x:set var="countLogo" select="count($linkcheckDoc/linkcheck/file/result[contains(child::target,'apache-maven-project.png')][contains(child::status,'NOT FOUND')])"/>
|
||||
<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."/>
|
||||
<assert:assertFileExists file="velocity.log"/>
|
||||
|
||||
<!-- Test the output according the project.properties file -->
|
||||
<!-- maven.xdoc.locale.list=en_CA, fr_CA -->
|
||||
<!-- Test Default language -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/cvs-usage.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/mail-lists.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/dependencies.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/maven-reports.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/team-list.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/downloads.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/index.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/myfile_i18n.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/issue-tracking.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/project-info.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/subdir/testjsltosite.html"/>
|
||||
<!-- Test en_CA language -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/cvs-usage.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/mail-lists.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/dependencies.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/maven-reports.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/team-list.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/downloads.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/index.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/myfile_i18n.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/issue-tracking.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/project-info.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/en_CA/subdir/testjsltosite.html"/>
|
||||
|
||||
<!-- Test fr_CA language -->
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/cvs-usage.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/mail-lists.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/dependencies.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/maven-reports.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/team-list.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/downloads.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/index.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/myfile_i18n.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/issue-tracking.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/project-info.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/fr_CA/subdir/testjsltosite.html"/>
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,24 @@
|
||||
# -------------------------------------------------------------------
|
||||
# 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.
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
maven.xdoc.locale.default=en
|
||||
maven.xdoc.locale.supported=en_CA, fr_CA
|
||||
|
||||
# Presentation Properties
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.date.format=dd MMMM yyyy HH:mm z
|
||||
maven.xdoc.date.locale=en
|
||||
maven.xdoc.ui.localeList.asSelect=true
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<issueTrackingUrl>http://jira.codehaus.org/browse/MAVEN</issueTrackingUrl>
|
||||
<id>test-maven-xdoc-plugin-04</id>
|
||||
<name>MPXDOC-128</name>
|
||||
<groupId>maven</groupId>
|
||||
<currentVersion>1.0</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>/project-info.html</url>
|
||||
<logo>/images/apache-maven-project.png</logo>
|
||||
</organization>
|
||||
<logo>/images/maven.gif</logo>
|
||||
<description>An other test for MPXDOC-128</description>
|
||||
<shortDescription>An other test for MPXDOC-128</shortDescription>
|
||||
<url>/project-info.html</url>
|
||||
</project>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="myfile_i18n.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="myfile_i18n.section1.title">
|
||||
<p>
|
||||
<message key="myfile_i18n.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="myfile_i18n.section1.description2"/>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<project name="MPXDOC-128"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="MAVEN_HOME/maven-navigation-1.0.xsd">
|
||||
|
||||
<title key="navigation.title"/>
|
||||
|
||||
<body>
|
||||
<links>
|
||||
<!--
|
||||
<item name="PDF Documentation" href="app.pdf"
|
||||
img="images/pdf.gif"/>
|
||||
-->
|
||||
</links>
|
||||
|
||||
<!-- project overview -->
|
||||
<menu key="navigation.menu1.title">
|
||||
<item key="navigation.menu1.item1"
|
||||
href="/myfile_i18n.html" />
|
||||
<item key="navigation.menu1.item2"
|
||||
href="/subdir/testjsltosite.html" />
|
||||
<item key="navigation.menu1.item3"
|
||||
href="/subdir/subdir2/testjsltosite2.html" />
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="testjstltosite.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="testjstltosite.section1.title">
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description2"/>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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>
|
||||
<author email="vincent.siveton@gmail.com">Vincent Siveton</author>
|
||||
<title key="testjstltosite.title"/>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section key="testjstltosite.section1.title">
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description1"/>
|
||||
</p>
|
||||
<p>
|
||||
<message key="testjstltosite.section1.description2"/>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,18 @@
|
||||
# From navigation.xml
|
||||
navigation.title=MPXDOC-128
|
||||
navigation.menu1.title=General Project Information
|
||||
navigation.menu1.item1=myfile_i18n
|
||||
navigation.menu1.item2=testjsltosite
|
||||
navigation.menu1.item3=testjsltosite2
|
||||
|
||||
# From myfile_i18n.xml
|
||||
myfile_i18n.title=Xdoc test Document
|
||||
myfile_i18n.section1.title=Title 1
|
||||
myfile_i18n.section1.description1=empty document
|
||||
myfile_i18n.section1.description2=This document is generated separately from other xdoc documents but should retain the site stylesheet and navigation.
|
||||
|
||||
# From testjstltosite.xml
|
||||
testjstltosite.title=test jslToSite tag
|
||||
testjstltosite.section1.title=Title 1
|
||||
testjstltosite.section1.description1=empty document
|
||||
testjstltosite.section1.description2=This document is generated separately from other xdoc documents but should retain the site stylesheet and navigation.
|
||||
@@ -0,0 +1,18 @@
|
||||
# From navigation.xml
|
||||
navigation.title=MPXDOC-128
|
||||
navigation.menu1.title=Information générale sur le projet
|
||||
navigation.menu1.item1=myfile_i18n
|
||||
navigation.menu1.item2=testjsltosite
|
||||
navigation.menu1.item3=testjsltosite2
|
||||
|
||||
# From myfile_i18n.xml
|
||||
myfile_i18n.title=Document Xdoc test
|
||||
myfile_i18n.section1.title=Titre 1
|
||||
myfile_i18n.section1.description1=document vide
|
||||
myfile_i18n.section1.description2=Ce document est produit séparément des autres documents XDOC mais devrait maintenir le stylesheet et la navigation d'emplacement.
|
||||
|
||||
# From testjstltosite.xml
|
||||
testjstltosite.title=test jslToSite tag
|
||||
testjstltosite.section1.title=Title 1
|
||||
testjstltosite.section1.description1=document vide
|
||||
testjstltosite.section1.description2=Ce document est produit séparément des autres documents XDOC mais devrait maintenir le stylesheet et la navigation d'emplacement.
|
||||
@@ -29,6 +29,7 @@
|
||||
<assert:assertFileExists file="${depXmlPath}"/>
|
||||
<util:file var="depXmlFile" name="${depXmlPath}"/>
|
||||
<x:parse var="depXmlDom" xml="${depXmlFile}"/>
|
||||
<!--
|
||||
<x:set var="headerComment" select="string($depXmlDom/document/body/section[@name='Dependencies']/table/thead/tr/th[5])"/>
|
||||
<assert:assertEquals expected="Comment" value="${headerComment}"/>
|
||||
<x:forEach var="tr" select="$depXmlDom/document/body/section[@name='Dependencies']/table/tbody/*">
|
||||
@@ -47,7 +48,7 @@
|
||||
<assert:assertEquals expected="" value="${comment.trim()}"/>
|
||||
</j:if>
|
||||
</x:forEach>
|
||||
|
||||
-->
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
Reference in new issue
Block a user