Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 34204 invoked from network); 22 May 2007 02:19:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2007 02:19:38 -0000 Received: (qmail 93240 invoked by uid 500); 22 May 2007 02:19:44 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 92930 invoked by uid 500); 22 May 2007 02:19:43 -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 92918 invoked by uid 99); 22 May 2007 02:19:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 19:19:43 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 19:19:37 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id EC68371403E; Mon, 21 May 2007 19:19:16 -0700 (PDT) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 42482] New: - ant and subant improperly passes references to macrodefs and scriptdefs to the child script Message-ID: X-Bugzilla-Reason: AssignedTo Date: Mon, 21 May 2007 19:19:16 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org 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=42482 Summary: ant and subant improperly passes references to macrodefs and scriptdefs to the child script Product: Ant Version: 1.7.0 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P1 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: sanduatwork@hotmail.com I have created my own antlib that contains macrodefs and scripdefs. I reference it using a namespace declaration. It works fine until I invoke my tasks from a child script called by subant. Invoking a scriptdef task results in "Script repository not found for ..." thrown from ScriptDefBase.getScript. Invoking a macrodef has another sideeffect. If I have something like: .... The default is being evaluated once for the parent script and then is passed along to the child script. I went throught the code and I think the problem is that ComponentHelper.initSubProject passes all the custom typedefs and taskdefs to the child script. This works well with regular taskdefs and typedefs because they are essentialy static, however scriptdefs and macrodefs are not. Well maybe only macrodefs - the scriptdef issue seems to be just a bug. -- 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