Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 21626 invoked from network); 3 Sep 2004 15:01:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Sep 2004 15:01:15 -0000 Received: (qmail 31718 invoked by uid 500); 3 Sep 2004 15:01:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31604 invoked by uid 500); 3 Sep 2004 15:01:00 -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 31588 invoked by uid 99); 3 Sep 2004 15:01:00 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: unknown (hermes.apache.org: error in processing during lookup of smasiello@mxlogic.com) Received: from [216.173.230.170] (HELO p01m170.mxlogic.net) (216.173.230.170) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 03 Sep 2004 08:00:57 -0700 Received: from unknown [63.78.249.241] (EHLO mxlhq-exch-fe.corp.mxlogic.com) by p01m170.mxlogic.net (mxl_mta-1.3.8-10p4) with ESMTP id 82788314.32147.052.p01m170.mxlogic.net; Fri, 03 Sep 2004 09:00:56 -0600 (MDT) Received: from mxlhq-exch01.corp.mxlogic.com ([10.30.0.246]) by mxlhq-exch-fe.corp.mxlogic.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 3 Sep 2004 09:00:52 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C491C6.CE3CFC43" Subject: RE: Chainedmapper question -- going crazy! X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Date: Fri, 3 Sep 2004 09:00:52 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Chainedmapper question -- going crazy! Thread-Index: AcSRpDZbM7V0P635SEOo9YiXL1QYlAAIS0TZ From: "Sam Masiello" To: "Ant Users List" , "Ant Users List" X-OriginalArrivalTime: 03 Sep 2004 15:00:52.0208 (UTC) FILETIME=[CE30E700:01C491C6] X-MX-Spam: final=0.0100000000; stat=0.0100000000 X-MX-MAIL-FROM: X-MX-SOURCE-IP: [63.78.249.241] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C491C6.CE3CFC43 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Peter! =20 This won't quite do what I want as I don't want myCVSDir to become a = subdirectory of myProdDir. I want the files and directories within = myCVSDir to do a straight copy to myProdDir...for example: =20 copy /path/to/my/myCVSDir/index.php to = /different/path/to/myCVSProdDir/index.php copy /path/to/my/myCVSDir/myRandomSubdir/pricing.php to = /different/path/to/myCVSProdDir/myRandomSubdir/index.php =20 This is why I thought I needed a chainedmapper. I am copying a file = from pathA/fileA to pathB/fileA. =20 Basically the same as if I=20 =20 Make sense? =20 --Sam =20 =20 ________________________________ From: Peter Reilly [mailto:peterreilly@apache.org] Sent: Fri 9/3/2004 4:53 AM To: Ant Users List Subject: Re: Chainedmapper question -- going crazy! should work. Peter Sam Masiello wrote: > >I thought of the flattenmapper problem after I had submitted my post, = but unfortunately it didn't help my situation any. > >>>From reading the documentation though, if you have a number of files = and directories in: > >/home/sam/mycvsdir > >and you want to copy them to: > >/my/production/directory > >then you need to use a chainedmapper. Is this not true? If not, how = can I accomplish it? I beat my head against this thing for several = hours today before deciding that I wasn't going to get this without some = help :) Any help you can provide would be appreciated. I can provide = more info or a more complete example, if you would like, but this is the = crux of the issue. > >--Sam > > > >________________________________ > >From: Matt Benson [mailto:gudnabrsam@yahoo.com] >Sent: Thu 9/2/2004 4:22 PM >To: Ant Users List >Subject: Re: Chainedmapper question -- going crazy! > > > >Without a more complete example I'm not 100% sure, but >from what I can see so far you don't need any mapper >at all, if all you want to do is copy a fileset from >one directory to another. Additionally, you can't >chain a flattenmapper to a globmapper that is intended >to change directory information and expect it to work; >the flattenmapper removes all leading directory >information, so the globmapper would never match >anything. > >HTH, >Matt > >--- Sam Masiello wrote: > >=20 > >>I am about at wits end trying to figure out how to >>get chainedmapper to >>work and I was hoping you could offer some >>assistance. >> >>In searching the archives, it looks like this is the >>proper syntax to >>use chainedmapper: >> >> >> >> >> >> >> >> >> >>My goal is to take a CVS checkout that I have in my >>home directory and >>copy the files to another directory where I will >>actually do my build >>from. The problem is that the name of the directory >>that the CVS >>checkout is in is not the same as the destination >>directory. It seemed >>like chainedmapper was the answer to my problems, >>but I can't seem to >>get it to work. Here is what I have: >> >> >> >> >> >> >> >to=3D"${myProdDir}" /> >> >> >> >> >>myCVSdir is my cvs checkout directory which sits in >>my home directory. >>myProdDir is a directory deeper within the directory >>tree from my home >>dir. It is where I need to copy the files from >>myCVSDir to in order to >>do my build. >> >>Any thoughts or help would be greatly appreciated as >>I am beating my >>head into the wall on this. >> >>Thanks a *LOT*! >> >>--Sam >> >> >> =20 >> >--------------------------------------------------------------------- >=20 > >>To unsubscribe, e-mail: >>user-unsubscribe@ant.apache.org >>For additional commands, e-mail: >>user-help@ant.apache.org >> >> >> =20 >> > > > > =20 >_______________________________ >Do you Yahoo!? >Win 1 of 4,000 free domain names from Yahoo! Enter now. >http://promotions.yahoo.com/goldrush > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C491C6.CE3CFC43--