Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-279

Simplify and improve trusted checksum sources

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • Resolver
    • None

    Description

      High level changes:

      • support class should meddle way less, it is here to provide some utils and protect from future API changes
      • sparse source: use `FileProcessor` both both, checksum read and write (instead to mix in `Files.write`)
      • summary source: heavily enhanced, on save it truncate or merges with existing summary file, added change detection (prevents save when no change to save), summary file is written out atomically, and finally file format is made GNU Coreutils formatted, hence is usable with GNU sha1sum and alike OS tools
      • introduce FileUtils, Java NIO2 based file writing utility

      For both checksum sources the semantics of concurrent lookup/write is cleared up and documented (and fixed in summary). For both purposes (lookup or write), the source must be explicitly enabled.

      Tests redone as well, and should work with any writable trusted checksum source.


      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              cstamas Tamas Cservenak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: