cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CXF-2640) WSDLToJavaContainer ignores CFG_SUPPRESS_GEN for outputdir creation
Date Tue, 02 Feb 2010 16:32:24 GMT

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

Daniel Kulp reassigned CXF-2640:
--------------------------------

    Assignee: Daniel Kulp

> 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
>
> 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.


Mime
View raw message