|
From: Leif M. <le...@ta...> - 2003-08-27 17:56:40
|
Bill,
Currently, there is no way to do what you are asking for, and
implementing it
would be a major change. I assume that you would want the timestamp value
to be updated whenever the Wrapper was restarted? As things are, all
property
values are evaluated at Wrapper startup.
One thought would be to define a set of pseudo environment variables
which
would let you do this:
-Xloggc:C:\Logs\%T_YEAR%%T_MONTH%%T_DAY%... or something like that.
It would be a little bit of a hack, but these could then be expanded at
the time the
command line is generated. The drawback would be that the tokens could only
be used in property values that are associated with the Java command
line. If
the feature goes in, I would like it do be able to be used in any property.
The individual tokens are being suggested rather than a simple
%TIMESTAMP% token to avoid future requests about wanting a slightly
different
format :-)
Anyway, I need to think about this more. Anyone else, feel free to
post if you
have any comments on how this could be best implemented.
Cheers,
Leif
Bill Littman wrote:
>I am looking to add a line similar to this to my wrapper.java.additional
>parameters:
>
>-Xloggc:C:\Logs\$timestamp$GC.log
>
>Where $timestamp$ will resolve to "20030827100123456" when it is
>performed on 27 Aug 2003, 10:01:23.456. I have control of the parsing of
>the file name that occurs later, so the actual format doesn't matter.
>Obviously it must contain only legal filename characters (currently this
>runs on Windows).
>
>Is there any way to do this in my wrapper config file?
>
>Thanks.
>
>
>
|