hudson.plugins.mercurial
Class HgRc
java.lang.Object
hudson.plugins.mercurial.HgRc
final class HgRc
- extends java.lang.Object
Parses the .hgrc file.
|
Constructor Summary |
HgRc(java.io.File repository)
|
HgRc(java.io.Reader input,
java.io.File hgrc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sections
private final java.util.Map<java.lang.String,HgRc.Section> sections
SECTION_HEADER
private static final java.util.regex.Pattern SECTION_HEADER
KEY_VALUE
private static final java.util.regex.Pattern KEY_VALUE
LOGGER
private static final java.util.logging.Logger LOGGER
NULL
private static final HgRc.Section NULL
HgRc
public HgRc(java.io.File repository)
throws java.io.IOException
- Throws:
java.io.IOException
HgRc
HgRc(java.io.Reader input,
java.io.File hgrc)
throws java.io.IOException
- Throws:
java.io.IOException
load
private static java.io.Reader load(java.io.File repository)
throws java.io.IOException
- Throws:
java.io.IOException
getHgRcFile
public static java.io.File getHgRcFile(java.io.File repository)
createSection
private HgRc.Section createSection(java.lang.String name)
getSection
public HgRc.Section getSection(java.lang.String name)
- Gets the section. If no such section exists, return an empty constant section.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.