#!/bin/sh
#
# (c) 1999-2003 Oracle Corp. all rights reserved
#
# set proper environment variables required by ias wireless
#

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

# Set the home of the IAS installation.
#IAS_HOME=~/ias
# Set the home of the JAVA_HOME optionally
#JAVA_HOME=/usr/jdk1.4.1

if [ -z "${IAS_HOME}" ]
then
  echo "ERROR!!! You MUST define IAS_HOME to run this script"
  exit 1
fi

if [ -z "${JAVA_HOME}" ]
then
  JAVA_HOME=${IAS_HOME}/jdk
fi

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

# Directory setting for proxy server access log.
# If not set, uses system default temp directory.
PROXY_LOG_DIR=${IAS_HOME}/wireless/logs

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


PATH=${JAVA_HOME}/bin:${PATH}:${IAS_HOME}/bin

# Libraries directory for WDK.
LIBDIR=${IAS_HOME}/wireless/lib

# Classpath for WDK scripts.
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

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