de.smartics.ci.config.hudson
Class HudsonConfigEntry

Package class diagram package HudsonConfigEntry
java.lang.Object
  extended by de.smartics.ci.config.hudson.AbstractHudsonConfigHelper
      extended by de.smartics.ci.config.hudson.HudsonConfigEntry

public final class HudsonConfigEntry
     
     
extends AbstractHudsonConfigHelper

Helper to create Hudson configuration entry elements.


Field Summary
 
Fields inherited from class de.smartics.ci.config.hudson.AbstractHudsonConfigHelper
hudsonConfig
 
Constructor Summary
HudsonConfigEntry(org.jdom.Document hudsonConfig)
          Default constructor.
 
Method Summary
 void addEntry(org.jdom.Element entry)
          Adds the given entry to the document.
 void addScmConfig(ScmType scmType, String scmUrl)
          Adds information for the given SCM provider as an entry to the document.
 
Methods inherited from class de.smartics.ci.config.hudson.AbstractHudsonConfigHelper
createDocument, getHudsonConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HudsonConfigEntry

public HudsonConfigEntry(org.jdom.Document hudsonConfig)
Default constructor.

Parameters:
hudsonConfig - the Hudson configuration XML file to add to.
Method Detail

addEntry

public void addEntry(org.jdom.Element entry)
              throws org.jdom.JDOMException
Adds the given entry to the document.

Parameters:
entry - the entry to add.
Throws:
org.jdom.JDOMException - on any problem accessing the Hudson configuration XML document.

addScmConfig

public void addScmConfig(ScmType scmType,
                         String scmUrl)
                  throws org.jdom.JDOMException
Adds information for the given SCM provider as an entry to the document.

Parameters:
scmType - the type of the SCM provider to add.
scmUrl - the connection URL to the SCM server.
Throws:
org.jdom.JDOMException - on any problem accessing the Hudson configuration XML document.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.