Feature: allow servlet listener to set change log parameters (patch attached)

I had a look at the LiquibaseServletListener class and thought it would be nice if this class could also set change log parameters on the Liquibase instance it creates.

I’ve attached a patch against the trunk that allows it to do this; feel free to ignore it, hack it, overhaul it, etc.

The gist is it looks for ServletContext initParameters starting with “LIQUIBASE_CHANGELOG_” (note the trailing underscore) and then grabs the rest of the initParameterName to use as the change log parameter name.  It then calls liquibase.setChangeLogParameter(nameFragment, valueOfInitParameter).


I like the idea, but I think I am going to change the the format of the parameters to be more flexible for additional configuration options.  Thanks for the patch and the idea.