includeAll tag

The <includeAll> tag allows you to break up your changelogs into more manageable pieces. It is similar to the Include tag, but instead of passing a particular changelog file to include, you specify a directory and it will include all *.xml files as changelog files, and all *.sql files as individual changes. All files that are found are run in order according to alphabetical order.


<?xml version="1.0" encoding="UTF-8"?>  

    <includeAll  path="com/example/changelogs/"/>  

Warning: Do not use the includeAll tag to simulate Ruby on Rails Active Migrations strategy of a list of changes, one per file, that are ran in file order.

While the includeAll tag has many valuable uses, its use can cause problems down the road. The biggest thing to avoid is to While this seems like a good idea at first, it quickly runs into problems.

If you do choose to use the includeAll tag, make sure you have a naming strategy in place that will insure that you will never have conflicts or need to rename files to change to force a reordering.