You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Chris Dolan (JIRA)" <ji...@apache.org> on 2010/01/30 23:03:34 UTC

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

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


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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ 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.