Thanks so much Steve, you was very fast!
First, let me to explain the cenario that I am developing. I am buiding a graphic interface that choose a database, a context tag and the rotine from liquibase (update, rollback) to run. I choose all the params and the new changes are running in the database choosed.
I used the API that you told me:
- List<ChangeSetStatus> list = liquibase.getChangeSetStatuses(new Contexts("TEST"));
- for (ChangeSetStatus change : list) {
- System.out.println(change.getDescription() + " - " + change.getChangeSet().getFilePath());
- }
So, the code threw eighteen lines, the number of all my changesets exactly. The last line (changeset), it is the one that I want to run because of the context that I choosed on interface.
The cenario what I want, is it possible?
Thanks.