When called from a wrapping framework, such as Maven function getLoadedFromJar() does not return schemaspy*.jar, but return a JAR file associated with the calling framework.
When the schemas option is used, incorrect java command-lines are generated: they fail because they are referencing the wrong JAR file.
The canonical solution for this seems to be described at http://stackoverflow.com/questions/320542/how-to-get-the-path-of-a-running-jar-file.
I tried it and it works (including in directories with spaces).
Log in to post a comment.