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

Koen Serneels commented on XMLBEANS-617:
----------------------------------------

Hi. We are facing the same issue. It would be great if ¨sourceDir¨ could work 
recursively. Perhaps with a toggle (or maybe a different config name all 
together) to enable this behavior.

We have a lot of top level schema´s (each in their own subdir) that needs to be 
compiled. Without this option we either need to duplicate the plugin config 
(like hundred times) or perhaps work with one schema just to import all others, 
but this is a hassle to maintain (this worked with the codehaus plugin)

I´m not really sure how to reflect this with a test case, but I created one in 
attachment that illustrates this with 2 ¨service¨ schema´s each in their own 
subdirectory in the top level xsd directory. 

The relevant part from the pom listed here:
{code:java}
<!-- THIS DOES NOT WORK: expectation is that it walks over all subdirs finding 
¨services/someServiceA¨ and ¨services/someServiceB¨-->
<!--<sourceDir>${project.basedir}/src/main/resources/xsd</sourceDir> -->
                
<!-- THIS WORKS BUT: only generates ¨services/someServiceA¨ and not 
¨services/someServiceB¨-->
<sourceDir>${project.basedir}/src/main/resources/xsd/services/someServiceA</sourceDir>
 {code}
We would be thankful if this feature could be imported in this plugin :)

Test case: [^xsd-test.zip]

> Support recursing directories (sourceDir configuration parameter)
> -----------------------------------------------------------------
>
>                 Key: XMLBEANS-617
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-617
>             Project: XMLBeans
>          Issue Type: Improvement
>          Components: Compiler
>    Affects Versions: Version 5.1.0
>            Reporter: Lorenzo Losio
>            Priority: Major
>         Attachments: Schema_Tree.txt, xsd-test.zip
>
>
> sourceDir parameter doesn't allow to configure a directory subtree,
> containing schema files, according  to somewhat hierarchy.
> E.g. if you have to handle the following tree (each directory containing 
> schema files)
> src\main\xsd
> src\main\xsd\common
> src\main\xsd\ext
>  
> and you configure sourceDir parameter to "src\main\xsd", schemaCompiler tool 
> compiles
> only the schema files contained in the above directory and doesn't work 
> recursively
> on the children directories.
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to