Class ProjectLevelConfig


  • public class ProjectLevelConfig
    extends VersionedMetaData
    Configuration file in the projects refs/meta/config branch.
    • Constructor Detail

      • ProjectLevelConfig

        public ProjectLevelConfig​(String fileName,
                                  ProjectState project)
    • Method Detail

      • onLoad

        protected void onLoad()
                       throws IOException,
                              org.eclipse.jgit.errors.ConfigInvalidException
        Description copied from class: VersionedMetaData
        Set up the metadata, parsing any state from the loaded revision.
        Specified by:
        onLoad in class VersionedMetaData
        Throws:
        IOException
        org.eclipse.jgit.errors.ConfigInvalidException
      • get

        public org.eclipse.jgit.lib.Config get()
      • getWithInheritance

        public org.eclipse.jgit.lib.Config getWithInheritance()
      • getWithInheritance

        public org.eclipse.jgit.lib.Config getWithInheritance​(boolean merge)
        Get a Config that includes the values from all parent projects.

        Merging means that matching sections/subsection will be merged to include the values from both parent and child config.

        No merging means that matching sections/subsections in the child project will replace the corresponding value from the parent.

        Parameters:
        merge - whether to merge parent values with child values or not.
        Returns:
        a combined config.
      • onSave

        protected boolean onSave​(org.eclipse.jgit.lib.CommitBuilder commit)
                          throws IOException,
                                 org.eclipse.jgit.errors.ConfigInvalidException
        Description copied from class: VersionedMetaData
        Save any changes to the metadata in a commit.
        Specified by:
        onSave in class VersionedMetaData
        Returns:
        true if the commit should proceed, false to abort.
        Throws:
        IOException
        org.eclipse.jgit.errors.ConfigInvalidException