hudson.plugins.mercurial
Class HgRc

java.lang.Object
  extended by hudson.plugins.mercurial.HgRc

final class HgRc
extends java.lang.Object

Parses the .hgrc file.


Nested Class Summary
static class HgRc.Section
           
 
Field Summary
private static java.util.regex.Pattern KEY_VALUE
           
private static java.util.logging.Logger LOGGER
           
private static HgRc.Section NULL
           
private static java.util.regex.Pattern SECTION_HEADER
           
private  java.util.Map<java.lang.String,HgRc.Section> sections
           
 
Constructor Summary
HgRc(java.io.File repository)
           
HgRc(java.io.Reader input, java.io.File hgrc)
           
 
Method Summary
private  HgRc.Section createSection(java.lang.String name)
           
static java.io.File getHgRcFile(java.io.File repository)
           
 HgRc.Section getSection(java.lang.String name)
          Gets the section.
private static java.io.Reader load(java.io.File repository)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.