Hi, I've patched the latest plugin.jelly to enable custom extensions for the user supplied documentation.

This patch introduces a new property ${maven.docs.output.extension}where you specify the extension of the output documentation that you want (without the dot ;).

If not specified it defaults to html. The maven-generated docs' extension remains the same (html).

This is quite handy for me so I thought it could be handy for others too.


P.S. This patch coupled with Alexei Barantsev's patch (

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=turbine-maven-user@j
akarta.apache.org&msgNo=788

) to allow user-defined site.dvsl really gives the xdoc plugin a lot of flexibility.


Saimon

Index: src/plugins-build/xdoc/plugin.jelly
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins-build/xdoc/plugin.jelly,v
retrieving revision 1.20
diff -u -r1.20 plugin.jelly
--- src/plugins-build/xdoc/plugin.jelly 21 Nov 2002 04:54:26 -0000 1.20
+++ src/plugins-build/xdoc/plugin.jelly 23 Nov 2002 15:03:39 -0000
@@ -137,6 +137,12 @@
</j:if>
-->
+ <!-- Select output extension -->
+ <j:set var="extX" value="${maven.docs.output.extension}X"/>
+ <j:if test="${extX == 'X'}">
+ <j:set var="maven.docs.output.extension" value="html"/>
+ </j:if>
+ <j:if test="${maven.gen.docs.available}">
<dvsl:dvsl
@@ -232,7 +238,7 @@
<dvsl:dvsl
basedir = "${maven.docs.src}"
destdir = "${maven.docs.dest}/"
- extension = ".html"
+ extension = ".${maven.docs.output.extension}"
force = "true"
toolboxFile = "${plugin.dir}/toolbox.props"
style = "${plugin.dir}/site.dvsl"

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to