That's fine by me... ;)

I'm in no rush...

I'm looking forward to the jelly stuff aswell...

Saimon

Jason van Zyl wrote:

On Sat, 2002-11-23 at 10:27, saimon wrote:

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.

Maybe so but one thing at a time. I would like to see the new mechanism
working before we start adding extensions.

What is the state of the new JSL stuff?

Please just be patient, I'm sure it works and I've got nothing against
extension (I know they are needed, I've got hacked goodies myself) but
lets get the doc generation completely moved over to jelly first.


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]>

__________________________________________________
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