public class AdditionalFileset extends AbstractDescribableImpl<AdditionalFileset> implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AdditionalFileset.DescriptorImpl
The internal class to work with views.
|
Constructor and Description |
---|
AdditionalFileset(String includeFile,
String excludeFile,
boolean overwrite,
List<JobcopyOperation> jobcopyOperationList)
Constructor to instantiate from parameters in the job configuration page.
|
Modifier and Type | Method and Description |
---|---|
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(TopLevelItem toJob,
TopLevelItem fromJob,
EnvVars env,
PrintStream logger)
Copy the additional files and apply additional operations.
|
protected boolean |
performToFile(File dstFile,
File srcFile,
EnvVars env,
PrintStream logger)
Process one file.
|
getDescriptor
@DataBoundConstructor public AdditionalFileset(String includeFile, String excludeFile, boolean overwrite, List<JobcopyOperation> jobcopyOperationList)
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.public String getIncludeFile()
public String getExcludeFile()
public boolean isOverwrite()
isOverwrite | behavior |
---|---|
true | Overwrite the file. |
false | Not overwrite the file. |
public List<JobcopyOperation> getJobcopyOperationList()
public boolean perform(TopLevelItem toJob, TopLevelItem fromJob, EnvVars env, PrintStream logger)
toJob
- job to copy tofromJob
- job to copy fromenv
- environment variableslogger
- consoleprotected boolean performToFile(File dstFile, File srcFile, EnvVars env, PrintStream logger)
dstFile
- file to copy tosrcFile
- file to copy fromenv
- environment variableslogger
- consoleCopyright © 2016–2023. All rights reserved.