Hi,

I have some problems with the applications that rely on java.io.tmpdir.
The reason is that the startup set the java.io.tmpdir to CATALINA_TMPDIR,
and
that is "..\temp".
So each application looses the system temp dir, and it's quite random.

I propose to use the absolute paths for startup, even have a solution, but
would
like to here if there is any particular reasons not to use the absolute
paths, befor any commits.

Here is the snapshot for startup.bat that I propose:

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%CURRENT_DIR%
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
cd ..
set CATALINA_HOME=%cd%
cd CURRENT_DIR
:gotHome
...

So instead setting to "." or ".." I'm using %cd% to obtain current
directory.
This is basically the same code that I've used for service.bat

Didn't test on DOS machines, just NT (but did using command.com).

MT.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to