Class LocalScmMetadataUtils


  • public class LocalScmMetadataUtils
    extends java.lang.Object
    Utils for dealing with LocalScmMetadata.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FILENAME
      The name of the metadata file.
      private static org.slf4j.Logger LOGGER  
    • Field Detail

      • FILENAME

        public static final java.lang.String FILENAME
        The name of the metadata file.
        See Also:
        Constant Field Values
      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • LocalScmMetadataUtils

        public LocalScmMetadataUtils()
    • Method Detail

      • buildMetadata

        public LocalScmMetadata buildMetadata​(java.io.File repository)
                                       throws java.io.IOException
        Builds LocalScmMetadata based on contents of repository.
        Parameters:
        repository -
        Returns:
        TODO
        Throws:
        java.io.IOException - if any
      • writeMetadata

        public void writeMetadata​(java.io.File destinationDir,
                                  LocalScmMetadata metadata)
                           throws java.io.IOException
        Writes metadata file.
        Parameters:
        destinationDir -
        metadata -
        Throws:
        java.io.IOException - if any
      • readMetadata

        public LocalScmMetadata readMetadata​(java.io.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