You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2004/11/18 15:49:39 UTC
svn commit: r76238 - forrest/trunk/plugins/org.apache.forrest.plugin.pdf-output
Author: rgardler
Date: Thu Nov 18 06:49:37 2004
New Revision: 76238
Modified:
forrest/trunk/plugins/org.apache.forrest.plugin.pdf-output/output.xmap
Log:
if PDF file already exists serve it without procesing
Modified: forrest/trunk/plugins/org.apache.forrest.plugin.pdf-output/output.xmap
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.pdf-output/output.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.pdf-output/output.xmap Thu Nov 18 06:49:37 2004
@@ -26,8 +26,15 @@
<map:pipeline>
<!-- generate .pdf files from .fo -->
<map:match type="regexp" pattern="^(.*?)([^/]*).pdf$">
- <map:generate src="cocoon://{1}{2}.fo"/>
- <map:serialize type="fo2pdf"/>
+ <map:select type="exists">
+ <map:when test="{project:content.xdocs}/{1}{2}.pdf">
+ <map:read src="{project:content.xdocs}/{1}{2}.pdf"/>
+ </map:when>
+ <map:otherwise>
+ <map:generate src="cocoon://{1}{2}.fo"/>
+ <map:serialize type="fo2pdf"/>
+ </map:otherwise>
+ </map:select>
</map:match>
</map:pipeline>
</map:pipelines>