[ 
https://issues.apache.org/jira/browse/MJAVADOC-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957510#comment-17957510
 ] 

Olivier Lamy commented on MJAVADOC-105:
---------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-javadoc-plugin#463|https://github.com/apache/maven-javadoc-plugin/issues/463].
 

> Excluded package is generated (should not) because of wrong file separator.
> ---------------------------------------------------------------------------
>
>                 Key: MJAVADOC-105
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-105
>             Project: Maven Javadoc Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Windows
>            Reporter: Julien HENRY
>            Assignee: Carlos Sanchez Gonzalez
>            Priority: Major
>             Fix For: 2.3
>
>         Attachments: javadoc-exclude-package.patch
>
>
> I'm using javacc plugin to generate source. By default, sources are generated 
> in ${project.build.directory}/generated-sources/javacc
> I set Javacc to generate sources in package net.sourceforge.jwebunit.javacc
> As I don't want Javadoc to be generated for the parser, I set 
> excludePackageNames to net.sourceforge.jwebunit.javacc in my POM.
> With my configuration, the full path of Javacc generated sources is : 
> D:\jhenry\jwebunit-1.x\jwebunit-webtestcase-generator\target/generated-sources/javacc
>  (note that there is "/" and "\" in the same path).
> Now, in the function AbstractJavadocMojo.getIncludedFiles, you are trying to 
> exclude package by comparing string 
> D:\jhenry\jwebunit-1.x\jwebunit-webtestcase-generator\target\generated-sources\javacc\net\sourceforge\jwebunit\javacc\
> and
> D:\jhenry\jwebunit-1.x\jwebunit-webtestcase-generator\target/generated-sources/javacc
>  + \net\sourceforge\jwebunit\javacc\
> and the two Strings are not equal because of "/" and "\"
> Perhaps it's a bug of javacc, but this method should be more robust (for 
> example by using File comparisons instead of String comparisons).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to