* [JGIT PATCH] Allow jgit to load additional user classes
@ 2008-08-11 19:54 Shawn O. Pearce
0 siblings, 0 replies; only message in thread
From: Shawn O. Pearce @ 2008-08-11 19:54 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git
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.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-11 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-11 19:54 [JGIT PATCH] Allow jgit to load additional user classes Shawn O. Pearce
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).