Yes, it was. Thank you both. I am very much a newbie to using ant (if you hadn't noticed :)) and realized that the issue that I was having was related to how I was updating my repositories from CVS prior to copying the files to where I do my builds from.
Peter's example worked perfectly after I figured this out. Thanks again! --Sam -----Original Message----- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 9:36 AM To: Ant Users List Subject: RE: Chainedmapper question -- going crazy! The example Peter provided should be all you need. Really. -Matt --- Sam Masiello <[EMAIL PROTECTED]> wrote: > > Sorry...didn't finish my last thought (starting with "Basically the > same as if I") > > Basically what I am trying to accomplish is the same as if I did a: > > cp -r /myCVSDir/* /path/to/myCVSProdDir > > from the command line. > > --Sam > > ________________________________ > > From: Sam Masiello [mailto:[EMAIL PROTECTED] > Sent: Fri 9/3/2004 9:00 AM > To: Ant Users List; Ant Users List > Subject: RE: Chainedmapper question -- going crazy! > > > > Hi Peter! > > 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: > > 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 > > This is why I thought I needed a chainedmapper. I am copying a file > from pathA/fileA to pathB/fileA. > > Basically the same as if I > > Make sense? > > --Sam > > > > ________________________________ > > From: Peter Reilly [mailto:[EMAIL PROTECTED] > Sent: Fri 9/3/2004 4:53 AM > To: Ant Users List > Subject: Re: Chainedmapper question -- going crazy! > > > > <copy todir="${myProdDir}" verbose="true"> > <fileset dir="${myCVSDir}" /> > </copy> > 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:[EMAIL PROTECTED] > >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 <[EMAIL PROTECTED]> wrote: > > > > > > > >>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: > >> > >><copy ...> > >> <mapper> > >> <chainedmapper> > >> <flattenmapper /> > >> </chainedmapper> > >> </mapper> > >></copy> > >> > >>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: > >> > >><copy todir="${myProdDir}" verbose="true"> > >> <fileset dir="${myCVSDir}" /> > >> <mapper> > >> <chainedmapper> > >> <flattenmapper /> > >> <globmapper from="${myCVSDir}/*" > >>to="${myProdDir}" /> > >> </chainedmapper> > >> </mapper> > >></copy> > >> > >>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 > >> > >> > >> > >> > >--------------------------------------------------------------------- > > > > > >>To unsubscribe, e-mail: > >>[EMAIL PROTECTED] > >>For additional commands, e-mail: > >>[EMAIL PROTECTED] > >> > >> > >> > >> > > > > > > > === message truncated === __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]