axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r414023 - in /webservices/axis2/trunk/java/modules/tool/script: Java2WSDL.bat Java2WSDL.sh
Date Wed, 14 Jun 2006 02:07:50 GMT
Author: dims
Date: Tue Jun 13 19:07:49 2006
New Revision: 414023

URL: http://svn.apache.org/viewvc?rev=414023&view=rev
Log:
bat/sh for Java2WSDL

Added:
    webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.bat
    webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.sh

Added: webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.bat?rev=414023&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.bat (added)
+++ webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.bat Tue Jun 13 19:07:49 2006
@@ -0,0 +1,60 @@
+@echo off
+rem ---------------------------------------------------------------------------
+rem Startup script for the WSDLJava
+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\start.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%" org.apache.ws.java2wsdl.Java2WSDL %*
+endlocal
+:end

Added: webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.sh?rev=414023&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.sh (added)
+++ webservices/axis2/trunk/java/modules/tool/script/Java2WSDL.sh Tue Jun 13 19:07:49 2006
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+export AXIS2_HOME=..
+
+for f in $AXIS2_HOME/lib/*.jar
+do
+  AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f
+done
+export AXIS2_CLASSPATH
+
+echo the classpath $AXIS2_CLASSPATH
+java -classpath $AXIS2_CLASSPATH org.apache.ws.java2wsdl.Java2WSDL $*



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message