# includeAll not working properly?

**URL:** <https://forum.liquibase.org/t/includeall-not-working-properly/5620>\
**Category:** General Discussion\
**Created:** [June 20, 2021, 9:22pm UTC](https://forum.liquibase.org/t/includeall-not-working-properly/5620 "2021-06-20T21:22:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabiopires10](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fabiopires10](https://forum.liquibase.org/u/fabiopires10)\
**Post date:** [June 20, 2021, 9:22pm UTC](https://forum.liquibase.org/t/includeall-not-working-properly/5620/1 "2021-06-20T21:22:03Z")

</div>

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

```auto
<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.

```auto
<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

```auto
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.

---

<div class="post-metadata">

**Author:** ![rakhi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/rakhi/32/288_2.png) [@rakhi](https://forum.liquibase.org/u/rakhi)\
**Post date:** [June 21, 2021, 5:46am UTC](https://forum.liquibase.org/t/includeall-not-working-properly/5620/2 "2021-06-21T05:46:03Z")

</div>

Doesn’t seems to be an issue in Liquibase. I tried using `includeall` tag at my end (through CLI) and found it working as expected.

Seems like something is getting missed at your end. Can you try running the project in debug mode using the IDE debug option and check where exactly this breaks to find the folder?

This will help us for sure.

Thanks!  
Rakhi Agrawal

---

<div class="post-metadata">

**Author:** ![fabiopires10](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fabiopires10](https://forum.liquibase.org/u/fabiopires10)\
**Post date:** [June 21, 2021, 9:35am UTC](https://forum.liquibase.org/t/includeall-not-working-properly/5620/3 "2021-06-21T09:35:44Z")

</div>

> <https://github.com/spring-projects/spring-boot/issues/11615>
>
> Hi,
> 
> i've got a weird issue with spring-boot m7 and liquibase 3.5.3
> 
> Liquiba…se change-log file is in the default path
> 
> \`\`\`
> spring:
> liquibase:
> change-log: classpath:db/changelog/db.changelog-master.yaml
> \`\`\`
> 
> During the boot spring reads correctly the file.
> Inside I have this infos:
> 
> \`\`\`
> databaseChangeLog:
> - includeAll:
> - path: db/changelog/changes
> \`\`\`
> 
> Suddenly, if the project runs inside eclipse everything works fine, the migration files are loaded and db populated, but if i run this from the console or from the dockerized image, these files are not found and the database is not populated. 
> 
> So I tried several configs:
> 
> \`\`\`
> databaseChangeLog:
> - includeAll:
> - path: classpath:db/changelog/changes
> \`\`\`
> 
> \`\`\`
> databaseChangeLog:
> - includeAll:
> - path: changes
> - relativeToChangelogFile: true
> \`\`\`
> 
> No one works outside eclipse.
> 
> Everything works if I use \`include\` instead of \`includeAll\`
> 
> \`\`\`
> databaseChangeLog:
> - include:
> - file: changes/v0001-init.sql
> - relativeToChangelogFile: true
> - include:
> - file: changes/v0002-questions.sql
> - relativeToChangelogFile: true
> \`\`\`
> When i test the jar I run this command (I guess docker does the same):
> 
> \`java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=development -Dspring.datasource.username=devel -Dspring.datasource.password=devel -Dspring.datasource.url=jdbc:postgresql://localhost:5433/db -jar build.jar\`
