git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Robin Rosenberg <robin.rosenberg@dewire.com>
Cc: git@vger.kernel.org
Subject: [JGIT PATCH] Allow jgit to load additional user classes
Date: Mon, 11 Aug 2008 12:54:42 -0700	[thread overview]
Message-ID: <20080811195442.GN26363@spearce.org> (raw)

Users may want to develop their own custom programs (implementations
of TextBuiltin) and add them into the jgit runtime for command line
usage.  We now load additional classes from $JGIT_CLASSPATH, if it
was defined when the process started.

To avoid users replacing our own internal commands or classes we
put the user classpath behind our own, ensuring all of our standard
classes and resources are found first.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 jgit.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/jgit.sh b/jgit.sh
index 121beec..6b9b224 100755
--- a/jgit.sh
+++ b/jgit.sh
@@ -15,6 +15,11 @@ else
 	java_args=
 fi
 
+if [ -n "$JGIT_CLASSPATH" ]
+then
+	cp="$cp:$JGIT_CLASSPATH"
+fi
+
 # Cleanup paths for Cygwin.
 #
 case "`uname`" in
-- 
1.5.4.5

-- 
Shawn.

                 reply	other threads:[~2008-08-11 19:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080811195442.GN26363@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=robin.rosenberg@dewire.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).