Created
August 2, 2016 02:17
-
-
Save maximdim/b52ce446e051b2a49d0567a09d1c385b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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