forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r106516 - /forrest/trunk/main/targets/plugins.xml /forrest/trunk/main/webapp/sitemap.xmap
Date Thu, 25 Nov 2004 00:22:20 GMT
Author: rgardler
Date: Wed Nov 24 16:22:19 2004
New Revision: 106516

URL: http://svn.apache.org/viewcvs?view=rev&rev=106516
Log:
input plugins can also provide a resources.xmap sitemap
Modified:
   forrest/trunk/main/targets/plugins.xml
   forrest/trunk/main/webapp/sitemap.xmap

Modified: forrest/trunk/main/targets/plugins.xml
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/targets/plugins.xml?view=diff&rev=106516&p1=forrest/trunk/main/targets/plugins.xml&r1=106515&p2=forrest/trunk/main/targets/plugins.xml&r2=106516
==============================================================================
--- forrest/trunk/main/targets/plugins.xml	(original)
+++ forrest/trunk/main/targets/plugins.xml	Wed Nov 24 16:22:19 2004
@@ -91,6 +91,15 @@
      </xslt>
      <move file="${forrest.plugins-dir}/input.xmap.new" 
        tofile="${forrest.plugins-dir}/input.xmap"/>
+     <xslt in="${forrest.plugins-dir}/resources.xmap"
+       out="${forrest.plugins-dir}/resources.xmap.new"
+       style="${forrest.home}/var/pluginMountSnippet.xsl"
+       force="true">
+           <param name="plugin-name" expression="${plugin.name}"/>  
+           <param name="plugin-type" expression="resources"/>  
+     </xslt>
+     <move file="${forrest.plugins-dir}/resources.xmap.new" 
+       tofile="${forrest.plugins-dir}/resources.xmap"/>
   </target>
   
   <target name="configure-output-plugin"
@@ -173,6 +182,9 @@
     <mkdir dir="${forrest.plugins-dir}"/>
     <copy file="${forrest.home}/var/initial_plugins_sitemap.xmap"
       tofile="${forrest.plugins-dir}/input.xmap"
+      overwrite="true"/>
+    <copy file="${forrest.home}/var/initial_plugins_sitemap.xmap"
+      tofile="${forrest.plugins-dir}/resources.xmap"
       overwrite="true"/>
     <copy file="${forrest.home}/var/initial_plugins_sitemap.xmap"
       tofile="${forrest.plugins-dir}/output.xmap"

Modified: forrest/trunk/main/webapp/sitemap.xmap
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/sitemap.xmap?view=diff&rev=106516&p1=forrest/trunk/main/webapp/sitemap.xmap&r1=106515&p2=forrest/trunk/main/webapp/sitemap.xmap&r2=106516
==============================================================================
--- forrest/trunk/main/webapp/sitemap.xmap	(original)
+++ forrest/trunk/main/webapp/sitemap.xmap	Wed Nov 24 16:22:19 2004
@@ -667,6 +667,16 @@
       <map:match pattern="profiler">
         <map:mount uri-prefix="" src="profiler.xmap" check-reload="yes" />
       </map:match>
+        
+      <map:select type="exists">
+         <map:when test="{forrest:plugins}/resources.xmap">
+           <map:mount uri-prefix="" 
+                      src="{forrest:plugins}/resources.xmap" 
+                      check-reload="yes" 
+                      pass-through="true"/>
+        </map:when>  
+      </map:select>
+      
       <map:match pattern="**.js">
         <map:mount uri-prefix="" src="resources.xmap" check-reload="yes" />
       </map:match>

Mime
View raw message