You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "M. Sean Gilligan" <se...@msgilligan.com> on 2005/04/22 16:08:21 UTC
XDOC Plugin Optimization
I've wanted to speed up the "maven site" command be eliminating tranforms of unchanged documents for some time now. I added some code to the XDOC plugin that seems to work:
<j:set var="varname" value="up${file.toString()}"/>
<uptodate
property="${varname}"
srcfile="${file.toString()}"
targetfile="${outFile.toString()}" />
<j:choose>
<j:when test="${context.getVariable(varname)}">
<echo>${outFile} is up to date.</echo>
</j:when>
<j:otherwise>
DO TRANSFORM AS BEFORE
</j:otherwise>
</j:choose>
Is there anything wrong with this approach? Should I submit a patch?
(I also made the same change to the html2xdoc plugin)
There are also some ant image and stylesheet copies that seem to me should have overwrite="false" to eliminate redundant copies. Is there a reason for overwrite="true"?
Cheers,
Sean
--
---------------------------------------------------------------------------
M. Sean Gilligan : 831-466-9788 x11
vBlog Central : http://www.vblogcentral.com
---------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org