jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 1.x Javadoc Plugin
  • Maven 1.x Javadoc Plugin
  • MPJAVADOC-26

needed check incorrect

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.6
  • Labels:
    None
  • Number of attachments :
    0

Description

The javadoc plugin has undergone some changes adding support for iterating across the directories in the maven.compile.src.set path ref. However, there is an error in the check:needed logic.

Line numbers below are against this version of the plugin:

http://cvs.apache.org/viewcvs.cgi/maven-plugins/javadoc/plugin.jelly?rev=1.42&view=markup

The foreach loop at line 99 iterates across the directories in the maven.compile.src.set. The test at line 101 reads:

<j:if test="$

{needed == null}

">

If there are two directories in maven.compile.src.set, and the first directory has no source files in it, then the first iteration of this loop will leave needed equal to false. The second time through the loop, since needed is no longer equal to null, the loop is short circuited, and, because needed is false, no processing is done, even though there may be valid source files in the second directory.

Changing the test on line 101 to:

<j:if test="$

{needed != true}

">

will correct this problem, short circuiting the loop only after the first directory with valid source files is found.

Denis

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Arnaud Heritier added a comment - 09/Jun/04 5:55 PM

Fixed

Show
Arnaud Heritier added a comment - 09/Jun/04 5:55 PM Fixed
Hide
Permalink
Denis McLaughlin added a comment - 09/Jun/04 10:38 PM

Many thanks!

Denis

Show
Denis McLaughlin added a comment - 09/Jun/04 10:38 PM Many thanks! Denis

People

  • Assignee:
    Jason van Zyl
    Reporter:
    Denis McLaughlin
Vote (0)
Watch (1)

Dates

  • Created:
    03/Jun/04 11:46 PM
    Updated:
    09/Jun/04 10:38 PM
    Resolved:
    09/Jun/04 5:55 PM

Time Tracking

Estimated:
10m
Original Estimate - 10 minutes
Remaining:
10m
Remaining Estimate - 10 minutes
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.