{"thread":{"id":"14938","subject":"[JGIT PATCH] Allow jgit to load additional user classes","startedAt":"2008-08-11T19:54:42Z","lastAt":"2008-08-11T19:54:42Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"86821","messageId":"20080811195442.GN26363@spearce.org","threadId":"14938","inReplyTo":null,"subject":"[JGIT PATCH] Allow jgit to load additional user classes","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-08-11T19:54:42Z","receivedAt":"2008-08-11T19:54:42Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Users may want to develop their own custom programs (implementations\nof TextBuiltin) and add them into the jgit runtime for command line\nusage.  We now load additional classes from $JGIT_CLASSPATH, if it\nwas defined when the process started.\n\nTo avoid users replacing our own internal commands or classes we\nput the user classpath behind our own, ensuring all of our standard\nclasses and resources are found first.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n jgit.sh |    5 +++++\n 1 files changed, 5 insertions(+), 0 deletions(-)\n\ndiff --git a/jgit.sh b/jgit.sh\nindex 121beec..6b9b224 100755\n--- a/jgit.sh\n+++ b/jgit.sh\n@@ -15,6 +15,11 @@ else\n \tjava_args=\n fi\n \n+if [ -n \"$JGIT_CLASSPATH\" ]\n+then\n+\tcp=\"$cp:$JGIT_CLASSPATH\"\n+fi\n+\n # Cleanup paths for Cygwin.\n #\n case \"`uname`\" in\n-- \n1.5.4.5\n\n-- \nShawn.\n"}]}