1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#!/bin/sh
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# The contents of this file are subject to the terms
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# of the Common Development and Distribution License
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# (the License). You may not use this file except in
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# compliance with the License.
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# You can obtain a copy of the License at
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# https://opensso.dev.java.net/public/CDDLv1.0.html or
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# opensso/legal/CDDLv1.0.txt
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# See the License for the specific language governing
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# permission and limitations under the License.
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# When distributing Covered Code, include this CDDL
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# Header Notice in each file and include the License file
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# at opensso/legal/CDDLv1.0.txt.
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# If applicable, add the following below the CDDL Header,
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# with the fields enclosed by brackets [] replaced by
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# your own identifying information:
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# "Portions Copyrighted [year] [name of copyright owner]"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# $Id: ssoadm,v 1.20 2010/01/28 00:49:05 bigfatrat Exp $
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell#
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell# Portions Copyrighted 2010-2015 ForgeRock AS.
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellif [ -z "$JAVA_HOME" ] ; then
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell JAVA_HOME="\@JAVA_HOME@"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellfi
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellTOOLS_HOME="@TOOLS_HOME@"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellEXT_CLASSPATH=$CLASSPATH
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellLIB_CP=
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellfor JAR in ${TOOLS_HOME}/lib/*.jar; do
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell LIB_CP=${LIB_CP}:${JAR}
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnelldone
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellCLASSPATH="@CONFIG_DIR@"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellCLASSPATH="$CLASSPATH:$TOOLS_HOME/classes:$TOOLS_HOME/resources"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellCLASSPATH="$CLASSPATH:$LIB_CP"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellif [ -n "$EXT_CLASSPATH" ] ; then
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell CLASSPATH=$EXT_CLASSPATH:$CLASSPATH
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellfi
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellif [ "$1" == "-debug" ] ; then
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=9897"
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell shift
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnellfi
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell$JAVA_HOME/bin/java -Xms64m -Xmx256m -cp "$CLASSPATH" $DEBUG \
1265f3c19f122143f61615a8097356fd34478d6cCraig McDonnell org.forgerock.audit.handlers.csv.CsvSecureArchiveVerifierCli "$@"