Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 6439 invoked from network); 6 Apr 2006 13:38:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 13:38:14 -0000 Received: (qmail 91034 invoked by uid 500); 6 Apr 2006 13:37:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90994 invoked by uid 500); 6 Apr 2006 13:37:25 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 90976 invoked by uid 99); 6 Apr 2006 13:37:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 06:37:25 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [143.165.169.50] (HELO corplz003isem10.tiaa-cref.org) (143.165.169.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 06:37:24 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6597F.2FE26BA4" Subject: Dynamically increase the number of arguments to EXEC task based on the number and name of the file(s) in a directory. Date: Thu, 6 Apr 2006 07:37:01 -0600 Message-ID: <1E4F2A84C26DC449844BFE110EA0AA440189FAB0@DENPDMSXMB04.ad.tiaa-cref.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Dynamically increase the number of arguments to EXEC task based on the number and name of the file(s) in a directory. Thread-Index: AcZZfy9+POsETSByQ1GrjUdIDmUuWg== From: "Guttula, Mohan" To: X-OriginalArrivalTime: 06 Apr 2006 13:37:38.0781 (UTC) FILETIME=[457768D0:01C6597F] X-Loop-Check: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6597F.2FE26BA4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello All, =20 Requirement: Dynamically increase the number of arguments to EXEC task based on the number and name of the file in a directory. =20 For example a sample directory contains the following files with extension "*.rod" (Number of rod files in the "src" directory dynamically change):=20 C:\src> dir /b *.rod Details.rod Info.rod Summary.rod =20 Right now, I'm hard coding the file names in arguments to EXEC task in the following way =20 =20 Compiling ROD files. Please wait... =20 Above target is good when I hardcode the files to the "arg". I want to dynamically add "arg" values based on the number and name of the file. I want to know how I can achieve my requirement. (Should I use marcodef? If so how?) =20 Any help is highly appreciated. =20 Thanks, Mohan =20 ************************************************************** This message, including any attachments, contains confidential information = intended for a specific individual and purpose, and is protected by law. I= f you are not the intended recipient, please contact sender immediately by = reply e-mail and destroy all copies. You are hereby notified that any disc= losure, copying, or distribution of this message, or the taking of any acti= on based on it, is strictly prohibited. TIAA-CREF ************************************************************** ------_=_NextPart_001_01C6597F.2FE26BA4--