Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 26847 invoked from network); 30 Jan 2006 16:30:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jan 2006 16:30:42 -0000 Received: (qmail 77219 invoked by uid 500); 30 Jan 2006 16:30:40 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 77177 invoked by uid 500); 30 Jan 2006 16:30:40 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 77166 invoked by uid 99); 30 Jan 2006 16:30:40 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 08:30:40 -0800 Received: by ajax.apache.org (Postfix, from userid 99) id 72D2BCB; Mon, 30 Jan 2006 17:30:19 +0100 (CET) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 38451] - When using the html option the antlr task doesn't recognised whether the target is up-to-date and thus executes superfluous compilations. In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20060130163019.72D2BCB@ajax.apache.org> Date: Mon, 30 Jan 2006 17:30:19 +0100 (CET) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=38451 f.zeyda@tees.ac.uk changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|PatchAvailable | ------- Additional Comments From f.zeyda@tees.ac.uk 2006-01-30 17:30 ------- When using the html option the antlr task doesn't recognised whether the target is up-to-date and thus executes superfluous compilations. I have tracked down the bug to some extend in the source code, in essence the problem is that the method getGeneratedFile() in class org.apache.ant.taskdefs.optional.ANTLR (line 348) only deduces the output File correctly if the generated file is a ".java" file (which is not the case if the html option is specified). A fix to the particular problem is to replace line 367: return new File(outputDirectory, generatedFileName + ".java"); with return new File(outputDirectory, generatedFileName + (html ? ".html" : ".java"); in file ANTLR.java (directory src/main/org/apache/tools/ant/taskdefs/optional/) Moreover it might be desirable to investigate more thoroughly what types of output files antlr can produce under what conditions, and make sure their name is always guessed correctly in the getGeneratedFile() method. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org