de.smartics.ci.config.hudson
Class HudsonConfigScmElement

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

public final class HudsonConfigScmElement
     
     
extends AbstractHudsonConfigHelper

Creates a Hudson configuration element for the scm information.

See Also:
HudsonConfigEntry.addScmConfig(ScmType, String)

Field Summary
 
Fields inherited from class de.smartics.ci.config.hudson.AbstractHudsonConfigHelper
hudsonConfig
 
Constructor Summary
HudsonConfigScmElement(org.jdom.Document hudsonConfig)
          Constructor.
 
Method Summary
 void addScmConfig(ScmType scmType, String scmUrl)
          Adds information for the given SCM provider as an element 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

HudsonConfigScmElement

public HudsonConfigScmElement(org.jdom.Document hudsonConfig)
Constructor.

Parameters:
hudsonConfig - the Hudson configuration XML file to add to.
See Also:
AbstractHudsonConfigHelper.AbstractHudsonConfigHelper(org.jdom.Document)
Method Detail

addScmConfig

public void addScmConfig(ScmType scmType,
                         String scmUrl)
                  throws org.jdom.JDOMException
Adds information for the given SCM provider as an element 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.