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 2004/12/22 03:30:29 UTC

svn commit: r123031 - /forrest/trunk/main/targets/plugins.xml

Author: rgardler
Date: Tue Dec 21 18:30:26 2004
New Revision: 123031

URL: http://svn.apache.org/viewcvs?view=rev&rev=123031
Log:
Add a warning if a plugin list cannot be loaded
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?view=diff&rev=123031&p1=forrest/trunk/main/targets/plugins.xml&r1=123030&p2=forrest/trunk/main/targets/plugins.xml&r2=123031
==============================================================================
--- forrest/trunk/main/targets/plugins.xml	(original)
+++ forrest/trunk/main/targets/plugins.xml	Tue Dec 21 18:30:26 2004
@@ -148,6 +148,31 @@
         <get src="@{url}" 
            dest="${project.temp-dir}/plugins-${plugin-counter}.xml"
            verbose="true" usetimestamp="true" ignoreerrors="true"/>
+        <available property="plugin.list-${plugin-counter}.present"
+                 file="${project.temp-dir}/plugins-${plugin-counter}.xml"/>
+        <math result="plugin-counter" operand1="${plugin-counter}" operation="+" operand2="1" datatype="int"/>
+      </sequential>
+    </for>
+    
+    <var name="plugin-counter" value="1"/>
+    <for list="${forrest.plugins.descriptors}" param="url">
+      <sequential>
+        <if>
+          <available file="${project.temp-dir}/plugins-${plugin-counter}.xml"/>
+          <then>
+            <echo>Plugin list loaded.</echo>
+          </then>
+          <else>
+            <echo>
+            WARNING
+            =======
+            
+            Unable to load plugin list number ${plugin-counter}. 
+            Any plugins identified in this plugin list cannot be installed 
+            automatially, you will need to install these manually, see 
+            further errors below.</echo>
+          </else>
+        </if>
         <math result="plugin-counter" operand1="${plugin-counter}" operation="+" operand2="1" datatype="int"/>
       </sequential>
     </for>