Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:maven-1.0-rc3
-
Number of attachments :
Description
The hasNext() call in "fmlFiles.iterator().hasNext()" (maven-faq-plugin:register goal) causes an ugly stack trace when the xdocs folder doesn't exist.
This is a problem when calling the multiproject:site goal as there are some projects that may have no xdocs.
ASTIdentifier : java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
...
Caused by: C:\programacion\proyectos\oness\common\webapp\xdocs not found.
...
<goal name="maven-faq-plugin:register" prereqs="faq:init">
<!-- Only register the faq report if there are some fml files in
the project -->
<j:if test="${fmlFiles.iterator().hasNext()}">
<doc:registerReport
name="FAQs"
pluginName="maven-faq-plugin"
description="Frequently Asked Questions."
link="faq"/>
</j:if>
</goal>
fixed