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 2007/03/09 12:00:50 UTC
svn commit: r516368 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher:
ls.xmap status.xml
Author: rgardler
Date: Fri Mar 9 03:00:46 2007
New Revision: 516368
URL: http://svn.apache.org/viewvc?view=rev&rev=516368
Log:
Add ability to get a list of contracts provided by a plugin.
For this to work the plugin name must have "plugin" within it, e.g.
"org.apache.forrest.plugin.input.doap". Requesting
<code>ls.contracts.org.apache.forrest.plugin.input.doap.source.xml</code>
will return a source listing of plugins provided by the named plugin.
Requesting <code>ls.contracts.org.apache.forrest.plugin.input.doap.[FORMAT]</code>
will return a formatted output document listing all templates supplied
by the identified plugin.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/ls.xmap
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/status.xml
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/ls.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/ls.xmap?view=diff&rev=516368&r1=516367&r2=516368
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/ls.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/ls.xmap Fri Mar 9 03:00:46 2007
@@ -49,7 +49,19 @@
</map:generate>
<map:transform src="{lm:ls.contracts.xsl}" />
<map:serialize />
+ </map:match>
+
+ <map:match pattern="ls.contracts.**.plugin.**.source.xml">
+ <map:generate src="{forrest:forrest.plugins}/{1}.plugin.{2}/resources/themes" type="xpathdirectory">
+ <map:parameter name="xpath" value="/*" />
+ <map:parameter name="xmlFiles" value="\.ft$" />
+ <map:parameter name="exclude" value="[\w]*.svn" />
+ <map:parameter name="depth" value="3" />
+ </map:generate>
+ <map:transform src="{lm:ls.contracts.xsl}" />
+ <map:serialize type="xml-document"/>
</map:match>
+
<map:match pattern="ls.contracts.project.source.xml">
<map:generate src="{lm:themer.project.dir}" type="xpathdirectory">
<map:parameter name="xpath" value="/*" />
@@ -64,7 +76,14 @@
<map:generate src="cocoon:/ls.contracts.source.xml" />
<map:transform src="{lm:ls.contracts-to-document.xsl}" />
<map:serialize />
+ </map:match>
+
+ <map:match pattern="ls.contracts.**.plugin.**.xml">
+ <map:generate src="cocoon:/ls.contracts.{1}.plugin.{2}.source.xml" />
+ <map:transform src="{lm:ls.contracts-to-document.xsl}" />
+ <map:serialize />
</map:match>
+
<map:match pattern="ls.contracts.project.xml">
<map:generate src="cocoon:/ls.contracts.project.source.xml" />
<map:transform src="{lm:ls.contracts-to-document.xsl}" />
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/status.xml?view=diff&rev=516368&r1=516367&r2=516368
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/status.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/status.xml Fri Mar 9 03:00:46 2007
@@ -39,6 +39,16 @@
<changes>
<!-- Add new releases here -->
<release version="0.1" date="unreleased">
+ <action context="code" type="add" dev="RDG">
+ Add ability to get a list of contracts provided by a plugin. For
+ this to work the plugin name must have "plugin" within it, e.g.
+ "org.apache.forrest.plugin.input.doap". Requesting
+ <code>ls.contracts.org.apache.forrest.plugin.input.doap.source.xml</code>
+ will return a source listing of plugins provided by the named plugin.
+ Requesting <code>ls.contracts.org.apache.forrest.plugin.input.doap.[FORMAT]</code>
+ will return a formatted output document listing all templates supplied
+ by the identified plugin.
+ </action>
<action context="code" type="update" dev="DC" fixes-bug="FOR-935"
due-to="Sjur Moshagen">
i18n: Add LocaleAction action wrapper, and use the locale provided by it.