The following comment has been added to this issue:

     Author: Daniel Bonniot
    Created: Fri, 6 Feb 2004 12:26 PM
       Body:
OK, I fixed the generation when Java source are present. Sorry for the blunder. I also 
made the report links only be generated when needed. For this I created a 
<javadoc:check-needed> tag to factor the work. This makes the main goals have a 
simpler logic ;-)

There is still a "JavaDocs" link in the overview in all cases, but it does not seem to 
be generated by this plugin. Anybody knows where it comes from?

---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJAVADOC-19&page=comments#action_16527

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJAVADOC-19

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJAVADOC-19
    Summary: Prevent the plugin from failing when a sourceDirectory exists, but it 
does not contain Java files
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: maven-javadoc-plugin

   Assignee: Emmanuel Venisse
   Reporter: Daniel Bonniot

    Created: Fri, 6 Feb 2004 7:15 AM
    Updated: Fri, 6 Feb 2004 12:26 PM

Description:
Currently, the javadoc plugin fails when there are no _Java_ sources in the source 
directory, even though the sourceDirectory exists (and therefore sourcesPresent is 
true). This situation occurs for instance when you develop a project in another 
language than Java (in my case, Nice).

This failure is inconvenient because the site: plugin calls javadoc, and so the site 
generation fails.

I have already implemented the change: after knowing the sourceDirectory exist, check 
if there is any *.java file in it. I'll attach the patch if I find how to. It's pretty 
simple, it just looks big because of reindentation of the body of the report 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to