Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 61835 invoked from network); 28 Aug 2009 02:13:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Aug 2009 02:13:24 -0000 Received: (qmail 56988 invoked by uid 500); 28 Aug 2009 02:13:23 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 56870 invoked by uid 500); 28 Aug 2009 02:13:23 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 56861 invoked by uid 99); 28 Aug 2009 02:13:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2009 02:13:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 28 Aug 2009 02:13:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50317234C1EB for ; Thu, 27 Aug 2009 19:12:59 -0700 (PDT) Message-ID: <1745747868.1251425579327.JavaMail.jira@brutus> Date: Thu, 27 Aug 2009 19:12:59 -0700 (PDT) From: "Amila Chinthaka Suriarachchi (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4477) wsdl2java should only prettify files it has generated itself In-Reply-To: <657575200.1251318119336.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748647#action_12748647 ] Amila Chinthaka Suriarachchi commented on AXIS2-4477: ----------------------------------------------------- ok lets do it in that way > wsdl2java should only prettify files it has generated itself > ------------------------------------------------------------ > > Key: AXIS2-4477 > URL: https://issues.apache.org/jira/browse/AXIS2-4477 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: 1.5.1, 1.5, 1.4.1 > Reporter: Andreas Veithen > Priority: Minor > Attachments: AXIS2-4477.patch.txt, codegen.patch > > > In AXIS2-2947 it was requested to make the prettify feature in wsdl2java more selective, but this has only been done for XML files. The problem still persists for Java files: if the output directory contains Java files that have not been generated by wsdl2java, then these files will be reformatted too. The prettify feature should be strictly limited to files that have been generated by wsdl2java. > Additional notes: > - The fact that JavaPrettyPrinterExtension scans the entire output directory is the actual root cause of AXIS2-4107. > - The change in AXIS2-2947 has a severe design flaw because it changed AbstractPrettyPrinterExtension to limit itself to generated XML files. It should limit itself to files of any type generated by wsdl2java and give subclasses the opportunity to filter these files by type. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.