/** * Process only matching files/entries, e.g."{@code dir/file.zip!dir/file}" or "<code>**/file</code>". * See also "Globs", below. * * @main.commandLineOptionGroup File-Selection */ @CommandLineOption public void setPath(@RegexFlags(Pattern2.WILDCARD | Glob.INCLUDES_EXCLUDES) Glob glob) { this.diff.setPathPredicate(glob); }
/** * Look into compressed and archive contents if their <var>format</var>:<var>path</var> matches the glob. * The default is to look into any recognised archive or compressed contents. * <br /> * Supported archive formats in this runtime configuration are: * <br /> * {@code ${archive.formats}} * <br /> * Supported compression formats in this runtime configuration are: * <br /> * {@code ${compression.formats}} * * @param discriminator <var>format-glob</var>:<var>path-glob</var> */ @CommandLineOption public void lookInto(@RegexFlags(Pattern2.WILDCARD | Glob.INCLUDES_EXCLUDES) Glob discriminator) { this.pack.setLookIntoFormat(discriminator); }
/** * Look into compressed and archive contents if its format matches <var>format-glob</var> and its path matches the * <var>path-glob</var>. * The default is to look into any recognised archive or compressed contents. * <br /> * Supported archive formats in this runtime configuration are: * <br /> * {@code ${archive.formats}} * <br /> * Supported compression formats in this runtime configuration are: * <br /> * {@code ${compression.formats}} * * @main.commandLineOptionGroup File-Selection * @param discriminator <var>format-glob</var>:<var>path-glob</var> */ @CommandLineOption public void setLookInto(@RegexFlags(Glob.INCLUDES_EXCLUDES | Pattern2.WILDCARD) Glob discriminator) { this.diff.setLookInto(discriminator); }
/** * Lines in files <var>path-pattern</var> that contain <var>line-regex</var> and all capturing groups are equal are * regarded as equal. * * @main.commandLineOptionGroup Contents-Processing */ @CommandLineOption(cardinality = CommandLineOption.Cardinality.ANY) public void addLineEquivalence( @RegexFlags(Pattern2.WILDCARD | Glob.INCLUDES_EXCLUDES) Glob pathPattern, Pattern lineRegex ) { this.diff.addEquivalentLine(new LineEquivalence(pathPattern, lineRegex)); }
/** * Ignore differences in files <var>path-pattern</var> where all lines (deleted, changed or added) match the given * <var>line-regex</var>. * * @main.commandLineOptionGroup Contents-Processing */ @CommandLineOption(name = { "ignore", "I" }, cardinality = CommandLineOption.Cardinality.ANY) public void addIgnore( @RegexFlags(Pattern2.WILDCARD | Glob.INCLUDES_EXCLUDES) Glob pathPattern, Pattern lineRegex ) { this.diff.addIgnore(new LineEquivalence(pathPattern, lineRegex)); }