|
From: Leif M. <le...@ta...> - 2006-04-10 02:13:14
|
Patrick,
Thanks for pointing this out. It is a known problem that has
already been fixed for
the next release. I sent out a note about this a few days after the
3.2.0 release.
https://sourceforge.net/mailarchive/message.php?msg_id=15098035
It doesn't look like the patched files can be downloaded from the
archive.
I'll append the contents of src\bin\App.bat.in The other batch files
need the same
patch:
Replace:
----
set _WRAPPER_BASE=wrapper
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
if exist %_WRAPPER_EXE% goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
if exist %_WRAPPER_EXE% goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
if exist %_WRAPPER_EXE% goto conf
echo Unable to locate a Wrapper executable using any of the following names:
----
With:
----
set _WRAPPER_BASE=wrapper
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
if exist "%_WRAPPER_EXE%" goto conf
set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe
if exist "%_WRAPPER_EXE%" goto conf
echo Unable to locate a Wrapper executable using any of the following names:
----
Cheers,
Leif
Patrick Kimber wrote:
> Hi
>
> Our application, which is based on the Java Service Wrapper, is installed to:
> C:\Program Files\app-name\bin\
>
> We are using the wrapper-delta-pack-3.2.0
>
> The Windows batch files, including InstallTestWrapper-NT.bat,
> UninstallTestWrapper-NT.bat and TestWrapper.bat, fail with the
> following message:
>
> Unable to locate a Wrapper executable using any of the following names:
> C:\Program Files\app-name\bin\wrapper-windows-x86-32.exe
> C:\Program Files\app-name\bin\wrapper-windows-x86-64.exe
> C:\Program Files\app-name\bin\wrapper.exe
>
> This is because the path contains spaces and the batch files do not
> enclose the path to the wrapper exe file in quotes when checking to
> see if it exists.
>
> e.g.
> if exist %_WRAPPER_EXE% goto conf
>
> can be made to work on a path with spaces by enclosing the variable in quotes:
> if exist "%_WRAPPER_EXE%" goto conf
>
> Is this how we should solve the problem. Will the batch files be
> updated for the next release?
>
> Thanks for your help. The wrapper is excellent. We are very happy with it.
>
> Patrick
>
|