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 2005/01/08 04:40:31 UTC
svn commit: r124615 - /forrest/trunk/main/var/pluginlist2fetch.xsl
Author: rgardler
Date: Fri Jan 7 19:40:29 2005
New Revision: 124615
URL: http://svn.apache.org/viewcvs?view=rev&rev=124615
Log:
Create a dummy fetch file if the plugin is not listed in the first plugins.xml file. Without this Forrest fails to look in subsequent plugins.xml files.
Modified:
forrest/trunk/main/var/pluginlist2fetch.xsl
Modified: forrest/trunk/main/var/pluginlist2fetch.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/var/pluginlist2fetch.xsl?view=diff&rev=124615&p1=forrest/trunk/main/var/pluginlist2fetch.xsl&r1=124614&p2=forrest/trunk/main/var/pluginlist2fetch.xsl&r2=124615
==============================================================================
--- forrest/trunk/main/var/pluginlist2fetch.xsl (original)
+++ forrest/trunk/main/var/pluginlist2fetch.xsl Fri Jan 7 19:40:29 2005
@@ -22,8 +22,9 @@
<xsl:param name="forrest-version" />
<xsl:template match="plugins">
+ <xsl:choose>
+ <xsl:when test="plugin[@name=$plugin-name]">
<project default="fetchplugin">
-
<target name="fetchplugin" depends="fetch-versioned-plugin, fetch-unversioned-plugin, final-check"/>
<target name="fetch-versioned-plugin">
@@ -70,6 +71,13 @@
<echo>Plugin "<xsl:value-of select="$plugin-name" />" correctly installed.</echo>
</target>
</project>
+ </xsl:when>
+ <xsl:otherwise>
+ <project default="findPlugin">
+ <target name="findplugin"/>
+ </project>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="plugin">