[ 
http://jira.codehaus.org/browse/MJAXB-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MJAXB-17.
-----------------------------

    Resolution: Fixed

The mojo will now check if the directory contains xsd files.
If not it will failed by default.
This can be skip by setting to false the new mojo parameter : failOnNoSchemas.

> Filter out directories when collecting schema and binding files
> ---------------------------------------------------------------
>
>                 Key: MJAXB-17
>                 URL: http://jira.codehaus.org/browse/MJAXB-17
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Michael Rudolf
>            Assignee: Robert Scholte
>             Fix For: 1.3
>
>         Attachments: XjcMojo.patch
>
>
> Hi,
> The file filters for schema and binding files only check whether the file 
> name ends in ".xsd" and ".xjb", respectively. However, the method 
> java.io.File.listFiles(FileFilter) also returns directories, and it is 
> perfectly legal to have directory names ending in ".xsd" or ".xjb". Of 
> course, once xjc complains about being unable to read in a directory, the 
> user will probably rename the offending directories, but it would be nice if 
> the plugin handled this more gracefully. Patch attached.
> Best regards,
> Michael

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to