forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r76238 - forrest/trunk/plugins/org.apache.forrest.plugin.pdf-output
Date Thu, 18 Nov 2004 14:49:39 GMT
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>

Mime
View raw message