cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Dolan (JIRA)" <>
Subject [jira] Created: (CXF-2640) WSDLToJavaContainer ignores CFG_SUPPRESS_GEN for outputdir creation
Date Sat, 30 Jan 2010 22:03:34 GMT
WSDLToJavaContainer ignores CFG_SUPPRESS_GEN for outputdir creation

                 Key: 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);;

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()}"

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

View raw message