Closed adriens closed 6 years ago
If, instead of the current code :
@java -classpath lib/*;config;. schemacrawler.Main %*
you put this one :
@java -classpath %~dp0/lib/*;%~dp0/config;. schemacrawler.Main %*
the classpath will get the correct path, the one that targets the deployed dir.
To make short, as soon as schemacrawler.cmd
will be in the PATH
, it will run on any directory.
In fact, it's the same trick as the shell's one 😄
#!/bin/sh
java -cp $(echo lib/*.jar | tr ' ' ':'):config schemacrawler.Main "$@"
@sualeh : do there is any chance to get this patch on the v14.19.02 please ?
Great, thanks a lot !
Environment
Issue
In fact, i wanted to install it the same way i do with ant, maven, fop, .... At the end, i'll be able to run the command line from any dir.
SC_HOME
) that targets schemacrawler dir_schemacrawler
SC_HOME
to your PATHschemacrawler
...classic classpath issue.