Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 6706 invoked from network); 17 Sep 2007 02:29:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 02:29:47 -0000 Received: (qmail 39607 invoked by uid 500); 17 Sep 2007 02:29:39 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 39571 invoked by uid 500); 17 Sep 2007 02:29:39 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 39562 invoked by uid 99); 17 Sep 2007 02:29:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 19:29:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jim.ma@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 02:31:28 +0000 X-IronPort-AV: E=Sophos;i="4.20,262,1186372800"; d="scan'208";a="5358799" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 16 Sep 2007 22:29:16 -0400 Received: from [10.129.9.224] ([10.129.9.224]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Sun, 16 Sep 2007 22:29:15 -0400 Message-ID: <46EDE58C.60906@iona.com> Date: Mon, 17 Sep 2007 10:25:16 +0800 From: Jim Ma User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-dev@incubator.apache.org Subject: Re: svn commit: r575222 - in /incubator/cxf/trunk: api/src/main/java/org/apache/cxf/tools/common/ tools/common/ tools/common/src/main/java/org/apache/cxf/tools/common/ tools/javato/ tools/javato/ws/ tools/javato/ws/src/main/java/org/apache/cxf/tools/java2w... References: <20070913084524.252BF1A9844@eris.apache.org> <1189796159.26708.25.camel@gmazza-desktop> In-Reply-To: <1189796159.26708.25.camel@gmazza-desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Sep 2007 02:29:15.0976 (UTC) FILETIME=[8ADABC80:01C7F8D2] X-Virus-Checked: Checked by ClamAV on apache.org Hi Glen , Please see my comments inline. Glen Mazza wrote: > Am Donnerstag, den 13.09.2007, 08:45 +0000 schrieb ema@apache.org: > > >> Modified: incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWSContainer.java >> URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWSContainer.java?rev=575222&r1=575221&r2=575222&view=diff >> ============================================================================== >> --- incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWSContainer.java (original) >> +++ incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWSContainer.java Thu Sep 13 01:45:21 2007 >> @@ -78,7 +78,7 @@ >> >> if (!"simple".equalsIgnoreCase(ft) && !"jaxws".equalsIgnoreCase(ft)) { >> - Message msg = new Message("INVALID_FORNTEND", LOG, new Object[]{ft}); >> + Message msg = new Message("INVALID_FRONTEND", LOG, new Object[] {ft}); >> errs.add(new ErrorVisitor.UserError(msg.toString())); >> } >> } >> >> > I think we should make the constants--"jaxws" and > "simple"--case-sensitive, it will help us in the future should we use > constants for these two values. Also, our command-line scripts are > already case-sensitive (correct?), and Unix-like case sensitivity gives > a good feeling to the user that the scripts are very rigorous and > robust. > > +1. > >> + Message msg = new Message("WRAPPERBEAN_WITHOUT_JAXWS", LOG); >> errs.add(new ErrorVisitor.UserError(msg.toString())); >> } >> } >> - >> >> >> Modified: incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties >> URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties?rev=575222&r1=575221&r2=575222&view=diff >> ============================================================================== >> --- incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties (original) >> +++ incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties Thu Sep 13 01:45:21 2007 >> @@ -23,6 +23,7 @@ >> FILE_NOT_EXIST = File does not exist >> NOT_A_FILE = {0} is not a file >> PARAMETER_MISSING = Required parameter is missing or not valid >> -INVALID_FORNTEND = \ "{0}" is not a valid frontend, java2ws only supports jaxws and simple frontend. >> -CANT_GEN_WRAPPERBEAN = Wrapperbean only needs to be generated for jaxws front end. >> +INVALID_FRONTEND = "{0}" is not a valid frontend, java2ws only supports jaxws and the simple frontend. >> > > INVALID_FRONTEND = "{0}" is not a valid frontend, java2ws only supports > the "simple" and "jaxws" frontend. > > We need quotes so the reader knows what to type in; also, if we put > simple last it seems to be a sarcastic comment (i.e., "simple" frontend > can mean not-very-simple front end) > > +1. I think it is a good practice to quote the reader need to type in . >> +WRAPPERBEAN_WITHOUT_JAXWS = -wrapperbean is only valid for the jaxws front end. >> +INVALID_DATABINDING = Invalid value {0} for data binding type. >> >> >> Modified: incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/java2ws.xml >> URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/java2ws.xml?rev=575222&r1=575221&r2=575222&view=diff >> ============================================================================== >> --- incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/java2ws.xml (original) >> +++ incubator/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/java2ws.xml Thu Sep 13 01:45:21 2007 >> @@ -35,9 +35,19 @@ >> >> >> >> + >> + >>