ogindexd revision 964
6736c640e65e06990ef33af71ee81fac4df4ff5fjim# CDDL HEADER START
ae600ca541efc686b34f8b1f21bd3d0741d37674covener# The contents of this file are subject to the terms of the
ae600ca541efc686b34f8b1f21bd3d0741d37674covener# Common Development and Distribution License (the "License").
ae600ca541efc686b34f8b1f21bd3d0741d37674covener# You may not use this file except in compliance with the License.
fa0c562f0ab33ed019baf3c1dcd37ae72af6b29dminfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
021d92af060084e767f197b33c86e12eadaae4c2sf# See the License for the specific language governing permissions
021d92af060084e767f197b33c86e12eadaae4c2sf# and limitations under the License.
f573edb315d96e752cf7da3f08b7a95367d0d702sf# When distributing Covered Code, include this CDDL HEADER in each
521fc51bdadd21ae8cc2f4a8b354c5fe424a037csf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
521fc51bdadd21ae8cc2f4a8b354c5fe424a037csf# If applicable, add the following below this CDDL HEADER, with the
521fc51bdadd21ae8cc2f4a8b354c5fe424a037csf# fields enclosed by brackets "[]" replaced with your own identifying
521fc51bdadd21ae8cc2f4a8b354c5fe424a037csf# information: Portions Copyright [yyyy] [name of copyright owner]
d354c2983fc611d55dcf5d160d14c796d5143d35trawick# CDDL HEADER END
df8ef9cef9dbbf5217ee38751f4bab63e14588d6pquerna# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
df8ef9cef9dbbf5217ee38751f4bab63e14588d6pquerna# Use is subject to license terms.
f743002678eb67b99bbc29fee116b65d9530fec0wrowe printf "%s" "$value"
2cd2891cea784de97020bcada4e834e224428d0ccovenerread_config() {
1f9c3dc1ba4b56b2c14f40db86f532114504b5cfwrowe SRCDIR=`getprop srcdir`
2cd2891cea784de97020bcada4e834e224428d0ccovener if [ ! -d "$SRCDIR" ]; then
fec106c7688e279dfde4403bc3c935fec97c1d62sf READ_XML_CONF=""
fec106c7688e279dfde4403bc3c935fec97c1d62sf VERBOSE=""
789f46cb4d4c3e32f6550f17f74ea4a054095901covenerXML_CONFIGURATION="$LOCALSTATEDIR/etc/configuration.xml"
789f46cb4d4c3e32f6550f17f74ea4a054095901covenerCLASSPATH=$LIBDIR/ant.jar:$LIBDIR/bcel-5.2.jar:$LIBDIR/jakarta-oro-2.0.8.jar:$LIBDIR/lucene-core-3.0.1.jar:$LIBDIR/lucene-spellchecker-3.0.1.jar:$LIBDIR/org.apache.commons.jrcs.diff.jar:$LIBDIR/org.apache.commons.jrcs.rcs.jar:$LIBDIR/swing-layout-0.9.jar:$LIBDIR/opengrok.jar
c07f5b18040b0d39b077666ad6fbbd28fe0eb5f1sfrunjava() {
c07f5b18040b0d39b077666ad6fbbd28fe0eb5f1sf xx ${JAVA} ${JAVA_OPTS} ${JAVA_EXTRA_PARAMS} \
c07f5b18040b0d39b077666ad6fbbd28fe0eb5f1sf -cp ${CLASSPATH} \
c07f5b18040b0d39b077666ad6fbbd28fe0eb5f1sf ${OG_DEF_PARAMS} ${OG_EXTRA_PARAMS} \
94bc56b747dda8afb8806d04e08164ea99e4c21dsf ${READ_XML_CONF} \
94bc56b747dda8afb8806d04e08164ea99e4c21dsf -W ${XML_CONFIGURATION} \
5fcf1d4211ba64b1e9c7647fcc615a9e850c6c88covener ${WEBAPP_CONFIG_ADDRESS} \
5fcf1d4211ba64b1e9c7647fcc615a9e850c6c88covener ${VERBOSE} \
81cc440ca73845f44dc589db106d3feb7a36f33bminfrin# Read configuration for the first time.
65dec0561786621bd67f57e8054dcf80923b6cb1jortonread_config || exit $?
3bb96836b77f718d914dbcdbe3d9bf3ca22859a5minfrin # This is likely our first run. Let's do the initial indexing.
3bb96836b77f718d914dbcdbe3d9bf3ca22859a5minfrin runjava -H || exit 1
79821ac529d05349274b7ed2421077afffbc0c08sfwhile read line; do
79821ac529d05349274b7ed2421077afffbc0c08sf # Re-read configuration.
6e3c52ed5ba88bb05d3535c6257a61faeec22388minfrin read_config || exit $?
6e3c52ed5ba88bb05d3535c6257a61faeec22388minfrin runjava -H || exit 1