Allow jgit to load additional user classes
commit52831503fd90bc068017315adf0dd4fc1863816d
authorShawn O. Pearce <spearce@spearce.org>
Mon, 11 Aug 2008 19:54:42 +0000 (11 12:54 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 13 Aug 2008 20:12:25 +0000 (13 22:12 +0200)
tree72f312b747f458da40c017cd8cef45d3b58a9dc0
parentc6e754dd00b4c6486453f4b27e423cf939abf5ff
Allow jgit to load additional user classes

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>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
jgit.sh