You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mladen Turk <mt...@apache.org> on 2004/03/23 20:27:53 UTC
TC5 startup.bat shutdown.bat catalina.bat
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org