Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 95943 invoked from network); 18 Aug 2005 19:00:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2005 19:00:45 -0000 Received: (qmail 93384 invoked by uid 500); 18 Aug 2005 19:00:34 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 93320 invoked by uid 500); 18 Aug 2005 19:00:34 -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 93307 invoked by uid 99); 18 Aug 2005 19:00:34 -0000 X-ASF-Spam-Status: No, hits=0.2 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; Thu, 18 Aug 2005 12:00:33 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id C0C2CE3; Thu, 18 Aug 2005 21:00:32 +0200 (CEST) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 36256] New: - Project.executeTarget() doesn't update target task arguments on multiple calls from a Script Task X-Bugzilla-Reason: AssignedTo Message-Id: <20050818190032.C0C2CE3@ajax.apache.org> Date: Thu, 18 Aug 2005 21:00:32 +0200 (CEST) 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=36256 Summary: Project.executeTarget() doesn't update target task arguments on multiple calls from a Script Task Product: Ant Version: 1.6.5 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: critical Priority: P1 Component: Optional Tasks AssignedTo: dev@ant.apache.org ReportedBy: andreok@mail.com I'm having problems using Project.executeTarget() method inside Script Tasks, for calling multiple times a target task. Here's a hypothetical script (it tries to compile 2 Java classes from /src to /bin) that generates the problem: " " I have two Java classes ("test.Test1" and "test.Test2") in the /src dir, but the script only compiles the first one. Here's the script console output: "Buildfile: build.xml test: [echo] filename=test\Test1.java [echo] className=Test1 test_target: [echo] className2=Test1 [echo] --------------------------------- [echo] filename=test\Test2.java [echo] className=Test2 test_target: [echo] className2=Test2 [echo] ---------------------------------" As you may see in the console output, the javac task is called twice with the same includes value ("**/Test1.java"), because it only compiles the Test1 class. So the second call, to compile the Test2 class, uses the same value from the first call, instead of the second ("**/Test2.java"). The problem may be related to a bind problem in the includes argument from javac task, because the script from inside "test_target" task getts the correct "CLASS_NAME" property value (className2). Thanks, Andre Kovacs -- 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