liquibase - changesets in jar

Hi 


Liquibase is not really designed to work inside Java itself, yet I managed to do so by manually creating an instance of Liquibase() class and invoking update(). 

Yet my problem is that this solution does not work when the changelog files are inside a jar file, also the paths in the changelog aren’t relative to each other, but to the current directory.

Does anyone deal with this problem before? has anyone solved it somehow?

Thanks

Marcin

The ResourceAccessor interfaces let you customize how the changelog files are looked up. If the existing implementations don’t work, you can implement your own.


Liquibase is designed to work directly as you are using it, it’s just not as well documented as it should be.


Nathan

This is what I ended up using.

Thanks

Marcin