svn commit r9366 - in trunk/esb/java/modules: distribution/src/main/assembly distribution/src/main/bin samples/src/main/scripts

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r9366 - in trunk/esb/java/modules: distribution/src/main/assembly distribution/src/main/bin samples/src/main/scripts

svn-9
Author: indika
Date: Thu Nov  1 00:43:18 2007
New Revision: 9366

Added:
   trunk/esb/java/modules/distribution/src/main/bin/run-wso2-esb-service.bat
Modified:
   trunk/esb/java/modules/distribution/src/main/assembly/bin.xml
   trunk/esb/java/modules/samples/src/main/scripts/axis2server.bat
Log:
add batch script that used java service wrapper to run esb in windows .
now the problem "input line too long" doed not occur even esb run from
any long path


Modified: trunk/esb/java/modules/distribution/src/main/assembly/bin.xml
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/assembly/bin.xml (original)
+++ trunk/esb/java/modules/distribution/src/main/assembly/bin.xml Thu Nov  1 00:43:18 2007
@@ -59,6 +59,13 @@
             <directory>src/main/bin</directory>
             <outputDirectory>wso2esb-${wso2.esb.version}/bin</outputDirectory>
             <includes>
+                <include>run-wso2-esb-service.bat</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/bin</directory>
+            <outputDirectory>wso2esb-${wso2.esb.version}/bin</outputDirectory>
+            <includes>
                 <include>wso2-esb-daemon.sh</include>
             </includes>
             <fileMode>755</fileMode>

Added: trunk/esb/java/modules/distribution/src/main/bin/run-wso2-esb-service.bat
==============================================================================
--- (empty file)
+++ trunk/esb/java/modules/distribution/src/main/bin/run-wso2-esb-service.bat Thu Nov  1 00:43:18 2007
@@ -0,0 +1,56 @@
+@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_DIR=%_REALPATH%bin\native\
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-32.exe
+if exist "%_WRAPPER_EXE%" goto conf
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_WRAPPER_BASE%-windows-x86-64.exe
+if exist "%_WRAPPER_EXE%" goto conf
+set _WRAPPER_EXE=%_WRAPPER_DIR%%_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%webapp\WEB-INF\classes\conf\wrapper.conf"
+
+rem
+rem Start the Wrapper
+rem
+:startup
+"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
+if not errorlevel 1 goto :eof
+pause
+

Modified: trunk/esb/java/modules/samples/src/main/scripts/axis2server.bat
==============================================================================
--- trunk/esb/java/modules/samples/src/main/scripts/axis2server.bat (original)
+++ trunk/esb/java/modules/samples/src/main/scripts/axis2server.bat Thu Nov  1 00:43:18 2007
@@ -88,8 +88,8 @@
 :runAxis2
 rem set the classes by looping through the libs
 setlocal EnableDelayedExpansion
-set AXIS2_CLASS_PATH=%AXIS2_HOME%/../../webapp/WEB-INF/classes/conf;%AXIS2_HOME%/../../repository/conf
-FOR %%c in ("%AXIS2_HOME%\..\..\webapp\WEB-INF\lib\*.jar") DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
+set AXIS2_CLASS_PATH="%AXIS2_HOME%/../../webapp/WEB-INF/classes/conf"
+FOR %%C in ("%AXIS2_HOME%\..\..\webapp\WEB-INF\lib\*.jar") DO set AXIS2_CLASS_PATH="%%~fC";!AXIS2_CLASS_PATH!
 
 rem use proper bouncy castle version for the JDK
 
@@ -122,3 +122,4 @@
 if "%OS%"=="WINNT" @endlocal
 
 :mainEnd
+

_______________________________________________
Esb-java-dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev