Index: win_installer/license.txt =================================================================== diff -u -re420d9f8c97675897d82300852e15070f8e9075e -rba851477b36b600608b519b7d918c3017f49b31b --- win_installer/license.txt (.../license.txt) (revision e420d9f8c97675897d82300852e15070f8e9075e) +++ win_installer/license.txt (.../license.txt) (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -4,6 +4,7 @@ Library/Package License -------------------------------------------------------------------------------- +wrapper.jar Silver Egg Techology License (see license-wrapper.txt) antlr.jar BSD Antlr 3 License axis-ant.jar Apache License 2.0 axis.jar Apache License 2.0 Index: win_installer/src/installer.nsi =================================================================== diff -u -r5a32debc7329a296de123b804b86f926c2981d20 -rba851477b36b600608b519b7d918c3017f49b31b --- win_installer/src/installer.nsi (.../installer.nsi) (revision 5a32debc7329a296de123b804b86f926c2981d20) +++ win_installer/src/installer.nsi (.../installer.nsi) (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -241,12 +241,12 @@ Section "Install as Service" service SectionIn RO SetOutPath "$INSTDIR\jboss-4.0.2\bin" - File /a "..\wrapper-windows-x86-32-3.2.1\bin\wrapper.exe" - File /a "/oname=$INSTDIR\jboss-4.0.2\bin\InstallLAMS-NT.bat" "..\wrapper-windows-x86-32-3.2.1\bin\InstallTestWrapper-NT.bat" - File /a "/oname=$INSTDIR\jboss-4.0.2\bin\UninstallLAMS-NT.bat" "..\wrapper-windows-x86-32-3.2.1\bin\UninstallTestWrapper-NT.bat" + File /a "..\wrapper-windows-x86-32-3.2.3\bin\wrapper.exe" + File /a "/oname=$INSTDIR\jboss-4.0.2\bin\InstallLAMS-NT.bat" "..\wrapper-windows-x86-32-3.2.3\bin\InstallTestWrapper-NT.bat" + File /a "/oname=$INSTDIR\jboss-4.0.2\bin\UninstallLAMS-NT.bat" "..\wrapper-windows-x86-32-3.2.3\bin\UninstallTestWrapper-NT.bat" SetOutPath "$INSTDIR\jboss-4.0.2\lib" - File /a "..\wrapper-windows-x86-32-3.2.1\lib\wrapper.dll" - File /a "..\wrapper-windows-x86-32-3.2.1\lib\wrapper.jar" + File /a "..\wrapper-windows-x86-32-3.2.3\lib\wrapper.dll" + File /a "..\wrapper-windows-x86-32-3.2.3\lib\wrapper.jar" CreateDirectory "$INSTDIR\jboss-4.0.2\conf" CopyFiles "$INSTDIR\wrapper.conf" "$INSTDIR\jboss-4.0.2\conf\wrapper.conf" CreateDirectory "$INSTDIR\jboss-4.0.2\logs" Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/InstallTestWrapper-NT.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/InstallTestWrapper-NT.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/InstallTestWrapper-NT.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service install script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Install the Wrapper as an NT service. +rem +:startup +"%_WRAPPER_EXE%" -i %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/PauseTestWrapper-NT.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/PauseTestWrapper-NT.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/PauseTestWrapper-NT.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service start script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -a %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/ResumeTestWrapper-NT.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/ResumeTestWrapper-NT.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/ResumeTestWrapper-NT.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service start script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -e %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/StartTestWrapper-NT.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/StartTestWrapper-NT.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/StartTestWrapper-NT.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service start script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -t %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/StopTestWrapper-NT.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/StopTestWrapper-NT.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/StopTestWrapper-NT.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service stop script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Stop the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -p %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/TestWrapper.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/TestWrapper.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/TestWrapper.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,55 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general startup script +rem + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper +rem +:startup +"%_WRAPPER_EXE%" -c %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/TestWrapperNoWrapper.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/TestWrapperNoWrapper.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/TestWrapperNoWrapper.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,12 @@ +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem This script is an example of how to run your application without the Wrapper, but with the +rem Wrapper helper classes. You can obtain the actual command generated by the wrapper for +rem your application by running the Wrapper with the wrapper.java.command.loglevel=INFO +rem property set. +rem +rem The wrapper.key property MUST be removed from the resulting command or it will fail to +rem run correctly. +rem +java -Xms16m -Xmx64m -Djava.library.path="../lib" -Djava.class.path="../lib/wrapper.jar;../lib/wrappertest.jar" -Dwrapper.native_library="wrapper" -Dwrapper.debug="TRUE" org.tanukisoftware.wrapper.test.Main + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/UninstallTestWrapper-NT.bat =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/bin/UninstallTestWrapper-NT.bat (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/bin/UninstallTestWrapper-NT.bat (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service uninstall script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Uninstall the Wrapper as an NT service. +rem +:startup +"%_WRAPPER_EXE%" -r %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/bin/wrapper.exe =================================================================== diff -u Binary files differ Index: win_installer/wrapper-windows-x86-32-3.2.3/lib/wrapper.dll =================================================================== diff -u Binary files differ Index: win_installer/wrapper-windows-x86-32-3.2.3/lib/wrapper.jar =================================================================== diff -u Binary files differ Index: win_installer/wrapper-windows-x86-32-3.2.3/lib/wrappertest.jar =================================================================== diff -u Binary files differ Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/App.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/App.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/App.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,55 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general startup script +rem + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper +rem +:startup +"%_WRAPPER_EXE%" -c %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/AppCommand.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/AppCommand.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/AppCommand.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,97 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper command based script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +set _WRAPPER_BASE=wrapper +set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +if exist "%_WRAPPER_EXE%" goto validate +set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +if exist "%_WRAPPER_EXE%" goto validate +set _WRAPPER_EXE=%_REALPATH%%_WRAPPER_BASE%.exe +if exist "%_WRAPPER_EXE%" goto validate +echo Unable to locate a Wrapper executable using any of the following names: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +:validate +rem Find the requested command. +for /F %%v in ('echo %1^|findstr "^console$ ^start$ ^pause$ ^resume$ ^stop$ ^restart$ ^install$ ^remove"') do call :exec set COMMAND=%%v + +if "%COMMAND%" == "" ( + echo Usage: %0 { console : start : pause : resume : stop : restart : install : remove } + pause + goto :eof +) else ( + shift +) + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Run the application. +rem At runtime, the current directory will be that of wrapper.exe +rem +call :%COMMAND% +if errorlevel 1 pause +goto :eof + +:console +"%_WRAPPER_EXE%" -c %_WRAPPER_CONF% +goto :eof + +:start +"%_WRAPPER_EXE%" -t %_WRAPPER_CONF% +goto :eof + +:pause +"%_WRAPPER_EXE%" -a %_WRAPPER_CONF% +goto :eof + +:resume +"%_WRAPPER_EXE%" -e %_WRAPPER_CONF% +goto :eof + +:stop +"%_WRAPPER_EXE%" -p %_WRAPPER_CONF% +goto :eof + +:install +"%_WRAPPER_EXE%" -i %_WRAPPER_CONF% +goto :eof + +:remove +"%_WRAPPER_EXE%" -r %_WRAPPER_CONF% +goto :eof + +:restart +call :stop +call :start +goto :eof + +:exec +%* +goto :eof + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/AppNoWrapper.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/AppNoWrapper.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/AppNoWrapper.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,12 @@ +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem This script is an example of how to run your application without the Wrapper, but with the +rem Wrapper helper classes. You can obtain the actual command generated by the wrapper for +rem your application by running the Wrapper with the wrapper.java.command.loglevel=INFO +rem property set. +rem +rem The wrapper.key property MUST be removed from the resulting command or it will fail to +rem run correctly. +rem +java -Xms16m -Xmx64m -Djava.library.path="../lib" -Djava.class.path="../lib/wrapper.jar;../lib/wrappertest.jar" -Dwrapper.native_library="wrapper" -Dwrapper.debug="TRUE" org.tanukisoftware.wrapper.test.Main + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/InstallApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/InstallApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/InstallApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service install script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Install the Wrapper as an NT service. +rem +:startup +"%_WRAPPER_EXE%" -i %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/PauseApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/PauseApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/PauseApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service start script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -a %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/ResumeApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/ResumeApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/ResumeApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service start script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -e %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleApp.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleApp.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleApp.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,15 @@ +@echo off + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. + +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="@app.home@\conf\wrapper.conf" + +:startup +"@app.home@\bin\wrapper.exe" -c %_WRAPPER_CONF% +if not errorlevel 1 goto end +pause + +:end +set _WRAPPER_CONF= Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleInstallApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleInstallApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleInstallApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,15 @@ +@echo off + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. + +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="@app.home@\conf\wrapper.conf" + +:startup +"@app.home@\bin\wrapper.exe" -i %_WRAPPER_CONF% +if not errorlevel 1 goto end +pause + +:end +set _WRAPPER_CONF= Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleUninstallApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleUninstallApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/SimpleUninstallApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,15 @@ +@echo off + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. + +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="@app.home@\conf\wrapper.conf" + +:startup +"@app.home@\bin\wrapper.exe" -r %_WRAPPER_CONF% +if not errorlevel 1 goto end +pause + +:end +set _WRAPPER_CONF= Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/StartApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/StartApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/StartApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service start script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Start the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -t %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/StopApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/StopApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/StopApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service stop script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Stop the Wrapper NT service. +rem +:startup +"%_WRAPPER_EXE%" -p %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/bin/UninstallApp-NT.bat.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/bin/UninstallApp-NT.bat.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/bin/UninstallApp-NT.bat.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,50 @@ +@echo off +setlocal + +rem Copyright (c) 1999, 2006 Tanuki Software Inc. +rem +rem Java Service Wrapper general NT service uninstall script +rem + +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem +rem Find the application home. +rem +rem %~dp0 is location of current script under NT +set _REALPATH=%~dp0 + +rem Decide on the wrapper binary. +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: +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe +echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe +echo %_REALPATH%%_WRAPPER_BASE%.exe +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +set _WRAPPER_CONF="%~f1" +if not %_WRAPPER_CONF%=="" goto startup +set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf" + +rem +rem Uninstall the Wrapper as an NT service. +rem +:startup +"%_WRAPPER_EXE%" -r %_WRAPPER_CONF% +if not errorlevel 1 goto :eof +pause + Index: win_installer/wrapper-windows-x86-32-3.2.3/src/conf/wrapper.conf.in =================================================================== diff -u --- win_installer/wrapper-windows-x86-32-3.2.3/src/conf/wrapper.conf.in (revision 0) +++ win_installer/wrapper-windows-x86-32-3.2.3/src/conf/wrapper.conf.in (revision ba851477b36b600608b519b7d918c3017f49b31b) @@ -0,0 +1,94 @@ +#******************************************************************** +# Wrapper Properties +#******************************************************************** +# Java Application +wrapper.java.command=java + +# Java Main class. This class must implement the WrapperListener interface +# or guarantee that the WrapperManager class is initialized. Helper +# classes are provided to do this for you. See the Integration section +# of the documentation for details. +wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp + +# Java Classpath (include wrapper.jar) Add class path elements as +# needed starting from 1 +wrapper.java.classpath.1=../lib/wrapper.jar + +# Java Library Path (location of Wrapper.DLL or libwrapper.so) +wrapper.java.library.path.1=../lib + +# Java Additional Parameters +#wrapper.java.additional.1= + +# Initial Java Heap Size (in MB) +#wrapper.java.initmemory=3 + +# Maximum Java Heap Size (in MB) +#wrapper.java.maxmemory=64 + +# Application parameters. Add parameters as needed starting from 1 +wrapper.app.parameter.1= + +#******************************************************************** +# Wrapper Logging Properties +#******************************************************************** +# Format of output for the console. (See docs for formats) +wrapper.console.format=PM + +# Log Level for console output. (See docs for log levels) +wrapper.console.loglevel=INFO + +# Log file to use for wrapper output logging. +wrapper.logfile=../logs/wrapper.log + +# Format of output for the log file. (See docs for formats) +wrapper.logfile.format=LPTM + +# Log Level for log file output. (See docs for log levels) +wrapper.logfile.loglevel=INFO + +# Maximum size that the log file will be allowed to grow to before +# the log is rolled. Size is specified in bytes. The default value +# of 0, disables log rolling. May abbreviate with the 'k' (kb) or +# 'm' (mb) suffix. For example: 10m = 10 megabytes. +wrapper.logfile.maxsize=0 + +# Maximum number of rolled log files which will be allowed before old +# files are deleted. The default value of 0 implies no limit. +wrapper.logfile.maxfiles=0 + +# Log Level for sys/event log output. (See docs for log levels) +wrapper.syslog.loglevel=NONE + +#******************************************************************** +# Wrapper Windows Properties +#******************************************************************** +# Title to use when running as a console +wrapper.console.title=@app.long.name@ + +#******************************************************************** +# Wrapper Windows NT/2000/XP Service Properties +#******************************************************************** +# WARNING - Do not modify any of these properties when an application +# using this configuration file has been installed as a service. +# Please uninstall the service before modifying this section. The +# service can then be reinstalled. + +# Name of the service +wrapper.ntservice.name=@app.name@ + +# Display name of the service +wrapper.ntservice.displayname=@app.long.name@ + +# Description of the service +wrapper.ntservice.description=@app.description@ + +# Service dependencies. Add dependencies as needed starting from 1 +wrapper.ntservice.dependency.1= + +# Mode in which the service is installed. AUTO_START or DEMAND_START +wrapper.ntservice.starttype=AUTO_START + +# Allow the service to interact with the desktop. +wrapper.ntservice.interactive=false +