ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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 [mailto:bodewig@apache.org] 
Sent: Thursday, December 12, 2002 10:15 AM
To: ant-user@jakarta.apache.org
Subject: Re: uptodate question

On Thu, 12 Dec 2002, Dominique Devienne <DDevienne@lgc.com> 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,
> mapper.map(relativePath))... 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.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message