ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r180304 - in /webservices/axis/trunk/java/modules/samples/script: amazonQS/run.bat googleSearch/run.bat googleSpellcheck/run.bat
Date Mon, 06 Jun 2005 12:28:24 GMT
Author: ajith
Date: Mon Jun  6 05:28:23 2005
New Revision: 180304

URL: http://svn.apache.org/viewcvs?rev=180304&view=rev
Log:
Modified the batch files to guess the AXIS_HOME when it is not present 

Modified:
    webservices/axis/trunk/java/modules/samples/script/amazonQS/run.bat
    webservices/axis/trunk/java/modules/samples/script/googleSearch/run.bat
    webservices/axis/trunk/java/modules/samples/script/googleSpellcheck/run.bat

Modified: webservices/axis/trunk/java/modules/samples/script/amazonQS/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/script/amazonQS/run.bat?rev=180304&r1=180303&r2=180304&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/script/amazonQS/run.bat (original)
+++ webservices/axis/trunk/java/modules/samples/script/amazonQS/run.bat Mon Jun  6 05:28:23
2005
@@ -4,12 +4,16 @@
 rem
 rem ---------------------------------------------------------------------------
 
+rem store the current directory
+set CURRENT_DIR=%cd%
+
 rem check the AXIS_HOME environment variable
 if not "%AXIS_HOME%" == "" goto gotHome
-echo The AXIS_HOME environment variable is not defined correctly
-echo This environment variable is needed to run this program
-pause
-exit
+
+rem guess the home. Jump two directories up nad take that as the home
+cd ..
+cd ..
+set AXIS_HOME=%cd%
 
 :gotHome
 if EXIST "%AXIS_HOME%\lib\axis2-M2.jar" goto okHome
@@ -19,9 +23,10 @@
 exit
 
 :okHome
+cd %CURRENT_DIR%
 rem get the classes for the simple axis server
 set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-M2.jar";"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar";"%AXIS_HOME%\lib\commons-logging-1.0.3.jar";"%AXIS_HOME%\lib\log4j-1.2.8.jar";"%AXIS_HOME%\lib\stax-1.1.1-dev.jar";"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;.\amazonQS.jar
+set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\amazonQS.jar"
 start javaw -cp %AXIS2_CLASS_PATH% sample.amazon.amazonSimpleQueueService.RunGUICQ
 start javaw -cp %AXIS2_CLASS_PATH% sample.amazon.amazonSimpleQueueService.RunGUIRQ
 :end

Modified: webservices/axis/trunk/java/modules/samples/script/googleSearch/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/script/googleSearch/run.bat?rev=180304&r1=180303&r2=180304&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/script/googleSearch/run.bat (original)
+++ webservices/axis/trunk/java/modules/samples/script/googleSearch/run.bat Mon Jun  6 05:28:23
2005
@@ -4,12 +4,18 @@
 rem
 rem ---------------------------------------------------------------------------
 
+rem store the current directory
+set CURRENT_DIR=%cd%
+
 rem check the AXIS_HOME environment variable
 if not "%AXIS_HOME%" == "" goto gotHome
-echo The AXIS_HOME environment variable is not defined correctly
-echo This environment variable is needed to run this program
-pause
-exit
+
+rem guess the home. Jump two directories up nad take that as the home
+cd ..
+cd ..
+set AXIS_HOME=%cd%
+
+echo using Axis Home %AXIS_HOME%
 
 :gotHome
 if EXIST "%AXIS_HOME%\lib\axis2-M2.jar" goto okHome
@@ -20,8 +26,9 @@
 
 :okHome
 rem set the classes
+cd %CURRENT_DIR%
 set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-M2.jar";"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar";"%AXIS_HOME%\lib\commons-logging-1.0.3.jar";"%AXIS_HOME%\lib\log4j-1.2.8.jar";"%AXIS_HOME%\lib\stax-1.1.1-dev.jar";"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;.\googleSearch.jar
-javaw -cp %AXIS2_CLASS_PATH% sample.google.search.AsynchronousClient
+set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\googleSearch.jar"
+start javaw -cp %AXIS2_CLASS_PATH% sample.google.search.AsynchronousClient
 
 :end

Modified: webservices/axis/trunk/java/modules/samples/script/googleSpellcheck/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/script/googleSpellcheck/run.bat?rev=180304&r1=180303&r2=180304&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/script/googleSpellcheck/run.bat (original)
+++ webservices/axis/trunk/java/modules/samples/script/googleSpellcheck/run.bat Mon Jun  6
05:28:23 2005
@@ -4,12 +4,19 @@
 rem
 rem ---------------------------------------------------------------------------
 
+rem store the current directory
+set CURRENT_DIR=%cd%
+
 rem check the AXIS_HOME environment variable
 if not "%AXIS_HOME%" == "" goto gotHome
-echo The AXIS_HOME environment variable is not set!
-echo This environment variable is needed to run this program
-pause
-exit
+
+rem guess the home. Jump two directories up nad take that as the home
+cd ..
+cd ..
+set AXIS_HOME=%cd%
+
+echo using Axis Home %AXIS_HOME%
+
 
 :gotHome
 if EXIST "%AXIS_HOME%\lib\axis2-M2.jar" goto okHome
@@ -19,9 +26,10 @@
 exit
 
 :okHome
-rem get the classes for the simple axis server
+cd %CURRENT_DIR%
+rem get the classes
 set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-M2.jar";"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar";"%AXIS_HOME%\lib\commons-logging-1.0.3.jar";"%AXIS_HOME%\lib\log4j-1.2.8.jar";"%AXIS_HOME%\lib\stax-1.1.1-dev.jar";"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;.\googleSpellcheck.jar
-javaw -cp %AXIS2_CLASS_PATH% sample.google.spellcheck.SuggestionForm
+set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\googleSpellcheck.jar"
+start javaw -cp %AXIS2_CLASS_PATH% sample.google.spellcheck.SuggestionForm
 
 :end



Mime
View raw message