hudson.plugins.mercurial
Class HgRc
java.lang.Object
hudson.plugins.mercurial.HgRc
final class HgRc
- extends Object
Parses the .hgrc file.
sections
private final Map<String,HgRc.Section> sections
SECTION_HEADER
private static final Pattern SECTION_HEADER
KEY_VALUE
private static final Pattern KEY_VALUE
LOGGER
private static final Logger LOGGER
NULL
private static final HgRc.Section NULL
HgRc
public HgRc(File repository)
throws IOException
- Throws:
IOException
HgRc
HgRc(Reader input,
File hgrc)
throws IOException
- Throws:
IOException
load
private static Reader load(File repository)
throws IOException
- Throws:
IOException
getHgRcFile
public static File getHgRcFile(File repository)
createSection
private HgRc.Section createSection(String name)
getSection
public HgRc.Section getSection(String name)
- Gets the section. If no such section exists, return an empty constant section.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010. All Rights Reserved.