Class IgnoreList

java.lang.Object
io.root.patcher.IgnoreList

public final class IgnoreList extends Object
Set of dependency coordinates to skip patching, loaded from a .rootioignore file and/or supplied entries. Each entry is group:artifact@version (exact, case-sensitive).
  • Method Details

    • load

      public static IgnoreList load(File rootDir, List<String> extraEntries)
      Builds an ignore set from <rootDir>/.rootioignore (silently skipped if absent) merged with extraEntries. Blank lines and lines starting with # are ignored; malformed entries are logged at warn and skipped.
      Parameters:
      rootDir - directory to look for .rootioignore in
      extraEntries - additional group:artifact@version entries (e.g. from config)
      Returns:
      a populated IgnoreList
    • toApiEntries

      public List<String> toApiEntries()
      Returns all ignore entries as a list of "group:artifact@version" strings, suitable for passing to the Root.io API as the ignore field.