RE: reverse glob mapper pattern?

2002-09-23 Thread Jacob Kjome
Hi Bruce, Well, I stand corrected. What you are saying is right. However, you had it right before. I *don't* want to delete the sample.* files. They are the templates for the generated files. I must have been doing something weird. I swear that I tried the glob mapper in pretty much the

RE: reverse glob mapper pattern?

2002-09-23 Thread Diane Holt
Oh right -- I forgot you can do and's and or's and all that with the selectors stuff... just been away too long :( Jacob, you should give that a try -- if it works, it'll streamline things considerably (sorry I didn't think of it sooner... oh well, at least you know more Ant now, right? :) Diane

Re: reverse glob mapper pattern?

2002-09-23 Thread Jacob Kjome
Hi Bruce, You should probably go back and check out this whole thread. I had already tried what you suggest below. All that will do is select all files to delete. See Diane's responses to see why that can't work. Also see the solution I just posted. It really is the only way to do this, c

RE: reverse glob mapper pattern?

2002-09-23 Thread Bruce Atherton
At 11:33 AM 9/23/2002 -0700, Diane Holt wrote: >No, it selects it says it does -- namely, it selects only those files that >have an equivalent, as specified. It doesn't say it'll return *both* the >files that have an equivalent *and* the equivalent file(s) as well. Ok, perhaps I misunderstood th

Re: reverse glob mapper pattern?

2002-09-23 Thread Bruce Atherton
At 05:05 AM 9/21/2002 -0500, Jacob Kjome wrote: >Now what I'd like to do is set up a way to delete the files generated by >this copy. So, I need to find all files that have a corresponding >"sample.*" file and delete those. > >If I just use the following, it deletes the sample.* file, not the

Re[4]: reverse glob mapper pattern? (solution!)

2002-09-23 Thread Jacob Kjome
For the record, here is how I implemented the whole creation and deletion of * files which have a corresponding sample.* file (see attached text file) Thanks to Diane Holt, Dominique Devienne, and Stefan Bodewig for all the help! Jake

RE: Re[2]: reverse glob mapper pattern?

2002-09-23 Thread Dominique Devienne
cking to add a nested to all Task-deriving tasks: I'm not planning on wasting my breath on a lost cause... --DD -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 2:59 PM To: Ant Users List; Jacob Kjome Subject: Re: Re[2]: reverse glob ma

Re: Re[2]: reverse glob mapper pattern?

2002-09-23 Thread Diane Holt
--- Jacob Kjome <[EMAIL PROTECTED]> wrote: > However, now I have a problem that if this is run and > no * files exist, the "includes" attribute on the filesets inside > ends up being empty like includes="". When that happens, the > fileset selects *all* files as part of the fileset so the entire

Re[2]: reverse glob mapper pattern?

2002-09-23 Thread Jacob Kjome
Hello Diane, I've got things working with one more issue to solve. Stefan Bodewig pointed out that if I set the properties that have my directory locations using the "location" attribute rather than "value", Ant will turn it into a nice absolute path just like the fileset produces. Now the wo

RE: reverse glob mapper pattern?

2002-09-23 Thread Diane Holt
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > You'll also see that the selector selects the wrong files, No, it selects it says it does -- namely, it selects only those files that have an equivalent, as specified. It doesn't say it'll return *both* the files that have an equivalent *and* t

Re[2]: reverse glob mapper pattern?

2002-09-23 Thread Jacob Kjome
Hello Stefan, I think what Dominique means is that there should be a delete capability equivalent to the copy capability. for example... This copy... Should be equivalent to this de

RE: reverse glob mapper pattern?

2002-09-23 Thread Dominique Devienne
a deficiency of the selectors not being able to select the right files!?!? Did we miss something Bruce? Thanks, --DD -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 9:01 AM To: [EMAIL PROTECTED] Subject: Re: reverse glob mapper pattern?

Re: reverse glob mapper pattern?

2002-09-23 Thread Stefan Bodewig
On Mon, 23 Sep 2002, Dominique Devienne <[EMAIL PROTECTED]> wrote: > Shouldn't delete simply take a , as does I don't think so, what would you use it for? Isn't the selector (which accepts a ) all that is needed (sorry, I haven't followed the thread very closely)? Stefan -- To unsubscribe,

RE: reverse glob mapper pattern?

2002-09-23 Thread Dominique Devienne
ply take a , as does ??? --DD -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 1:58 AM To: [EMAIL PROTECTED] Subject: Re: reverse glob mapper pattern? On Mon, 23 Sep 2002, Jacob Kjome <[EMAIL PROTECTED]> wrote: > Turns out th

Re: reverse glob mapper pattern?

2002-09-22 Thread Stefan Bodewig
On Mon, 23 Sep 2002, Jacob Kjome <[EMAIL PROTECTED]> wrote: > Turns out that after some more clear thought and debugging that the > issue lies in the fact that the paths provided by the fileset are > cleaner than the ones defined by hand. For instance, here are my > variables used below: > > >

Re: reverse glob mapper pattern?

2002-09-22 Thread Jacob Kjome
Turns out that after some more clear thought and debugging that the issue lies in the fact that the paths provided by the fileset are cleaner than the ones defined by hand. For instance, here are my variables used below: So the physical result of these paths on my machine are: src.dir

Re: reverse glob mapper pattern?

2002-09-22 Thread Jacob Kjome
Hi Diane, Thanks for the response. However, I tried you example out and, though it seems like it *should* work the way you have it, there is something wrong. Here is what I am using:

Re: reverse glob mapper pattern?

2002-09-21 Thread Diane Holt
--- Jacob Kjome <[EMAIL PROTECTED]> wrote: > So, I need to find all files that have a corresponding > "sample.*" file and delete those. > > If I just use the following, it deletes the sample.* file, not the * > file which is the opposite of what I want... > [snip] > >

reverse glob mapper pattern?

2002-09-21 Thread Jacob Kjome
Hi, I use the following to copy sample.* files to *. for instance "sample.build.properties" would become "build.properties"... Now what I'd like to do is set up a way to de