The following comment has been added to this issue:

     Author: Emmanuel Venisse
    Created: Fri, 6 Feb 2004 1:49 PM
       Body:
I think we can change the generation of sourcePresent value by mechanism present in 
javadoc checkneeded tag. With this checkstyle, sourcexref... reports will don't 
appears in project reports and we don't have any 404 page.

sourcePresent = true if a java file exists and not if the source directory exist.
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJAVADOC-19&page=comments#action_16532

---------------------------------------------------------------------
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: Reopened
   Priority: Major

 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 1:49 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