|
From: Leif M. <le...@ta...> - 2004-06-22 03:55:29
|
Johan,
It is not possible to reference Java system properties from within
the Wrapper
configuration file. The file has to be read and parsed long before the
JVM is ever
launched so this will not be possible.
In your particular case however, the java.io.tmpdir property simply
maps to the
the TEMP environment variable. So you can get the behavior you are
looking for
by doing the following:
wrapper.logfile=%TEMP%/wrapper.log
Note that on XP, the TEMP directory maps to something like:
C:\Documents and Settings\leif\Local Settings\Temp
(By the way if you have ever wondered where all of your hard disk
space was
going... Check this directory once in a while.... Various programs
seem to like
putting things here and then forgetting about them...)
Stuijt, Johan wrote:
> Hello,
>
>
>
> Is it possible to reference Java System Properties from within the
> wrapper configuration file just like you can reference Environment
> Variables?
>
> In this case it has to do with the location of the log-files for the
> wrapped java processes.
>
> The processes themselves write their logfiles in the directory given
> through Java System Property "java.io.tmpdir", and I want the wrapper
> logfile to end up in that same directory.
>
>
>
> Is it possible to change the logfile spec from within the running
> wrapped application?
>
> Example: WrapperManager.setLog(System.getProperty("java.io.tmpdir") +
> "/my_log.file");
>
>
>
> Am using wrapper 3.0.5. on Linux rh9 and Win2K.
>
>
>
> Thanks,
>
>
>
> Johan Stuijt
>
> Met vriendelijke groet,
> Johan Stuijt
> Application Engineer
> MES Expert Center
> Doorkiesnummer: 075 612 79 34
>
> *GTI Industrie Noordwest bv*
> * **Industrial Automation*
>
> * * Houthavenkade 44 1506 PD Zaandam
> * * Postbus 1377 1500 AJ Zaandam
> * * tel.: 075 612 76 00 fax: 075 612 30 60
> www.gti-group.com/ia <http://www.gti-group.com/ia>
>
>
>
|