Skip to content

Instantly share code, notes, and snippets.

@maximdim
Created August 2, 2016 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximdim/b52ce446e051b2a49d0567a09d1c385b to your computer and use it in GitHub Desktop.
Save maximdim/b52ce446e051b2a49d0567a09d1c385b to your computer and use it in GitHub Desktop.
package liquibase.changelog;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexResourceFilter implements IncludeAllFilter {
private final static Pattern PATTERN = Pattern.compile(".*\\.sql$");
@Override
public boolean include(String changeLogPath) {
Matcher matcher = PATTERN.matcher(changeLogPath);
return matcher.matches();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment