I compiled my application in a jar file and for some reason includeAll doesn’t find my folder while include file does. Example:
If I reference a file inside the Test folder the file is actually found
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd" >
<include file="/db/changelog/migrations/Test/teste2.xml"></include>
</databaseChangeLog>
but if I try to reference the complete folder with includeAll my changeSet files are not found.
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd" >
<includeAll path="/db/changelog/migrations/Test/"></includeAll>
</databaseChangeLog>
I am using the java Api to make the update of the database
connection = openConnection(dbUrl,dbUsername,dbPassword);
Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(connection));
Liquibase liquibase = new liquibase.Liquibase(changelog, new ClassLoaderResourceAccessor(), database);
liquibase.update(new Contexts("abc"));
and I am using liquibase-core 4.4.0 .
Is it a mistake in my end or a bug in Liquibase? Does anyone else have the same problem? I really can’t see what I am doing wrong.