ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: uptodate question
Date Thu, 12 Dec 2002 16:04:19 GMT
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" />

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, 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 [] 
Sent: Thursday, December 12, 2002 5:22 AM
Subject: Re: uptodate question

On Thu, 12 Dec 2002, Michael Nascimento Santos <>

> 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).


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message