|
From: Leif M. <le...@ta...> - 2004-04-08 04:04:45
|
Scott, >Sorry if this is in the docs, I've been reading them >and the issue of the PATH separator is noticibly absent. > > In most places this issue is worked around by defining multiple classpath entries for example. There is no way to do this in 3.0.5. I just modified the Wrapper so that it now defines a new pair of environment variables on startup. WRAPPER_FILE_SEPARATOR is set to either '/' or '\' and WRAPPER_PATH_SEPARATOR is set to either ':' or ';' depending on the platform. This will be in version 3.1.0. You can make use of it in the wrapper.conf as follows: set.PATH=..%WRAPPER_FILE_SEPARATOR%lib%WRAPPER_PATH_SEPARATOR%%PATH% Which resolves to: Windows: set.PATH=..\lib;%PATH% UNIX: set.PATH=../lib:%PATH% The names are long but they should avoid any conflicts. If you need to use them a lot in your config file, you can do something like the following: set.FS=%WRAPPER_FILE_SEPARATOR% set.PS=%WRAPPER_PATH_SEPARATOR% set.PATH=..%FS%lib%PS%%PATH% >Sourceforge isn't allowing the user list to be searched right >now... > > It does that from time to time. It usually starts working again within a day or so. >I need to set the PATH of the executing process to include >a specific directory where some native libraries will be >loaded from. This is necessary because one library that >is loaded directly from Java code references other libraries >that subsequently cannot be found if they are not in the >PATH. i.e. setting java.library.path isn't enough. > >I want to do this: > >set.PATH=%PATH%;%MYAPP_HOME%/lib > >Does the Windows ';' path separator get translated correctly >on UNIX systems to a ':'? > > Cheers, Leif |