Author: cdupoirieux
Date: Wed Jun 28 05:08:55 2006
New Revision: 417740
URL: http://svn.apache.org/viewvc?rev=417740&view=rev
Log:
FOR-904 - Fail if the description of a plugin is not found.
The test is made in the fetch-plugin target.
Modified:
forrest/trunk/main/targets/plugins.xml
Modified: forrest/trunk/main/targets/plugins.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/main/targets/plugins.xml?rev=417740&r1=417739&r2=417740&view=diff
==============================================================================
--- forrest/trunk/main/targets/plugins.xml (original)
+++ forrest/trunk/main/targets/plugins.xml Wed Jun 28 05:08:55 2006
@@ -360,6 +360,18 @@
<echo>Fetch-plugin Ok, installing !</echo>
</catch>
</trycatch>
+ <!-- Here we stop if the description of a plugin has not been found... -->
+ <fail unless="plugin-found">STOP GENERATION !
+ WARNING - Cannot find the plugin description
+ ============================================
+
+ Unable to find the description of ${versioned.name} in the different
descriptor files.
+ This plugin used by this project (declared in project.required.plugins
variable of the forrest.properties).
+ Forrest will stop the generation now.
+ To correct this :
+ - Check the name of the plugin and correct it in case it is wrong,
+ - Add the missing descriptor file in the list in the
forrest.plugins.descriptors variable (forrest.properties) if necessary...
+ </fail>
</target>
<target name="install-plugin" depends="check-plugin, fetch-plugin,
unpack-plugin"/>