ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Converting ${user.dir} into a path relative to ${some.dir}
Date Wed, 02 Apr 2003 10:21:29 GMT
I did consider FileUtils#removeLeadingPath, but
if the subdir is not a sub dir of the base dir the
removeLeadingPath just returns the normalized path.
So I cut and pasted the code from removeLeadingPath :)
and got it to whine in that case.

Peter

On Wednesday 02 April 2003 11:56, Stefan Bodewig wrote:
> On Wed, 2 Apr 2003, peter reilly <peter.reilly@corvil.com> wrote:
> > Also there is some nice utility code in ant for handling
> > file names.
>
> FileUtils#removeLeadingPath may simplify your code even further. 8-)
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message