Maven 1.x FAQ Plugin

Ugly stack trace when xdocs folder doesn't exist

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    0

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>

Activity

Hide
Brett Porter added a comment -

fixed

Show
Brett Porter added a comment - fixed

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: