12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- @echo off
- echo.
- REM *********************************************************************************************************************************
- REM * Licensed Materials - Property of IBM *
- REM * *
- REM * IBM Cognos Products: ASV *
- REM * *
- REM * (C) Copyright IBM Corp. 2005, 2010 *
- REM * *
- REM * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *
- REM *********************************************************************************************************************************
- echo IBM Cognos Event Studio Webservice Object generation process . . .
- REM set JAVA_HOME=c:\j2sdk1.4.2_06
- if "%JAVA_HOME%" == "" goto error1
- set wsdlPath=%1
- if "%wsdlPath%" == "" goto error2
- echo JAVA_HOME=%JAVA_HOME%
- set OLDCP=%CP%
- set CP=ant.jar;ant-launcher.jar;%JAVA_HOME%\lib\tools.jar
- set DEPLOYHOME=..\webapps\p2pd\WEB-INF\lib
- set CMD=%JAVA_HOME%\bin\java.exe -classpath %CP% org.apache.tools.ant.Main -buildfile es_build_ws_objs.xml -Ddeploy.home=%DEPLOYHOME% -Dwsdl.Path=%wsdlPath%
- rem clean up
- set CP=%OLDCP%
- rem execute it
- echo %CMD%
- %CMD%
- goto end
- :error1
- echo.
- echo ****************************************************************************
- echo * *
- echo * ERROR: JAVA_HOME not found in your environment. *
- echo * *
- echo ****************************************************************************
- echo.
- goto end
- :error2
- echo.
- echo ****************************************************************************
- echo * *
- echo * ERROR: wsdl path/URL must be the first argument. e.g. *
- echo * es_build_ws_objs.bat http://localhost/WebService/Service1?wsdl *
- echo * *
- echo ****************************************************************************
- echo.
- :end
- echo done.
- echo.
|