Class ConfigurationLoader


  • public class ConfigurationLoader
    extends Object
    • Constructor Detail

      • ConfigurationLoader

        public ConfigurationLoader​(File rootDirectory,
                                   org.codehaus.plexus.logging.Logger logger)
    • Method Detail

      • load

        public Configuration load()
                           throws org.apache.maven.MavenExecutionException
        Throws:
        org.apache.maven.MavenExecutionException
      • loadFromRoot

        public static Configuration loadFromRoot​(File rootDirectory,
                                                 org.codehaus.plexus.logging.Logger logger)
                                          throws org.apache.maven.MavenExecutionException
        Deprecated.
        use new ConfigurationLoader(File, Logger).load() instead.
        Loads a Configuration object from the root directory.
        Parameters:
        rootDirectory - the root directory of the maven project
        logger - the logger to report activity
        Returns:
        a non null Configuration object from the file $rootDirectory/.mvn/jgitver.config.xml or a default one with default values if the configuration file does not exist
        Throws:
        org.apache.maven.MavenExecutionException - if the file exists but cannot be read correctly