juxt / joplin

Flexible datastore migration and seeding for Clojure projects
Eclipse Public License 1.0
316 stars 49 forks source link

Workaround for problems with java.classpath/classpath on java 9 #104

Closed cdorrat closed 6 years ago

cdorrat commented 6 years ago

In java 9 the java application and bootstrap classpath loaders are no longer subclasses of URLClassLoader. As a result the java.classpath/classpath function (used to scan for migrations in the classpath) returns an empty list.

This pull request works around the issue by using java.classpath/system-classpath (based on the java classpath property) to find directories / jars to scan.