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:21:12 GMT
Great! Just counter-intuitive... I think it's just me who's having a hard
time grasping the mappers. Part of there complexities is compounded by the
fact that most of the time they work on pathnames, without _understanding_
them in the sense that a regex matcher will consider / and \ differently,
yielding many support questions. Regex for path should be normalized somehow
prior to attempting the match. --DD

-----Original Message-----
From: Stefan Bodewig [] 
Sent: Thursday, December 12, 2002 10:15 AM
Subject: Re: uptodate question

On Thu, 12 Dec 2002, Dominique Devienne <> wrote:

>  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'???

Well, SourceFileScanner does a FileUtils.resolveFile() on whatever
mapper returns - this is guaranteed to return an absolute path and
deas with absolute paths as input quite well.


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

View raw message