includeAll from changeLogs within a jar is not working
Description
Environment
N/A
Activity
Fred Puistaja May 2, 2017 at 8:05 AM
Same problem for me using Spring Boot v1.3.8 and Liquibase v3.5.3.
I downgraded to Liquibase 3.4.2 and everything works.
My changes are inside core.jar and I run application.jar
Miroslav Zaťko October 10, 2016 at 6:00 PM
Still not working in liquibase 3.5.2 or maybe the bug is back again...
Nathan Voxland October 30, 2014 at 9:23 PM
Fixed in 3.3.0. Ended up changing the ResourceAccessor in SpringLiquibase to use the main ClassLoaderResourceAccessor logic for searching within jars rather than your inlined code.
Jakub Brach August 15, 2014 at 2:45 PMEdited
Method liquibase.integration.spring.SpringLiquibase.SpringResourceOpener.list(String, String, boolean, boolean, boolean)
I changed to following code:
and it works! But not completely, there is some trouble with sorting filenames. I'll post functional code. This could be for inspiration.
It works correctly. We have mistake in one changeset (id is wrong).
Bug is in method liquibase.resource.AbstractResourceAccessor.getContents(File, boolean, boolean, boolean, String, Set<String>)
you couldn't call method java.io.File.listFiles() on File which is create from ClasspathResource.
My changeLogs are inside a jar in the classpath.
The changeLogs use includeAll for further changeLog files within the jar.
With liquibase 3.2.2 I get the following error: