Sitemap was always generated because the navigation file was not parsed yet
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@329665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
c802fc460b
commit
392d2b61bc
1 file changed
+9
-2
+9
-2
@@ -720,8 +720,15 @@
|
||||
</j:forEach>
|
||||
|
||||
<!-- Generate sitemap -->
|
||||
<j:if test="${!nav.sitemap.isEmpty()}">
|
||||
<attainGoal name="xdoc:sitemap-noinit"/>
|
||||
<util:available file="${maven.docs.src}/${maven.xdoc.navigation.file}">
|
||||
<util:file var="siteNavFile" name="${maven.docs.src}/${maven.xdoc.navigation.file}"/>
|
||||
</util:available>
|
||||
<j:set var="navFile" value="${siteNavFile}" />
|
||||
<j:if test="${navFile != null}">
|
||||
<x:parse var="navXML" xml="${navFile}"/>
|
||||
<x:if select="$navXML/project/body/sitemap">
|
||||
<attainGoal name="xdoc:sitemap-noinit"/>
|
||||
</x:if>
|
||||
</j:if>
|
||||
|
||||
<!-- Copy all generated files in an internationalize site structure, ie:
|
||||
|
||||
Reference in new issue
Block a user