Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 13844 invoked from network); 2 Feb 2010 16:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 16:32:45 -0000 Received: (qmail 10138 invoked by uid 500); 2 Feb 2010 16:32:45 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 10113 invoked by uid 500); 2 Feb 2010 16:32:45 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 10103 invoked by uid 99); 2 Feb 2010 16:32:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 16:32:45 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 16:32:44 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2802129A001A for ; Tue, 2 Feb 2010 08:32:24 -0800 (PST) Message-ID: <755415837.28731265128344162.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Feb 2010 16:32:24 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Assigned: (CXF-2640) WSDLToJavaContainer ignores CFG_SUPPRESS_GEN for outputdir creation In-Reply-To: <1778023317.154031264889014565.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.