Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 19769 invoked from network); 20 Oct 2006 08:33:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2006 08:33:31 -0000 Received: (qmail 23479 invoked by uid 500); 20 Oct 2006 08:33:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 23372 invoked by uid 500); 20 Oct 2006 08:33:30 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 23361 invoked by uid 500); 20 Oct 2006 08:33:30 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 23358 invoked by uid 99); 20 Oct 2006 08:33:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 01:33:30 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 01:33:29 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 4B2661A981D; Fri, 20 Oct 2006 01:33:09 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r466034 - in /webservices/axis2/branches/java/1_1/modules/tool/script: axis2.bat simpleaxis2server.bat Date: Fri, 20 Oct 2006 08:33:08 -0000 To: axis2-cvs@ws.apache.org From: thilina@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061020083309.4B2661A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: thilina Date: Fri Oct 20 01:33:07 2006 New Revision: 466034 URL: http://svn.apache.org/viewvc?view=rev&rev=466034 Log: Fixing the two bat scripts to run in directories with their names seperated by spaces Modified: webservices/axis2/branches/java/1_1/modules/tool/script/axis2.bat webservices/axis2/branches/java/1_1/modules/tool/script/simpleaxis2server.bat Modified: webservices/axis2/branches/java/1_1/modules/tool/script/axis2.bat URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/script/axis2.bat?view=diff&rev=466034&r1=466033&r2=466034 ============================================================================== --- webservices/axis2/branches/java/1_1/modules/tool/script/axis2.bat (original) +++ webservices/axis2/branches/java/1_1/modules/tool/script/axis2.bat Fri Oct 20 01:33:07 2006 @@ -1,75 +1,76 @@ -@echo off - -REM Copyright 2001,2004-2006 The Apache Software Foundation -REM -REM Licensed under the Apache License, Version 2.0 (the "License"); -REM you may not use this file except in compliance with the License. -REM You may obtain a copy of the License at -REM -REM http://www.apache.org/licenses/LICENSE-2.0 -REM -REM Unless required by applicable law or agreed to in writing, software -REM distributed under the License is distributed on an "AS IS" BASIS, -REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -REM See the License for the specific language governing permissions and -REM limitations under the License. - -rem --------------------------------------------------------------------------- -rem Axis2 Script -rem -rem Environment Variable Prequisites -rem -rem AXIS2_HOME Must point at your AXIS2 directory -rem -rem JAVA_HOME Must point at your Java Development Kit installation. -rem -rem JAVA_OPTS (Optional) Java runtime options -rem --------------------------------------------------------------------------- -set CURRENT_DIR=%cd% - -rem Make sure prerequisite environment variables are set -if not "%JAVA_HOME%" == "" goto gotJavaHome -echo The JAVA_HOME environment variable is not defined -echo This environment variable is needed to run this program -goto end -:gotJavaHome -if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome -goto okJavaHome -:noJavaHome -echo The JAVA_HOME environment variable is not defined correctly -echo This environment variable is needed to run this program -echo NB: JAVA_HOME should point to a JDK/JRE -goto end -:okJavaHome - -rem check the AXIS2_HOME environment variable -if not "%AXIS2_HOME%" == "" goto gotHome -set AXIS2_HOME=%CURRENT_DIR% -if exist "%AXIS2_HOME%\bin\java2wsdl.bat" goto okHome - -rem guess the home. Jump one directory up to check if that is the home -cd .. -set AXIS2_HOME=%cd% -cd %CURRENT_DIR% - -:gotHome -if EXIST "%AXIS2_HOME%\lib\axis2*.jar" goto okHome -echo The AXIS2_HOME environment variable is not defined correctly -echo This environment variable is needed to run this program -goto end - -:okHome -rem set the classes -setlocal EnableDelayedExpansion -rem loop through the libs and add them to the class path -set AXIS2_CLASS_PATH=%AXIS2_HOME% -FOR %%c in ("%AXIS2_HOME%\lib\*.jar") DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c - -rem ----- Execute The Requested Command --------------------------------------- -echo Using AXIS2_HOME: %AXIS2_HOME% -echo Using JAVA_HOME: %JAVA_HOME% -set _RUNJAVA="%JAVA_HOME%\bin\java" - -%_RUNJAVA% %JAVA_OPTS% -cp "%AXIS2_CLASS_PATH%" -Daxis2.repo=%AXIS2_HOME%\repository -Daxis2.xml=%AXIS2_HOME%\conf\axis2.xml %* -endlocal -:end +@echo off + +REM Copyright 2001,2004-2006 The Apache Software Foundation +REM +REM Licensed under the Apache License, Version 2.0 (the "License"); +REM you may not use this file except in compliance with the License. +REM You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, software +REM distributed under the License is distributed on an "AS IS" BASIS, +REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +REM See the License for the specific language governing permissions and +REM limitations under the License. + +rem --------------------------------------------------------------------------- +rem Axis2 Script +rem +rem Environment Variable Prequisites +rem +rem AXIS2_HOME Must point at your AXIS2 directory +rem +rem JAVA_HOME Must point at your Java Development Kit installation. +rem +rem JAVA_OPTS (Optional) Java runtime options +rem --------------------------------------------------------------------------- +set CURRENT_DIR=%cd% + +rem Make sure prerequisite environment variables are set +if not "%JAVA_HOME%" == "" goto gotJavaHome +echo The JAVA_HOME environment variable is not defined +echo This environment variable is needed to run this program +goto end +:gotJavaHome +if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome +goto okJavaHome +:noJavaHome +echo The JAVA_HOME environment variable is not defined correctly +echo This environment variable is needed to run this program +echo NB: JAVA_HOME should point to a JDK/JRE +goto end +:okJavaHome + +rem check the AXIS2_HOME environment variable +if not "%AXIS2_HOME%" == "" goto gotHome +set AXIS2_HOME=%CURRENT_DIR% +if exist "%AXIS2_HOME%\bin\java2wsdl.bat" goto okHome + +rem guess the home. Jump one directory up to check if that is the home +cd .. +set AXIS2_HOME=%cd% +cd %CURRENT_DIR% + +:gotHome +if EXIST "%AXIS2_HOME%\lib\axis2*.jar" goto okHome +echo The AXIS2_HOME environment variable is not defined correctly +echo This environment variable is needed to run this program +goto end + +:okHome +rem set the classes +setlocal EnableDelayedExpansion +rem loop through the libs and add them to the class path +set AXIS2_CLASS_PATH=%AXIS2_HOME% +FOR %%c in ("%AXIS2_HOME%\lib\*.jar") DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c + +rem ----- Execute The Requested Command --------------------------------------- +echo Using AXIS2_HOME: %AXIS2_HOME% +echo Using JAVA_HOME: %JAVA_HOME% +echo %AXIS2_CLASS_PATH% +set _RUNJAVA="%JAVA_HOME%\bin\java" + +%_RUNJAVA% %JAVA_OPTS% -cp "%AXIS2_CLASS_PATH%" -Daxis2.repo="%AXIS2_HOME%\repository" -Daxis2.xml="%AXIS2_HOME%\conf\axis2.xml" %* +endlocal +:end Modified: webservices/axis2/branches/java/1_1/modules/tool/script/simpleaxis2server.bat URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/script/simpleaxis2server.bat?view=diff&rev=466034&r1=466033&r2=466034 ============================================================================== --- webservices/axis2/branches/java/1_1/modules/tool/script/simpleaxis2server.bat (original) +++ webservices/axis2/branches/java/1_1/modules/tool/script/simpleaxis2server.bat Fri Oct 20 01:33:07 2006 @@ -69,13 +69,13 @@ rem set the classes by looping through the libs setlocal EnableDelayedExpansion set AXIS2_CLASS_PATH=%AXIS2_HOME% -FOR %%C in (%AXIS2_HOME%\lib\*.jar) DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;"%%~fC" -set AXIS2_CLASS_PATH=%AXIS2_HOME%\conf;%AXIS2_CLASS_PATH% +FOR %%c in ("%AXIS2_HOME%\lib\*.jar") DO set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;%%c echo Using JAVA_HOME %JAVA_HOME% echo Using AXIS2_HOME %AXIS2_HOME% + cd %AXIS2_HOME% -"%_JAVACMD%" %JAVA_OPTS% -cp %AXIS2_CLASS_PATH% org.apache.axis2.transport.SimpleAxis2Server %AXIS2_CMD_LINE_ARGS% +"%_JAVACMD%" %JAVA_OPTS% -cp "%AXIS2_CLASS_PATH%" org.apache.axis2.transport.SimpleAxis2Server %AXIS2_CMD_LINE_ARGS% goto end :end --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org