hudson.plugins.mercurial
Class HgRc

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

final class HgRc
extends Object

Parses the .hgrc file.


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

Field Detail

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

HgRc

public HgRc(File repository)
     throws IOException
Throws:
IOException

HgRc

HgRc(Reader input,
     File hgrc)
throws IOException
Throws:
IOException
Method Detail

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.