Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 87040 invoked from network); 19 Apr 2006 23:32:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Apr 2006 23:32:24 -0000 Received: (qmail 93481 invoked by uid 500); 19 Apr 2006 23:32:20 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93436 invoked by uid 500); 19 Apr 2006 23:32:19 -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 93425 invoked by uid 99); 19 Apr 2006 23:32:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2006 16:32:19 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE 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; Wed, 19 Apr 2006 16:32:18 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Create a file that contains files in directory Date: Wed, 19 Apr 2006 17:31:56 -0600 Message-ID: <1E4F2A84C26DC449844BFE110EA0AA4401ABB6FA@DENPDMSXMB04.ad.tiaa-cref.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Create a file that contains files in directory Thread-Index: AcZkBIt+c2QTeS7HSuaXSLN8yfGQlQAAujPg From: "Guttula, Mohan" To: "Ant Users List" X-OriginalArrivalTime: 19 Apr 2006 23:32:34.0703 (UTC) FILETIME=[894399F0:01C66409] X-Loop-Check: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The issue was with relative path in the base directory. i.e.,=20 Issue is resolved by using IVAN suggestion which is as follows: ----- ----- Ivan - do you know if I can append "@" to the beginning of each line in the target directory. i.e.,=20 **** Target file (master.sql) ***** @temp/temp.tab @temp1/temp1.ind @temp2/temp2.trg @temp3/temp3.seq @temp4/temp4.ind @temp5/temp5.trg ****************** I have tried "${all.files}" but it is only generating the following target file: ----- Snippet of "master.sql" --- @temp/temp.tab temp1/temp1.ind temp2/temp2.trg temp3/temp3.seq temp4/temp4.ind temp5/temp5.trg ------- I also want to know if we can use some Ant task to rearrange line the target file (or should I write my custom ANT task). For example in the following way ******** Final "master.sql"***** @temp/temp.tab @temp1/temp1.ind @temp4/temp4.ind @temp2/temp2.trg @temp5/temp5.trg @temp3/temp3.seq ******** In the above file, I have to rearrange lines based on the extension. Regards, Mohan -----Original Message----- From: Ivan "Rambius" Ivanov [mailto:rambiusparkisanius@yahoo.com]=20 Sent: Wednesday, April 19, 2006 6:56 PM To: Ant Users List Subject: RE: Create a file that contains files in directory Hello, Your code seems ok. Ypu may want to start ant with -verbose option to see what is going wrong. Also can you try defining master_base property not with value but with location attribute: Regards Ivan --- "Guttula, Mohan" wrote: > More info: >=20 > If I don't use , I'm getting the > complete path of the files > inside my target file. If I use the , > the target file is > empty. >=20 > A snippet of my build.xml > ---- > > default=3D"help"> > =09 > value=3D"c:\StarTeam\MyProject\release"/> >=20 > =09 > > > > > pathsep=3D"${line.separator}" refid=3D"all.files.fs"> > from=3D"${master_base}${file.separator}*" to=3D"*"/> > > ${all.files} > > =20 > > ---- >=20 > Regards, > Mohan >=20 > -----Original Message----- > From: Guttula, Mohan=20 > Sent: Wednesday, April 19, 2006 3:35 PM > To: Ant Users List > Subject: RE: Create a file that contains files in > directory >=20 > Hello, >=20 > didn't resolve the absolute path issue? > Do I need to use some other mapper? >=20 > Regards, > Mohan >=20 > -----Original Message----- > From: Ivan "Rambius" Ivanov > [mailto:rambiusparkisanius@yahoo.com]=20 > Sent: Monday, April 17, 2006 4:58 PM > To: Ant Users List > Subject: Re: Create a file that contains files in > directory >=20 > Hello, >=20 > Here is a sample script that does this: >=20 > > > > > pathsep=3D"${line.separator}" > refid=3D"all.files.fs"/> > ${all.files} > >=20 > Note that allfiles.txt will contain the absolute > locations of the files. If you need relative ones > you > may want to use mappers: >=20 > pathsep=3D"${line.separator}" > refid=3D"all.files.fs"> > from=3D"${basedir}${file.separator}*" to=3D"*"/> > >=20 > Regards > Ivan >=20 > --- "Guttula, Mohan" wrote: >=20 > > Hello All, > >=20 > > =20 > >=20 > > I need to generate a file that contains list of > > files from a directory > > (that will contain subdirectories).=20 > >=20 > > Something similar to copying the output of "ls" or > > "dir" to a file. > >=20 > > =20 > >=20 > > For example:=20 > >=20 > > Folder "temp" contains folders "temp1", "temp2", > and > > a file "temp.tab" > >=20 > > Folder "temp1" contains folder temp3 and file > > "temp1.ind" > >=20 > > Folder "temp2" contains folder temp4 and file > > "temp2.trg" > >=20 > > Folder "temp3" contains file "temp3.seq" > >=20 > > Folder "temp4" contains file "temp4.fn" > >=20 > > =20 > >=20 > > I need to generate a file which contains the > > following contents: > >=20 > > ---- > >=20 > > temp/temp.tab > >=20 > > temp1/temp1.ind > >=20 > > temp2/temp2.trg > >=20 > > temp3/temp3.seq > >=20 > > temp4/temp4.fn > >=20 > > ---- > >=20 > > =20 > >=20 > > Note: Contents of "temp" folder changes during > each > > checkout from Source > > code control. > >=20 > > =20 > >=20 > > Thanks, > >=20 > > Mohan > >=20 > > =20 > >=20 > > =20 > >=20 > > =20 > >=20 > > =20 > >=20 > >=20 > >=20 > > > ************************************************************** > > This message, including any attachments, contains > > confidential information intended for a specific > > individual and purpose, and is protected by law.=20 > If > > you are not the intended recipient, please contact > > sender immediately by reply e-mail and destroy all > > copies. You are hereby notified that any > > disclosure, copying, or distribution of this > > message, or the taking of any action based on it, > is > > strictly prohibited. > > TIAA-CREF > > > ************************************************************** > >=20 > >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around=20 > http://mail.yahoo.com=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org >=20 >=20 >=20 > ************************************************************** > This message, including any attachments, contains > confidential > information intended for a specific individual and > purpose, and is > protected by law. If you are not the intended > recipient,=20 =3D=3D=3D message truncated =3D=3D=3D __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ************************************************************** 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 ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org