OpenGrok revision d7c1415de39f4b07c85828f49cd1ee7a2a19eb9e
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco# OpenGrok Wrapper (initial setup and cron job updating)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Supported Operating Systems:
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# - Solaris 10 (SunOS 5.10)
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# - OpenSolaris (SunOS 5.11)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - Debian (Linux)
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# Supported Deployment Engines:
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - Tomcat 5.5
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - Glassfish
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# Supported Environment Variables:
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# - OPENGROK_NON_INTERACTIVE Suppress Progress and Warnings Messages (*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_STANDARD_ENV Run Time Shell Environment (Shell Script)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_CONFIGURATION User Configuration (Shell Script)
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# Supported Environment Variables for configuring the default setup:
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_INSTANCE_BASE Base Directory of the OpenGrok User Data Area
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - EXUBERANT_CTAGS Full Path to Exuberant CTags
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal# - JAVA_HOME Full Path to Java Installation Root
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal# - OPENGROK_APP_SERVER Application Server ("Tomcat" or "Glassfish")
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal# - OPENGROK_WAR_TARGET_TOMCAT Tomcat Specific WAR Target Directory
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_WAR_TARGET_GLASSFISH Glassfish Specific WAR Target Directory
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# - OPENGROK_WAR_TARGET Fallback WAR Target Directory
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# - OPENGROK_TOMCAT_BASE Base Directory for Tomcat (contains webapps)
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# - OPENGROK_GLASSFISH_BASE Base Directory for Glassfish (contains domains)
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# - OPENGROK_GLASSFISH_DOMAIN Preferred Glassfish Domain Name
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_VERBOSE Enable Verbose Mode in opengrok.jar (*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_REMOTE_REPOS Enable History Cache for Remote Repositories (*)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - OPENGROK_SCAN_REPOS Scan for repositories (*)_
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# - READ_XML_CONFIGURATION file with read only configuration - a temp workaround for bug # 327
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# (*) Any Non-Empty String will enable these options
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal echo "Usage: ${0} <deploy|update|updateQuietly|usage>" 1>&2
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal echo " OPENGROK_CONFIGURATION - location of your configuration" 1>&2
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal echo " e.g. $ OPENGROK_CONFIGURATION=/var/opengrok/myog.conf ${0} ... " 1>&2
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal echo " See the code for more information on configuration options / variables" 1>&2
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Runtime Configuration
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal# TODO: Handle symlinks correctly (especially in ${0})
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav KozinaSCRIPT_DIRECTORY="`cd ${SCRIPT_DIRECTORY}; pwd`"
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Default Instance Configuration
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco # Use the built-in defaults. This section can be copied to its own
bc5565fc58603964988b42b6aee40e246f35d94fVladimir Kotal # file and tailored to your local requirements. Then simply set
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray # OPENGROK_CONFIGURATION=/path/to/your/configuration, before using
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray # this wrapper. It will save you hand editing in your settings
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray # on each new release. A sample cron(1M) entry might look like:
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # 15 0 * * * OPENGROK_CONFIGURATION=/pkgs/etc/OpenGrok.sh /pkgs/sbin/OpenGrok updateQuietly
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal # Note: It is not really possible to ever provided defaults for
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir Kotal # these values which will run in every UNIX-like environment.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal # So I have provided a set which are functional for a given
cd348e325366620fe047edcc849e3c9424828599Peter Bray # environment on which you can based you own configuration.
cd348e325366620fe047edcc849e3c9424828599Peter Bray # This has been updated to support more environment variables and
cd348e325366620fe047edcc849e3c9424828599Peter Bray # operating systems, if you have any reasonably generic
cd348e325366620fe047edcc849e3c9424828599Peter Bray # improvements please feel free to submit a patch.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal OPENGROK_INSTANCE_BASE="${OPENGROK_INSTANCE_BASE:-/var/opengrok}"
f21b682cd9b414738a4f5a38b56f6682e537e1d2Trond Norbye OPENGROK_DISTRIBUTION_BASE="${SCRIPT_DIRECTORY}/dist"
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos Kosco LOGGER_CONF_SOURCE="${SCRIPT_DIRECTORY}/conf/${LOGGER_CONFIG_FILE}"
cd348e325366620fe047edcc849e3c9424828599Peter Bray LOGGER_CONF_SOURCE="${OPENGROK_DISTRIBUTION_BASE}/${LOGGER_CONFIG_FILE}"
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal # (your source code or the root of all repositories)
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal # (for Lucene index and hypertext cross-references)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco # This area is rebuilt by "update" / "updateQuietly"
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco # OPTIONAL: User Provided Source Path to Description Mapping (Tab Separated Value)
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco # (The user maintained source of the generated EftarFile file)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray PATH_DESC="${OPENGROK_INSTANCE_BASE}/etc/paths.tsv"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray XML_CONFIGURATION="${OPENGROK_INSTANCE_BASE}/etc/configuration.xml"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # OPTIONAL: read only XML config, if it exists, it will be read
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray READ_XML_CONFIGURATION="${READ_XML_CONFIGURATION:-}"
cd348e325366620fe047edcc849e3c9424828599Peter Bray # TODO: Verify that Logger Configuration is REQUIRED and not OPTIONAL
cd348e325366620fe047edcc849e3c9424828599Peter Bray LOGGER_CONFIG_PATH="${OPENGROK_INSTANCE_BASE}/${LOGGER_CONFIG_FILE}"
cd348e325366620fe047edcc849e3c9424828599Peter Bray LOGGER_PROPERTIES="-Djava.util.logging.config.file=${LOGGER_CONFIG_PATH}"
cd348e325366620fe047edcc849e3c9424828599Peter Bray # REQUIRED: Java Archive of OpenGrok (Installation Location)
cd348e325366620fe047edcc849e3c9424828599Peter Bray OPENGROK_JAR="${OPENGROK_DISTRIBUTION_BASE}/opengrok.jar"
cd348e325366620fe047edcc849e3c9424828599Peter Bray # REQUIRED(deploy): Web Archive of OpenGrok (Distribution Location)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # (user building from source code will find this and other key
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # files in the "dist" directory after the build is completed)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray OPENGROK_DIST_WAR="${OPENGROK_DISTRIBUTION_BASE}/source.war"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # REQUIRED: Exuberant CTags (http://ctags.sf.net)
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco EXUBERANT_CTAGS="${EXUBERANT_CTAGS:-`FindExuberantCTags`}"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # DEVELOPMENT: Debug option, if enabled current indexer will listen on the port 8010 until a debugger connects
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray #JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,address=8010,suspend=y"
b34561d2c3d92fac37dbced05ba6a8738e3d20e9Lubos Kosco # OPTIONAL: Ignore these patterns as names of files or directories
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir Kotal # (Every directory in SRC_ROOT is considered a separate project)
cd348e325366620fe047edcc849e3c9424828599Peter Bray # OPTIONAL: Scanning Options (for Mercurial repositories)
cd348e325366620fe047edcc849e3c9424828599Peter Bray # OPTIONAL: Remote Repository Support (CVS or SVN)
cd348e325366620fe047edcc849e3c9424828599Peter Bray # (Can be very time demanding, uncomment if needed)
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco # Note, that you might run out of memory, then either increase JVM memory
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco # as noted in JAVA_OPTS, or set this limit(if you don't mind opengrok not
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco # indexing the rest of the file, once the limit is reached)
bc5565fc58603964988b42b6aee40e246f35d94fVladimir Kotal # OPTIONAL: Configuration Address (host:port)
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal # Assumption: We should not set properties to the empty string
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal${HG:+-Dorg.opensolaris.opengrok.history.Mercurial=$HG} \
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal${CVS:+-Dorg.opensolaris.opengrok.history.cvs=$CVS} \
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal${SVN:+-Dorg.opensolaris.opengrok.history.Subversion=$SVN} \
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal${SCCS:+-Dorg.opensolaris.opengrok.history.SCCS=$SCCS} \
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal${CLEARCASE:+-Dorg.opensolaris.opengrok.history.ClearCase=$CLEARCASE} \
cd348e325366620fe047edcc849e3c9424828599Peter Bray${GIT:+-Dorg.opensolaris.opengrok.history.git=$GIT} \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray${P4:+-Dorg.opensolaris.opengrok.history.Perforce=$P4} \
cd348e325366620fe047edcc849e3c9424828599Peter Bray${MTN:+-Dorg.opensolaris.opengrok.history.Monotone=$MTN} \
cd348e325366620fe047edcc849e3c9424828599Peter Bray${BZR:+-Dorg.opensolaris.opengrok.history.Bazaar=$BZR} \
cd348e325366620fe047edcc849e3c9424828599Peter Bray # OPTIONAL: Store The History Cache in Java DB (derby),
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal # instead of file system (in gzipped xml files).
4f3c0816485669143aa54f1c6461fcb47cf5bc5cVladimir Kotal # - derbyclient.jar - See README.txt for more details
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco # - Running Derby Server - Defaults to localhost:1527
17d95a647aba8c37d9ac34d97e4eed729aa46f67Naseer Ahmed # Usage: <class> inputFile [inputFile ...] outputFile
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco # EftarFile == An Extremely Fast Tagged Attribute Read-only File System
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray EFTAR_UPDATE="org.opensolaris.opengrok.web.EftarFile"
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco EFTAR_OUTPUT_FILE="${DATA_ROOT}/index/dtags.eftar"
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco # Be Quiet? (set indirectly by command line arguments in the main program)
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# Helper Functions - Logging
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco# In general, non-interactive use like cron jobs and automated
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco# installation environments should not generate unnecessary
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco# progress information or warnings, as usage and configuration
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# will have generally been debugged prior to automation.
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet# Helper Functions - Autodetection of Runtime Environment
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco Error "Unable to determine Exuberant CTags command name" \
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray SunOS:5.10) javaHome="/usr/jdk/instances/jdk1.6.0" ;;
cd348e325366620fe047edcc849e3c9424828599Peter Bray # Use this function to determine which environment the deploy the
cd348e325366620fe047edcc849e3c9424828599Peter Bray # web application function into. Some users (especially
cd348e325366620fe047edcc849e3c9424828599Peter Bray # developers) will have many deployment environments or will wish
cd348e325366620fe047edcc849e3c9424828599Peter Bray # to specify directly the application server to deploy to.
cd348e325366620fe047edcc849e3c9424828599Peter Bray # Either use the environment variable OPENGROK_APP_SERVER or
cd348e325366620fe047edcc849e3c9424828599Peter Bray # reimplement this function in your configuration file (as
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Kosco # This implementation favours Tomcat, but needs a lot of work,
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos Kosco # especially if Glassfish is perferrerd or it is under the control
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Maybe a better implementation would be to call Application
cd348e325366620fe047edcc849e3c9424828599Peter Bray # Server specific WAR Directory and see if they exist.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if [ -x "/etc/init.d/appserv" -a -d "/var/appserver/domains" ]
f9e7e93ed37cbcb0a111b6f997bb75d567c31c0bVladimir Kotal directory="${domainDirectory}/${OPENGROK_GLASSFISH_DOMAIN}/autodeploy"
f9e7e93ed37cbcb0a111b6f997bb75d567c31c0bVladimir Kotal FatalError "Missing Specified Glassfish Domain ${OPENGROK_GLASSFISH_DOMAIN}"
f9e7e93ed37cbcb0a111b6f997bb75d567c31c0bVladimir Kotal firstDomain=`ls -1 ${domainDirectory} | head -1`
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "Failed to dynamically determine Glassfish Domain from ${domainDirectory}"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray echo "${domainDirectory}/${firstDomain}/autodeploy"
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye# Implementation
c276b1ec9722ee95a86a4a381b39c5f405fc1cc4Vladimir Kotal# The variable "DO" can usefully be set to "echo" to aid in script debugging
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye # Setup a standard execution environment (if required)
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye OPENGROK_STANDARD_ENV="${OPENGROK_STANDARD_ENV:-/pkgs/sbin/CronExecutionEnvironment.sh}"
4e854c69a0484765dcd27b0e837898c8b6969beaTrond Norbye Progress "Loading ${OPENGROK_STANDARD_ENV} ..."
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Note: As all functions have been defined by the time this routine
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # is called, your configuration can, if desired, override functions
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # in addition to setting the variables mentioned in the function
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # DefaultInstanceConfiguration(), this maybe useful to override
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # functionality used to determine the default deployment environment
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # find dependencies or validate the configuration, for example.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if [ -n "${OPENGROK_CONFIGURATION}" -a -f "${OPENGROK_CONFIGURATION}" ]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # Load the Local OpenGrok Configuration Environment
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress "Loading the default instance configuration ..."
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "Missing Dependent Application - Exuberant CTags"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "OpenGrok Source Path ${SRC_ROOT} doesn't exist"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Warning "Both Quiet and Verbose Mode Enabled - Choosing Verbose"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Warning "OpenGrok Generated Data Path ${DATA_ROOT} doesn't exist"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress " Attempting to create generated data directory ... "
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "OpenGrok Data Path ${DATA_ROOT} doesn't exist"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Warning "OpenGrok Generated Etc Path ${OPENGROK_INSTANCE_BASE}/etc doesn't exist"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress " Attempting to create generated etc directory ... "
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "OpenGrok Etc Path ${OPENGROK_INSTANCE_BASE}/etc doesn't exist"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray if [ -n "${LOGGER_CONFIG_PATH}" -a ! -f "${LOGGER_CONFIG_PATH}" ]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress " Creating default ${LOGGER_CONFIG_PATH} ... "
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Warning "Can't find distribution logging configuration" \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray "(${LOGGER_CONF_SOURCE}) to install as default" \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ${DO} cp "${LOGGER_CONF_SOURCE}" "${LOGGER_CONFIG_PATH}"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray # TODO: Consider automatically setting the logging directory
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ${MAX_INDEXED_WORDS} ${SKIN} ${LEADING_WILDCARD} \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ${EFTAR_UPDATE} ${PATH_DESC} ${EFTAR_OUTPUT_FILE}
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray ${DO} ${JAVA} ${JAVA_OPTS} -jar ${OPENGROK_JAR} '-?'
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Tomcat) warTarget="`DetermineWarDirectoryTomcat`" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Glassfish) warTarget="`DetermineWarDirectoryGlassfish`" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray *) FatalError "Unsupported Application Server ${applicationServer}" ;;
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "Unable to determine Deployment Directory for ${applicationServer}"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "Missing Web Application Archive ${OPENGROK_DIST_WAR}"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray FatalError "Missing Deployment Directory ${warTarget}"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress "Installing ${OPENGROK_DIST_WAR} to ${warTarget} ..."
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal ${DO} cp "${OPENGROK_DIST_WAR}" "${warTarget}/"
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir Kotal if [ $? != 0 ]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress "Start your application server (${applicationServer}), if it is not already"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray Progress "running, or wait until it loads the just installed web application."
578be34fc3aceb9831553e8611f8d5d59b711c3cVladimir Kotal Progress "OpenGrok should be available on <HOST>:<PORT>/source"
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal Progress " where HOST and PORT are configured in ${applicationServer}."
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Main Program
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco if [ -n "${2}" ]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# End of File