You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aj...@apache.org on 2005/09/23 14:41:17 UTC
svn commit: r291112 - in /webservices/axis2/trunk/java/modules:
samples/script/amazonQS/ samples/script/googleSearch/
samples/script/googleSpellcheck/ samples/script/mtomSample/ samples/wsdl/
tool/script/
Author: ajith
Date: Fri Sep 23 05:41:01 2005
New Revision: 291112
URL: http://svn.apache.org/viewcvs?rev=291112&view=rev
Log:
1.Edited the bat files to form the class path from a loop. Now the bat files are 'version insensitive' :)
2.Commented out the echo void operation in the sample wsdl file. This operation causes a problem for the code generator
Modified:
webservices/axis2/trunk/java/modules/samples/script/amazonQS/run.bat
webservices/axis2/trunk/java/modules/samples/script/googleSearch/run.bat
webservices/axis2/trunk/java/modules/samples/script/googleSpellcheck/run.bat
webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat
webservices/axis2/trunk/java/modules/samples/wsdl/Axis2SampleDocLit.wsdl
webservices/axis2/trunk/java/modules/tool/script/WSDL2Code.bat
webservices/axis2/trunk/java/modules/tool/script/WSDL2Java.bat
webservices/axis2/trunk/java/modules/tool/script/http-server.bat
webservices/axis2/trunk/java/modules/tool/script/tcp-server.bat
Modified: webservices/axis2/trunk/java/modules/samples/script/amazonQS/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/script/amazonQS/run.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/amazonQS/run.bat (original)
+++ webservices/axis2/trunk/java/modules/samples/script/amazonQS/run.bat Fri Sep 23 05:41:01 2005
@@ -10,13 +10,13 @@
rem check the AXIS_HOME environment variable
if not "%AXIS_HOME%" == "" goto gotHome
-rem guess the home. Jump two directories up nad take that as the home
+rem guess the home. Jump two directories up and take that as the home
cd ..
cd ..
set AXIS_HOME=%cd%
:gotHome
-if EXIST "%AXIS_HOME%\lib\axis2-1.0-alpha.jar" goto okHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
echo The AXIS_HOME environment variable seems not to point to the correct location!
echo This environment variable is needed to run this program
pause
@@ -25,27 +25,16 @@
:okHome
rem set the classes
cd %CURRENT_DIR%
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\amazonQS.jar"
+setlocal EnableDelayedExpansion
+
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
+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
+
+endlocal
:end
Modified: webservices/axis2/trunk/java/modules/samples/script/googleSearch/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/script/googleSearch/run.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/googleSearch/run.bat (original)
+++ webservices/axis2/trunk/java/modules/samples/script/googleSearch/run.bat Fri Sep 23 05:41:01 2005
@@ -10,7 +10,7 @@
rem check the AXIS_HOME environment variable
if not "%AXIS_HOME%" == "" goto gotHome
-rem guess the home. Jump two directories up nad take that as the home
+rem guess the home. Jump two directories up and take that as the home
cd ..
cd ..
set AXIS_HOME=%cd%
@@ -18,7 +18,7 @@
echo using Axis Home %AXIS_HOME%
:gotHome
-if EXIST "%AXIS_HOME%\lib\axis2-1.0-alpha.jar" goto okHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
echo The AXIS_HOME environment variable seems not to point to the correct loaction!
echo This environment variable is needed to run this program
pause
@@ -27,26 +27,15 @@
:okHome
rem set the classes
cd %CURRENT_DIR%
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
+
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\googleSearch.jar"
+
start javaw -cp %AXIS2_CLASS_PATH% sample.google.search.AsynchronousClient
+
+endlocal
:end
Modified: webservices/axis2/trunk/java/modules/samples/script/googleSpellcheck/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/script/googleSpellcheck/run.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/googleSpellcheck/run.bat (original)
+++ webservices/axis2/trunk/java/modules/samples/script/googleSpellcheck/run.bat Fri Sep 23 05:41:01 2005
@@ -19,7 +19,7 @@
:gotHome
-if EXIST "%AXIS_HOME%\lib\axis2-1.0-alpha.jar" goto okHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
echo The AXIS_HOME environment variable seems not to point to the correct loaction!
echo This environment variable is needed to run this program
pause
@@ -27,30 +27,14 @@
:okHome
cd %CURRENT_DIR%
-rem get the classes
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\googleSpellcheck.jar"
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
-rem start javaw -cp %AXIS2_CLASS_PATH% sample.google.spellcheck.SuggestionForm
-java -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
+endlocal
:end
Modified: webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat (original)
+++ webservices/axis2/trunk/java/modules/samples/script/mtomSample/run.bat Fri Sep 23 05:41:01 2005
@@ -1,50 +1,33 @@
-@echo off
-rem ---------------------------------------------------------------------------
-rem Start script for running the MTOM Image Transfer Service
-rem
-rem ---------------------------------------------------------------------------
-
-rem store the current directory
-set CURRENT_DIR=%cd%
-
-rem check the AXIS_HOME environment variable
-if not "%AXIS_HOME%" == "" goto gotHome
-
-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-1.0-alpha.jar" goto okHome
-echo The AXIS_HOME environment variable seems not to point to the correct location!
+@echo of
+rem ---------------------------------------------------------------------------
+rem Start script for running the MTOM Image Transfer Service
+rem
+rem ---------------------------------------------------------------------------
+rem store the current directory
+set CURRENT_DIR=%cd%
+rem check the AXIS_HOME environment variable
+if not "%AXIS_HOME%" == "" goto gotHome
+rem guess the home. Jump two directories up and take that as the home
+cd ..
+cd ..
+set AXIS_HOME=%cd%
+
+:gotHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
+echo The AXIS_HOME environment variable seems not to point to the correct location!
echo This environment variable is needed to run this program
-pause
-exit
-
-:okHome
-rem set the classes
-cd %CURRENT_DIR%
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
-
-set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\mtomClient.jar"
-java -cp %AXIS2_CLASS_PATH% sample.mtom.imagetransfer.client.MTOMClient
+pause
+exit
+:okHome
+rem set the classes
+cd %CURRENT_DIR%
+
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
+set AXIS2_CLASS_PATH=%AXIS2_CLASS_PATH%;"%CURRENT_DIR%\mtomClient.jar"
+
+start javaw -cp %AXIS2_CLASS_PATH% sample.mtom.imagetransfer.client.MTOMClient
+endlocal
:end
Modified: webservices/axis2/trunk/java/modules/samples/wsdl/Axis2SampleDocLit.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/wsdl/Axis2SampleDocLit.wsdl?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/wsdl/Axis2SampleDocLit.wsdl (original)
+++ webservices/axis2/trunk/java/modules/samples/wsdl/Axis2SampleDocLit.wsdl Fri Sep 23 05:41:01 2005
@@ -57,8 +57,8 @@
<message name="echoStructResponse">
<part element="xsd1:echoStructReturn" name="result"/>
</message>
- <message name="echoVoid"/>
- <message name="echoVoidResponse"/>
+ <!--<message name="echoVoid"/>
+ <message name="echoVoidResponse"/>-->
<portType name="Axis2SampleDocLitPortType">
<operation name="echoString">
@@ -73,10 +73,10 @@
<input message="tns:echoStruct" name="echoStruct"/>
<output message="tns:echoStructResponse" name="echoStructResponse"/>
</operation>
- <operation name="echoVoid">
+ <!--<operation name="echoVoid">
<input message="tns:echoVoid" name="echoVoid"/>
<output message="tns:echoVoidResponse" name="echoVoidResponse"/>
- </operation>
+ </operation>-->
</portType>
<binding name="Axis2SampleDocLitPortBinding"
type="tns:Axis2SampleDocLitPortType">
@@ -114,7 +114,7 @@
use="literal"/>
</output>
</operation>
- <operation name="echoVoid">
+ <!--<operation name="echoVoid">
<soap:operation soapAction="echoVoid" style="rpc"/>
<input name="echoVoid">
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
@@ -124,7 +124,7 @@
<soap:body namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"
use="literal"/>
</output>
- </operation>
+ </operation>-->
</binding>
<service name="Axis2SampleDocLitService">
<port binding="tns:Axis2SampleDocLitPortBinding"
Modified: webservices/axis2/trunk/java/modules/tool/script/WSDL2Code.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/script/WSDL2Code.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/WSDL2Code.bat (original)
+++ webservices/axis2/trunk/java/modules/tool/script/WSDL2Code.bat Fri Sep 23 05:41:01 2005
@@ -17,7 +17,7 @@
set AXIS_HOME=%cd%
:gotHome
-if EXIST "%AXIS_HOME%\lib\axis2-1.0-alpha.jar" goto okHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
echo The AXIS_HOME environment variable seems not to point to the correct location!
echo This environment variable is needed to run this program
pause
@@ -25,27 +25,11 @@
:okHome
rem set the classes
-cd %CURRENT_DIR%
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
java -cp %AXIS2_CLASS_PATH% org.apache.axis2.wsdl.WSDL2Code %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+endlocal
:end
Modified: webservices/axis2/trunk/java/modules/tool/script/WSDL2Java.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/script/WSDL2Java.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/WSDL2Java.bat (original)
+++ webservices/axis2/trunk/java/modules/tool/script/WSDL2Java.bat Fri Sep 23 05:41:01 2005
@@ -17,7 +17,7 @@
set AXIS_HOME=%cd%
:gotHome
-if EXIST "%AXIS_HOME%\lib\axis2-1.0-alpha.jar" goto okHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
echo The AXIS_HOME environment variable seems not to point to the correct location!
echo This environment variable is needed to run this program
pause
@@ -25,27 +25,12 @@
:okHome
rem set the classes
-cd %CURRENT_DIR%
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
+rem run the command
java -cp %AXIS2_CLASS_PATH% org.apache.axis2.wsdl.WSDL2Java %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+endlocal
:end
Modified: webservices/axis2/trunk/java/modules/tool/script/http-server.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/script/http-server.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/http-server.bat (original)
+++ webservices/axis2/trunk/java/modules/tool/script/http-server.bat Fri Sep 23 05:41:01 2005
@@ -5,6 +5,11 @@
rem ---------------------------------------------------------------------------
rem get the classes for the simple axis server
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-0.91.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.2-dev.jar";"%AXIS_HOME%\lib\stax-api-1.0.jar";"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc3.jar";"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc3.jar";"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar";%AXIS_HOME%\lib\commons-codec-1.3.jar
+rem set the AXIS_HOME as the default classpath
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
java -cp %AXIS2_CLASS_PATH% org.apache.axis2.transport.http.SimpleHTTPServer %1 %2
+endlocal
\ No newline at end of file
Modified: webservices/axis2/trunk/java/modules/tool/script/tcp-server.bat
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/script/tcp-server.bat?rev=291112&r1=291111&r2=291112&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/tcp-server.bat (original)
+++ webservices/axis2/trunk/java/modules/tool/script/tcp-server.bat Fri Sep 23 05:41:01 2005
@@ -4,8 +4,11 @@
rem
rem ---------------------------------------------------------------------------
-rem store the current directory
-set CURRENT_DIR=%cd%
+rem get the classes for the simple axis server
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
rem check the AXIS_HOME environment variable
if not "%AXIS_HOME%" == "" goto gotHome
@@ -16,7 +19,7 @@
set AXIS_HOME=%cd%
:gotHome
-if EXIST "%AXIS_HOME%\lib\axis2-1.0-alpha.jar" goto okHome
+if EXIST "%AXIS_HOME%\lib\axis2*.jar" goto okHome
echo The AXIS_HOME environment variable seems not to point to the correct location!
echo This environment variable is needed to run this program
pause
@@ -25,24 +28,9 @@
:okHome
rem set the classes
cd %CURRENT_DIR%
-set AXIS2_CLASS_PATH="%AXIS_HOME%";"%AXIS_HOME%\lib\axis2-1.0-alpha.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\axis-wsdl4j-1.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-logging-1.0.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-1.1.2-dev.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\stax-api-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-activation-1.0.2-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-javamail-1.3.1-rc5.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xbean-2.0.0-beta1.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-httpclient-3.0-rc3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-codec-1.3.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\ant-1.6.2.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\commons-fileupload-1.0.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\geronimo-spec-servlet-2.4-rc4.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\groovy-all-1.0-jsr-01.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\jaxen-1.1-beta-7.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\log4j-1.2.8.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\XmlSchema-0.9.jar"
-set AXIS2_CLASS_PATH= %AXIS2_CLASS_PATH%;"%AXIS_HOME%\lib\xmlunit-1.0.jar"
-
+setlocal EnableDelayedExpansion
+rem loop through the libs and add them to the class path
+set AXIS2_CLASS_PATH=%AXIS_HOME%
+FOR %%c in (%AXIS_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c
java -cp %AXIS2_CLASS_PATH% org.apache.axis2.transport.tcp.TCPServer %1 %2
+endlocal