Kevin O'Neill wrote:
On Sat, 12 Jul 2003 00:27:16 -0400, Vadim Gritsenko wrote:

PS I don't know why user.dir is appended in the first place; I would
remove this completely.


Becuase on my unix system I want the default directory to be /home/<user>/
rather than the current vm directory. This is a good thing. Each user gets
their own data store unless they override (and the directories they talk
to have the correct permissions).

Kevin,

I guess you understand that resolution of relative paths against user.dir is at least surprising. In the operating system world, this is done against current working directory (never seen other OS yet). In xml world this is done relative to the file where path is mentioned.

In this particular scenario, when you launch a command line tool, all the people I know (including myself) assume relative path will be resolved against current working directory. That's why I made remark on removing this behavior.

If you like to append user.dir, you should follow way of substitution, i.e. by specifying in command line: $USER_HOME/relative/path. Or, ant-like: ${user.dir}/relative/path.

Hope now you do understand what I'm talking about.

Regards,
Vadim




Reply via email to