org.jenkinsci.plugins.pom2config.handler.scm
Class ScmHandler.ScmHandlerSpec

java.lang.Object
  extended by org.jenkinsci.plugins.pom2config.Pom2ConfigHandler.Pom2ConfigHandlerSpec
      extended by org.jenkinsci.plugins.pom2config.handler.scm.ScmHandler.ScmHandlerSpec
Enclosing class:
ScmHandler

public static class ScmHandler.ScmHandlerSpec
extends Pom2ConfigHandler.Pom2ConfigHandlerSpec


Field Summary
 
Fields inherited from class org.jenkinsci.plugins.pom2config.Pom2ConfigHandler.Pom2ConfigHandlerSpec
pomValues
 
Constructor Summary
ScmHandler.ScmHandlerSpec()
           
 
Method Summary
 String getName()
           
protected  List<String> getSCMPaths(hudson.model.AbstractProject<?,?> project)
          Finds the SCM locations for a project.
 boolean isActivatedInJob(hudson.model.AbstractProject<?,?> project)
          Is the plugin activated in the job configuration
 boolean isLoaded()
           
 List<DataSet> parsePom(hudson.model.AbstractProject<?,?> project, Document doc)
           
protected  String replaceScmUrl(hudson.model.AbstractProject<?,?> project, String oldScmUrl, String newScmUrl)
          Replaces the SCM URL in the job configuration with the new one from the pom
 String setDetails(hudson.model.AbstractProject<?,?> project, net.sf.json.JSONObject formData)
           
 
Methods inherited from class org.jenkinsci.plugins.pom2config.Pom2ConfigHandler.Pom2ConfigHandlerSpec
clearPomValues, getPomValues, retrieveDetailsFromPom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScmHandler.ScmHandlerSpec

public ScmHandler.ScmHandlerSpec()
Method Detail

getName

public String getName()
Specified by:
getName in class Pom2ConfigHandler.Pom2ConfigHandlerSpec

isLoaded

public boolean isLoaded()
Specified by:
isLoaded in class Pom2ConfigHandler.Pom2ConfigHandlerSpec

isActivatedInJob

public boolean isActivatedInJob(hudson.model.AbstractProject<?,?> project)
Description copied from class: Pom2ConfigHandler.Pom2ConfigHandlerSpec
Is the plugin activated in the job configuration

Specified by:
isActivatedInJob in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
Returns:
true if it is or no if not

getSCMPaths

protected List<String> getSCMPaths(hudson.model.AbstractProject<?,?> project)
Finds the SCM locations for a project.

Returns:
List of found SCM paths

replaceScmUrl

protected String replaceScmUrl(hudson.model.AbstractProject<?,?> project,
                               String oldScmUrl,
                               String newScmUrl)
Replaces the SCM URL in the job configuration with the new one from the pom

Parameters:
project -
oldScmUrl - , the old SCM URL from the job configuration
newScmUrl - . the new SCM URL from the pom
Throws:
IOException

parsePom

public List<DataSet> parsePom(hudson.model.AbstractProject<?,?> project,
                              Document doc)
                       throws IOException
Specified by:
parsePom in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
Throws:
IOException

setDetails

public String setDetails(hudson.model.AbstractProject<?,?> project,
                         net.sf.json.JSONObject formData)
Specified by:
setDetails in class Pom2ConfigHandler.Pom2ConfigHandlerSpec


Copyright © 2004-2013. All Rights Reserved.