summaryrefslogtreecommitdiffstats
path: root/authz-batch/src/main/scripts/run_batch
blob: c09ea0a388a7ba556cda421096711f38704b4d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/env bash

if [[ $# < 1 ]]; then
    echo "USAGE: run_batch ExpiryNotification|ApprNotify|JobChange|RoleExpiration|ValidateUsers"
    exit 1;
fi

JAVA_HOME=_JAVA_HOME_
AAF_CP="_ROOT_DIR_/etc"
for JAR in `find _ROOT_DIR_/lib -name *.jar` ; do
  AAF_CP="$AAF_CP:$JAR"
done

$JAVA_HOME/bin/java -cp $AAF_CP com.att.authz.Batch $*