#!/bin/env csh
#
# **************************************************************************** #
# Test for allowing classpath with wild card (*)
# See test_classpath_wildcard.mm for description of test case
#
# Arguments: 1st: (optional) desired NMROOT [DEF=login's NMROOT]
#
# @bug:       2770:  Added support for "*" in Java CLASSPATH
# @author:    Doug Siamon
# @Version: $Id: test_classpath_wildcard.sh,v 1.6 2015/10/06 16:57:05 paq Exp $
# **************************************************************************** #

# NMROOT is set from the passed in argument. 
setenv NMROOT $1

# Set NM_BOOT_CP_APPEND with a path containing a wild card (*)
setenv NM_BOOT_CP_APPEND "$NMROOT/nxm/sys/test/nmopts/nxm/mytestopt1/jars/*"

# Source nmstart for needed env information ( Needed for nextopt testing)
source $NMROOT/os/unix/nmstart > /dev/null

# invoke a method in a class contained in the CLASSPATH included via wildcard in NM_BOOT_CP_APPEND (specifically from TestClassPath.jar)
set args="invoke nxm.mytestopt1.lib.TestClassPath.helloWorld"
source $NMROOT/os/unix/nm 

# Cleanup
nmend

# keep this line at bottom of csh script - since it is always skipped