#!/bin/sh
#
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
#

#
# @(#)sweep	1.7 02/01/12
#

# This script invokes the sweeper so that all runtime xml and props files
# are updated to reflect the current environment.

if [ -z "${CTS_HOME}" ]
then
    echo "Please set CTS_HOME"
    echo "Exiting $0"
    exit 1
fi 

. ${CTS_HOME}/bin/cts_env

CLASSPATH=${CTS_CLASSPATH}
export CLASSPATH
${JAVA_CMD} \
	-DJAVA_HOME=${JAVA_HOME} \
	-DJ2EE_HOME=${J2EE_HOME} \
	-DCTS_HOME=${CTS_HOME} \
	-Djava.compiler=NONE \
	-Djava.security.policy=${CTS_HOME}/bin/java.policy \
	-Dorg.omg.CORBA.ORBInitialHost=${ORB_HOST} \
	-Dorg.omg.CORBA.ORBInitialPort=${ORB_PORT} \
	-DORB_HOST=${ORB_HOST} \
	-DORB_PORT=${ORB_PORT} \
	com.sun.cts.util.sweeper.Sweeper ${CTS_HOME} \
	com.sun.cts.util.sweeper.CounterBroom

