I have to add selected schemas to be crawled using schemacrawler. How can we add multiple schemas into inclusion rule of schemacrawler?
like :
final SchemaCrawlerOptions options = new SchemaCrawlerOptions();
options.setSchemaInclusionRule(new InclusionRule("schema1,schema2", InclusionRule.NONE));
InclusionRule accepts regexp pattern. You can pass java.util.regex.Pattern instance or String, in latter case it will be compiled for you. If I am not mistaken, you can use
|sign to make pattern match multiple options. E.g.,"schema1|schema2".You can test your patterns with a simple program; e.g.
.. which prints: