You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2010/02/02 18:34:19 UTC

[jira] Resolved: (CXF-2640) WSDLToJavaContainer ignores CFG_SUPPRESS_GEN for outputdir creation

     [ https://issues.apache.org/jira/browse/CXF-2640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2640.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.7

> WSDLToJavaContainer ignores CFG_SUPPRESS_GEN for outputdir creation
> -------------------------------------------------------------------
>
>                 Key: CXF-2640
>                 URL: https://issues.apache.org/jira/browse/CXF-2640
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.6
>            Reporter: Chris Dolan
>            Assignee: Daniel Kulp
>            Priority: Trivial
>             Fix For: 2.2.7
>
>
> First, let me say that I realize that WSDLToJava doesn't support "-suppress" as a command-line option.  So this defect is quite obscure.
> Consider this code:
> 		WSDLToJava w2j = new WSDLToJava(new String[] {
> 				"-d", "generatedcode", "http://localhost:9090/CustomerServicePort?wsdl",
> 		});
> 		ToolContext context = new ToolContext();
> 		context.put(ToolConstants.CFG_SUPPRESS_GEN, true);
> 		w2j.run(context);
> This code works in the sense that it does not build any .java files, however it still creates the "generatedcode" directory.  An easy and low-risk fix would be to change WSDLToJavaContainer.validate() to wrap an "if (isSuppressCodeGen()) {...}" around the "if(!dir.exists()) {dir.mkdirs()}" block.

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