public class CurrentDirectoryResolver extends Object
Const.INTERNAL_VARIABLE_ENTRY_CURRENT_DIRECTORY
Const.INTERNAL_VARIABLE_JOB_FILENAME_DIRECTORY
Const.INTERNAL_VARIABLE_TRANSFORMATION_FILENAME_DIRECTORY
Const.INTERNAL_VARIABLE_JOB_FILENAME_NAME
Constructor and Description |
---|
CurrentDirectoryResolver() |
Modifier and Type | Method and Description |
---|---|
String |
normalizeSlashes(String str) |
VariableSpace |
resolveCurrentDirectory(ObjectLocationSpecificationMethod specificationMethod,
VariableSpace parentVariables,
Repository repository,
Job job,
String filename) |
VariableSpace |
resolveCurrentDirectory(ObjectLocationSpecificationMethod specificationMethod,
VariableSpace parentVariables,
Repository repository,
StepMeta stepMeta,
String filename) |
VariableSpace |
resolveCurrentDirectory(VariableSpace parentVariables,
RepositoryDirectoryInterface directory,
String filename)
The logic of this method:
if we have directory we return the child var space with directory used as system property
if we have not directory we return the child var space with directory extracted from filanme
if we don not have directory and filename we will return the child var space without updates
|
public VariableSpace resolveCurrentDirectory(VariableSpace parentVariables, RepositoryDirectoryInterface directory, String filename)
parentVariables
- - parent variable space which can be inheriteddirectory
- - current path which will be used as path for start trans/jobfilename
- - is file which we use at this momentinheritParentVar
- - flag which indicate should we inherit variables from parent var space to child var spacepublic VariableSpace resolveCurrentDirectory(ObjectLocationSpecificationMethod specificationMethod, VariableSpace parentVariables, Repository repository, StepMeta stepMeta, String filename)
public VariableSpace resolveCurrentDirectory(ObjectLocationSpecificationMethod specificationMethod, VariableSpace parentVariables, Repository repository, Job job, String filename)
Copyright © 2018 Hitachi Vantara. All rights reserved.