@echo off
REM
REM (c) 1999-2003 Oracle Corp. all rights reserved
REM
REM set proper environment variables required by ias wireless
REM

REM PLEASE CONFIGURE THE VARIABLES (IAS_HOME, JAVA_HOME, PROXY_URL) IN THIS FILE
REM BEFORE RUNNING THE SCRIPTS.

REM Set the home of the IAS installation.
REM IAS_HOME=C:\iaswv904
REM Set the home of the JAVA_HOME optionally
REM JAVA_HOME=C:\j2sdk1.4.1_02

REM Test whether IAS_HOME is defined
if not "%IAS_HOME%" == "" goto iashomeexists
ECHO.
ECHO ERROR!!! You MUST define IAS_HOME to run this script
ECHO.
exit/b 1
:iashomeexists

REM Test whether JAVA_HOME is set
if not "%JAVA_HOME%" == "" goto javaset
set JAVA_HOME=%IAS_HOME%\jdk
:javaset

REM Set the home of the J2ME server.  This is the directory that
REM contains the subdirectories "webservice\classes", "webservice\stage", etc.
REM The "webservice" directory and its subdirectories are created when the J2ME
REM Proxy Server first starts (when the J2ME Proxy Server's WAR file is first
REM unpacked.)  The home of the J2ME server, then, is the same as the home
REM of the WDK web application.
REM Before running any scripts, make sure that you execute the WDK web
REM server at least once (to unpack the WAR file) and that you set this
REM environment variable to the correct path.  The scripts will not work
REM if the path in this environment variable is incorrect or does not exist.
set J2ME_SERVER_HOME=%IAS_HOME%\wireless\j2ee\applications\wdk\wdk-web

REM Directory setting for proxy server access log.
REM If not set, uses system default temp directory.
set PROXY_LOG_DIR=%IAS_HOME%\wireless\logs

REM Set the mode of the proxy server, either "standalone" or "integrated".
REM This should be set to "standalone" in the WDK.
set PROXY_MODE=standalone


set PATH=%JAVA_HOME%\bin;%PATH%;%IAS_HOME%\bin

REM Libraries directory for WDK.
set LIBDIR=%IAS_HOME%\wireless\lib

REM Classpath for WDK scripts.
set CLASSPATH=.;%JAVA_HOME%\jre\lib\rt.jar;%LIBDIR%;%LIBDIR%\wdk.jar;%LIBDIR%\xmlparserv2.jar;%LIBDIR%\http_client.jar;%LIBDIR%\wsdl.jar;%LIBDIR%\soap.jar;%LIBDIR%\xmlrpc.jar;%JAVA_HOME%\lib\tools.jar;%LIBDIR%\wdkserver.jar;%IAS_HOME%\j2ee\home\oc4j.jar

REM Set the URL for the J2ME proxy server.
REM Replace "localhost" with the actual host name.
REM This environment variable is used in:
REM 1. Notification of the J2ME Proxy Server when you
REM    register web services using the regclass or
REM    regwsdl scripts.
REM 2. J2ME Client Stub Generation.
REM Failure to set this environment variable correctly
REM has the following consequences:
REM 1. The running J2ME Proxy Server will not be aware
REM    of newly registered services until it is restarted.
REM 2. Generated J2ME client stubs will have to be edited
REM    by you to point to the correct J2ME Proxy Server URL.
set PROXY_URL=http://localhost:9010/wdk/proxy
