#!/bin/bash

PREFIX="."
CLASSPATH="${PREFIX}:${PREFIX}/jars/ldaptive-2.5.0.jar"
for JAR in `ls ${PREFIX}/lib/*.jar` ; do
  CLASSPATH=${CLASSPATH}:$JAR
done

ARGS="$@"
jshell --class-path ${CLASSPATH} -R-Dargs="${ARGS}" ${PREFIX}/bin/ldapsearch.jsh
