Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 61340 invoked from network); 11 Nov 2009 01:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Nov 2009 01:49:51 -0000 Received: (qmail 53051 invoked by uid 500); 11 Nov 2009 01:49:51 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 53004 invoked by uid 500); 11 Nov 2009 01:49:51 -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 52994 invoked by uid 99); 11 Nov 2009 01:49:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 01:49:51 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Wed, 11 Nov 2009 01:49:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E4581234C1EF for ; Tue, 10 Nov 2009 17:49:27 -0800 (PST) Message-ID: <63564733.1257904167920.JavaMail.jira@brutus> Date: Wed, 11 Nov 2009 01:49:27 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-2368) defaultOptions in cxf-codegen-plugin only works with wsdlRoot scanning In-Reply-To: <326412736.1248811574808.JavaMail.jira@brutus> 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-2368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-2368. ------------------------------ Resolution: Fixed Fix Version/s: 2.2.5 The default options are now merged into the configured options more or less as documented. > defaultOptions in cxf-codegen-plugin only works with wsdlRoot scanning > ---------------------------------------------------------------------- > > Key: CXF-2368 > URL: https://issues.apache.org/jira/browse/CXF-2368 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.2.2 > Environment: Windows XP, Eclipse 3.3.2 + m2eclipse plug-in > Reporter: John McGinn > Assignee: Daniel Kulp > Priority: Minor > Fix For: 2.2.5 > > Attachments: bindingMapping.xsd, bindings.xjb, Equipment.xsd, EquipmentService.wsdl, pom.xml, stacktrace.txt > > > I setup the plug-in with defaultOptions + a wsdlOption and get the following stack trace: > java.lang.NullPointerException > at java.io.File.(File.java:222) > at org.apache.cxf.maven_plugin.WSDL2JavaMojo.mergeOptions(WSDL2JavaMojo. > java:143) > at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java: > 195) > This appears to be happening at this line of code: > private void mergeOptions(List options) { > File outputDirFile = testSourceRoot == null ? sourceRoot : testSourceRoot; > for (WsdlOption o : wsdlOptions) { > if (o.getOutputDir() == null) { > o.setOutputDir(outputDirFile); > } > > File file = new File(o.getWsdl());