On Mon, 28 Jul 2003, Knut Wannheden <[EMAIL PROTECTED]> wrote:

> I get the impression FileUtils#normalize(File) mimics the behaviour
> of File#getCanonicalFile().

To a certain extent, yes.

> But I suppose there's a good reason for not using that method

Symbolic links.

On Unix, getCanonicalPath will resolve the link and return the
absolute filename of the file you've linked to.  In most situations
this is not what we want.  Suppose a directory structure

A
|-> B
|-> C

for <fileset dir="A" includes="B/**"/>.  We want to include B, even if
it happens to be a symbolic link to C.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to