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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]