This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: user.dir property
- To: jsturm at sigma6 dot com (Jeff Sturm)
- Subject: Re: user.dir property
- From: Godmar Back <gback at cs dot utah dot edu>
- Date: Sun, 12 Mar 2000 18:50:37 -0700 (MST)
- Cc: krab at eos dot dk (Kresten Krab Thorup), java-discuss at sourceware dot cygnus dot com
Kresten, regarding chdir(), place your vote at:
http://developer.java.sun.com/developer/bugParade/bugs/4045688.html
Somewhat related is also:
http://developer.java.sun.com/developer/bugParade/bugs/4156278.html
As an aside, note that Mac's MRJ is said to honor changes in user.dir.
In my own project, I also honor it and I allow for a new user.dir
property to be passed to new processes.
Regarding Jeff's comment that
> System properties are set by the VM during initialization, and
> apparently never re-examined.
I believe this depends on the specific property. user.dir is not
reexamined because of the threading concerns you mentioned. But
others are: for instance, http.proxyHost and http.proxyPort are
examined every time a http URL is opened (as of 1.2). This allows
an application to prompt a user for their firewall/proxy host. Of
course, this is just a consequence of the (bad) decision to use user
properties to specify the http proxy, but I think it shows that
there are no "rules" as far as properties are concerned. Sun's just
making it up as they go.
- Godmar