Class LocalScmMetadataUtils


  • public class LocalScmMetadataUtils
    extends Object
    Utils for dealing with LocalScmMetadata
    Author:
    Arne Degenring
    • Constructor Detail

      • LocalScmMetadataUtils

        public LocalScmMetadataUtils​(ScmLogger logger)
    • Method Detail

      • buildMetadata

        public LocalScmMetadata buildMetadata​(File repository)
                                       throws IOException
        Builds LocalScmMetadata based on contents of repository
        Parameters:
        repository -
        Returns:
        Throws:
        IOException - if any
      • readMetadata

        public LocalScmMetadata readMetadata​(File dir)
        Reads metadata file from given directory.
        Parameters:
        dir - The directory that should contain the metadata file
        Returns:
        LocalScmMetadata or null in case of problems