cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut-Erik Johnsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2977) cxf-codegen-plugin processes all wsdl file in directory even though only one wsdl is specified in pom
Date Tue, 07 Sep 2010 20:37:33 GMT

    [ https://issues.apache.org/jira/browse/CXF-2977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906960#action_12906960
] 

Knut-Erik Johnsen commented on CXF-2977:
----------------------------------------

I haven't seen any maven plugin that goes through an entire directory when a FILE is specified.
If I had specified the directory I would agree with you, since thats what happens with src/main/java
and resources. But since the disableDirectoryScan is available, I agree that this is a "Won't
fix" :)

> cxf-codegen-plugin processes all wsdl file in directory even though only one wsdl is
specified in pom
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-2977
>                 URL: https://issues.apache.org/jira/browse/CXF-2977
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration, Tooling
>    Affects Versions: 2.2.10
>            Reporter: Knut-Erik Johnsen
>            Priority: Minor
>             Fix For: Invalid
>
>
> If a user has two or more wsdl files in a directory, all are processed even though only
one is specified as a wsdl option in the pom. Given the specified pom, all wsdl files in the
src/main/resources/wsdl directory will be processed.
> <configuration>
>     <wsdlOptions>
>         <wsdlOption>
> 	     <wsdl>${basedir}/src/main/resources/wsdl/mywsdl.wsdl</wsdl>
>         </wsdlOption>
>     </wsdlOptions>
> </configuration>
> This is due to line 337 to 340 in WSDL2JavaMojo.java, where it sets up a default include
of *.wsdl if no includes are specified. The behavior can therefor be avoided by adding the
following under the configuration element above, but this is annoying and pollutes the pom:
> <includes>
>     <include></include>
> </includes>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message