tinkerpop/tinkerpop3 — pull request #422 by dalaro (2014-12-13 01:38:03+00:00)
Title: Append plugin dirs to $CLASSPATH alphabetically

This change makes gremlin.sh append the `ext/` elements to the Console's classpath in alphabetical order according to the plugin-dir names. The previous behavior was dependent on the filesystem's underlying order of directory entries, which was not generally meaningful or obvious.

This commit also changes gremlin.sh to use wildcard classpath elements for plugins, e.g. "ext/hadoop-gremlin/*". This assumes that `ext//` has no internal subdirectories (that all of the jars
are immediate children of ``), and that the runtime JVM is at least version 6. The latter is definitely true since TP3 requires Java 8, and I think the former is also true given how gremlin-console installs plugins.

The wildcard change is not absolutely necessary. The console classpath without wildcards was getting large enough to fill an entire screen of text and still require scrolling to see the whole thing. It's just a debugging quality-of-life change.