From: markspace on
Arne Vajh�j wrote:

> The above link says:
>
> "%h" the value of the "user.home" system property
>
> so it is OS home directory.


getProperties() says it's the user's home directory, which doesn't
really say the same thing as the OS home directory, to me at least. Typo?

<http://java.sun.com/javase/6/docs/api/java/lang/System.html#getProperties()>

"user.home User's home directory"
From: Lew on
Arne Vajhøj wrote:
>> The above link says:
>>
>> "%h" the value of the "user.home" system property
>>
>> so it is OS home directory.

markspace wrote:
> getProperties() says it's the user's home directory, which doesn't
> really say the same thing as the OS home directory, to me at least. Typo?

Is there a difference?

> <http://java.sun.com/javase/6/docs/api/java/lang/System.html#getProperties()>
>
>
> "user.home User's home directory"

For user name "lewbloch",
on Linux the home directory, and thus the Java system property
"user.home", is "/home/lewbloch".

On Windows it's
"C:\Documents and Settings\lewbloch".

--
Lew
From: markspace on
Lew wrote:

> On Windows it's
> "C:\Documents and Settings\lewbloch".
>


To me, the "OS home directory" on windows is C:\Windows (drive letter
may vary). I think I see what you an Arne are saying, it's just that
the phrase "OS home directory" struck me as something different, and I
thought I'd clear up any possibility of confusion.

I guess my answer to "Is there a difference?" is that yes, the two
phrases are certainly different ("OS home" vs. "user's home") and could
be construed to mean different things.

From: Lew on
markspace wrote:
> To me, the "OS home directory" on windows is C:\Windows (drive letter
> may vary). I think I see what you an Arne are saying, it's just that
> the phrase "OS home directory" struck me as something different, and I
> thought I'd clear up any possibility of confusion.

This is the first time in my decades in the profession I've heard the phrase
"OS home directory", and certainly the first I've heard "C:\Windows" referred
to as any kind of "home" directory. I have only ever heard "home directory"
used as defined in
<http://en.wikipedia.org/wiki/Home_directory>

> I guess my answer to "Is there a difference?" is that yes, the two
> phrases are certainly different ("OS home" vs. "user's home") and could
> be construed to mean different things.

Your usage is idiolectic.

--
Lew
From: Rhino on
markspace <nospam(a)nowhere.com> wrote in
news:hr9o2o$dg3$1(a)news.eternal-september.org:

> Rhino wrote:
>
>> The comment above that line says only that the "default file output
>> in the user's home directory"
>
> User's home directory! Like /usr/rhino or C:\Users\Rhino or
> /home/rhino.

Thank you! I wasn't clear if this was an OS home directory or a Jaav home
directory (or some other kind of home directory). You got me going in the
right direction.

As it turns out, the variables in the pattern are described in the
FileHandler API. This tells me that %h represents the Java system property
"user.home", which is c:\Documents and Settings\Rhino in my case. (I'm just
adding this information in case anyone down the road has the same issue.)

I couldn't for the life of me remember where the variables in the pattern
were documented and was disappointed to find the meanings not mentioned in
the logging.properties file itself. Second best would have been a note in
logging.properties telling me to look in the FileHandler API.

Thanks again!

--
Rhino