From user-return-47072-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri Nov 26 16:30:12 2004 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 26392 invoked from network); 26 Nov 2004 16:30:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Nov 2004 16:30:11 -0000 Received: (qmail 83271 invoked by uid 500); 26 Nov 2004 16:30:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83088 invoked by uid 500); 26 Nov 2004 16:30:03 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 76924 invoked by uid 99); 26 Nov 2004 16:27:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Message-Id: <200411261627.iAQGQsHs024641@ylpvm15.prodigy.net> Reply-To: "Bill Rich" From: "Bill Rich" To: "'Ant Users List'" Subject: RE: foreach parameter does not change Date: Fri, 26 Nov 2004 08:28:55 -0800 Organization: Wilandra Consulting LLC MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcTTzv5t6xa7ruABRS2BhtLUmK18igABeaZA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N In 8_sub use @{file} to access the parameter. HTH Bill -----Original Message----- From: Robert Soesemann [mailto:rsoesemann@sapient.com] Sent: Friday, November 26, 2004 7:46 AM To: Ant Users List Subject: foreach parameter does not change Hello, In my ant pipeline I have the following 2 targets which perform a foreach on every xml file in a folder structure. I do it this way to pass the path of the currently process file to the xsl transformer. Although the code looks like $file is overwritten each iteration, all my xmls get the same file parameter. Any ideas?! <<---- IT NEVER CHANGES Robert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org