>> I ended up using >> >> <dirset dir="src" > >> <contains text="x.java" /> >> </dirset>
Sorry, but it turns out that it does NOT work. I originally thought that it did work because in my case the target of my <foreach> did not fail on directories that did not contain the file I was looking for. Unfortunately, my original question (how do you get a <dirset> of directories based on the presence of a file (or other directory) within that directory?) still stands. On October 28, 2003 6:06 PM, Dominique Devienne wrote: >> From: Adam Mlodzinski [mailto:[EMAIL PROTECTED] >> >>>> I can't figure out how to get a dirset of directories which contain >>>> a specific file. >> > > Whoa, I would never have thought of that! Actually 'reading' the content of the directory > file... I'm not sure it's very portable. Did you test that on more than one platform, like win32 > or MacOsX? I'm guessing it worked for you on a flavor of *nix!?!? --DD > > PS: I'd provide a 'better' solution if I had one... Not to deprecate your > solution in any way, which might turn out to be X-platform! > > --------------------------------------------------------------------- > 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]
