jp.ikedam.jenkins.plugins.jobcopy_builder
クラス AdditionalFileset

java.lang.Object
  上位を拡張 hudson.model.AbstractDescribableImpl<AdditionalFileset>
      上位を拡張 jp.ikedam.jenkins.plugins.jobcopy_builder.AdditionalFileset
すべての実装されたインタフェース:
hudson.model.Describable<AdditionalFileset>, Serializable

public class AdditionalFileset
extends hudson.model.AbstractDescribableImpl<AdditionalFileset>
implements Serializable

A set of files to copy additional to JOBNAME/config.xml.

関連項目:
直列化された形式

入れ子のクラスの概要
static class AdditionalFileset.DescriptorImpl
          The internal class to work with views.
 
コンストラクタの概要
AdditionalFileset(String includeFile, String excludeFile, boolean overwrite, List<JobcopyOperation> jobcopyOperationList)
          Constructor to instantiate from parameters in the job configuration page.
 
メソッドの概要
 String getExcludeFile()
          Returns the pattern of file not to copy.
protected  List<String> getFilesToCopy(File dir)
           
 String getIncludeFile()
          Returns the pattern of file to copy.
 List<JobcopyOperation> getJobcopyOperationList()
          Returns the list of operations.
 boolean isOverwrite()
          Returns whether to overwrite an existing job.
 boolean perform(hudson.model.TopLevelItem toJob, hudson.model.TopLevelItem fromJob, hudson.EnvVars env, PrintStream logger)
          Copy the additional files and apply additional operations.
protected  boolean performToFile(File dstFile, File srcFile, hudson.EnvVars env, PrintStream logger)
          Process one file.
 
クラス hudson.model.AbstractDescribableImpl から継承されたメソッド
getDescriptor
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AdditionalFileset

@DataBoundConstructor
public AdditionalFileset(String includeFile,
                                              String excludeFile,
                                              boolean overwrite,
                                              List<JobcopyOperation> jobcopyOperationList)
Constructor to instantiate from parameters in the job configuration page. When instantiating from the saved configuration, the object is directly serialized with XStream, and no constructor is used.

パラメータ:
includeFile - a pattern of files to copy.
excludeFile - a pattern of files not to copy.
overwrite - whether to overwrite if the file if it is already existing.
jobcopyOperationList - the list of operations to be performed when copying.
メソッドの詳細

getIncludeFile

public String getIncludeFile()
Returns the pattern of file to copy.

戻り値:
the includeFile

getExcludeFile

public String getExcludeFile()
Returns the pattern of file not to copy.

戻り値:
the excludeFile

isOverwrite

public boolean isOverwrite()
Returns whether to overwrite an existing job. If the copied-to file is already exists, jobcopy build step works as following depending on this value.
isOverwrite behavior
true Overwrite the file.
false Not overwrite the file.

戻り値:
whether to overwrite an existing file.

getJobcopyOperationList

public List<JobcopyOperation> getJobcopyOperationList()
Returns the list of operations.

戻り値:
the list of operations

perform

public boolean perform(hudson.model.TopLevelItem toJob,
                       hudson.model.TopLevelItem fromJob,
                       hudson.EnvVars env,
                       PrintStream logger)
Copy the additional files and apply additional operations.

パラメータ:
toJob -
fromJob -
logger -
戻り値:
whether the work succeeded.

getFilesToCopy

protected List<String> getFilesToCopy(File dir)

performToFile

protected boolean performToFile(File dstFile,
                                File srcFile,
                                hudson.EnvVars env,
                                PrintStream logger)
Process one file.

パラメータ:
dstFile -
srcFile -
logger -
戻り値:


Copyright © 2004-2013. All Rights Reserved.