But it works, though, as I noticed... []s Michael
----- Original Message ----- From: "Dominique Devienne" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Thursday, December 12, 2002 2:04 PM Subject: RE: uptodate question > I also thought of this, but didn't like the .. either which required prior > knowledge of the relative relationship of ${src} and ${bkp}. > > <uptodate property="srcs.uptodate"> > <srcfiles dir="${src}" includes="**/*.java" /> > <mapper type="glob" from="*.java" to="../${bkp}/*.java" /> > </uptodate> > > But what you're saying about making ${bkp} absolute kind of surprises me. > The mapper is fed a relative path to the fileset's 'dir' (which is indeed > ${basedir} in this case ;-), and turns it into an absolute one? This would > fail with code like new File(dir, mapper.map(relativePath))... So the result > of the mapper is first checked to see if it's absolute, and if not prepended > with 'dir'??? > > Is this documented at all? I find it a little counter-intuitive. --DD > > -----Original Message----- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 5:22 AM > To: [EMAIL PROTECTED] > Subject: Re: uptodate question > > On Thu, 12 Dec 2002, Michael Nascimento Santos <[EMAIL PROTECTED]> > wrote: > > > Could anyone suggest a more portable solution that works no matter > > where ${src} and ${bkp} points to? Otherwise, I'll have to live with > > that... :-) > > Make ${bkp} an absolute path to start with (using <property>'s > location attribute). > > Stefan > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>