vimclojure / bin / ng-server

#! /bin/sh
# Copyright (c) Stephen C. Gilardi. All rights reserved.  The use and
# distribution terms for this software are covered by the Eclipse Public
# License 1.0 ( which can be
# found in the file epl-v10.html at the root of this distribution.  By
# using this software in any fashion, you are agreeing to be bound by the
# terms of this license.  You must not remove this notice, or any other,
# from this software.
# scgilardi (gmail)
# Created 7 January 2009
# Modified by Meikel Brandmeyer <mb _ kotka de> to act as launcher for
# the Nailgun server of VimClojure and be sure to not rely on bash.
# Frankfurt am Main, 03.03.2009
# Environment variables:
# Optional:
#  CLOJURE_EXT  The path to a directory containing (either directly or as
#               symbolic links) jar files and/or directories whose paths
#               should be in Clojure's classpath. The value of the
#               CLASSPATH environment variable for Clojure will be a list
#               of these paths followed by the previous value of CLASSPATH
#               (if any).
#  CLOJURE_JAVA The command to launch a JVM instance for Clojure
#               default: java
#               example: /usr/local/bin/java6
#  CLOJURE_OPTS Java options for this JVM instance
#               default:
#               example:"-Xms32M -Xmx128M -server"

if [ -d "${CLOJURE_EXT:-}" ]; then
	EXT="`find ${CLOJURE_EXT} -maxdepth 1 -print0 | tr \\\\0 :`"
	if [ -n "${EXT}" ]; then
		if [ -n "${CLASSPATH}" ]; then

if [ -z "${CLOJURE_JAVA}" ]; then

# Since we do not provide any security we at least bind only to the loopback.
exec ${CLOJURE_JAVA} ${CLOJURE_OPTS} com.martiansoftware.nailgun.NGServer
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.