You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/12 04:49:06 UTC

[jira] Closed: (MPFAQ-12) Ugly stack trace when xdocs folder doesn't exist

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Fri, 11 Jun 2004 10:48 PM

fixed
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPFAQ-12

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPFAQ-12
    Summary: Ugly stack trace when xdocs folder doesn't exist
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-faq-plugin
   Versions:
             1.3

   Assignee: Brett Porter
   Reporter: Carlos Sanchez

    Created: Mon, 7 Jun 2004 3:23 PM
    Updated: Fri, 11 Jun 2004 10:48 PM
Environment: maven-1.0-rc3

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>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org