Hello all,
I tried used Maven ( beta-8 ) for our project, and I've problem with
generated docs.
Links (href) in generated index.html are absolute, they began with "/", so
when I deploy generated file not to www-root, but deeper in www-tree, links
are broken.
Following patch help me :
diff -Nur maven-1.0-beta-8.ori/plugins/maven-xdoc-plugin-1.3/plugin.jelly
maven-1.0-beta-8/plugins/maven-xdoc-plugin-1.3/plugin.jelly
--- maven-1.0-beta-8.ori/plugins/maven-xdoc-plugin-1.3/plugin.jelly Thu
Apr 3 10:58:51 2003
+++ maven-1.0-beta-8/plugins/maven-xdoc-plugin-1.3/plugin.jelly Thu Apr 3
11:01:15 2003
@@ -243,6 +243,10 @@
<util:replace var="docsForward" oldChar="\" newChar="/"
value="${srcdir}"/>
<j:set var="relativePath"
value="${pathTool.getRelativePath(docsForward, outFileForward)}"/>
+ <j:if test="${relativePath.length()==0}" >
+ <j:set var="relativePath" value="." />
+ </j:if>
+
<!-- determine nav file to be used: 2. check for nav file -->
<!-- in the same directory as xml file being processed -->
<!-- if no such nav file available use sitewide nav file -->
Excuse me, if this bug exist in Bug-Tracking, I didn't find it.
Also I don't know how to add to
http://jira.codehaus.org/secure/CreateIssue!default.jspa, because combo for
project doesn't contain maven :-(.
bye
vlk
Vladimir Kralik
Asset Soft Banska Bystrica
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]