Author: crossley
Date: Mon Dec 19 00:37:55 2005
New Revision: 357666
URL: http://svn.apache.org/viewcvs?rev=357666&view=rev
Log:
Only configure a plugin locationmap if one is provided by the plugin.
Modified:
forrest/trunk/main/targets/plugins.xml
Modified: forrest/trunk/main/targets/plugins.xml
URL:
http://svn.apache.org/viewcvs/forrest/trunk/main/targets/plugins.xml?rev=357666&r1=357665&r2=357666&view=diff
==============================================================================
--- forrest/trunk/main/targets/plugins.xml (original)
+++ forrest/trunk/main/targets/plugins.xml Mon Dec 19 00:37:55 2005
@@ -177,9 +177,17 @@
</antcall>
</then>
</if>
- <antcall target="configure-plugin-locationmap">
- <param name="plugin" value="${versioned.name}"/>
- </antcall>
+ <if>
+ <available property="plugin-locationmap"
file="${forrest.plugins-dir}/${versioned.name}/locationmap.xml"/>
+ <then>
+ <antcall target="configure-plugin-locationmap">
+ <param name="plugin" value="${versioned.name}"/>
+ </antcall>
+ </then>
+ <else>
+ <echo message="No locationmap provided for plugin
${versioned.name}"/>
+ </else>
+ </if>
</then>
<else>
<if>
@@ -206,9 +214,17 @@
</antcall>
</then>
</if>
- <antcall target="configure-plugin-locationmap">
- <param name="plugin" value="{plugin.name}"/>
- </antcall>
+ <if>
+ <available property="plugin-locationmap"
file="${forrest.plugins-dir}/${plugin.name}/locationmap.xml"/>
+ <then>
+ <antcall target="configure-plugin-locationmap">
+ <param name="plugin" value="${plugin.name}"/>
+ </antcall>
+ </then>
+ <else>
+ <echo message="No locationmap provided for plugin ${plugin.name}"/>
+ </else>
+ </if>
</else>
</if>
</target>