Package org.pentaho.di.core.util
Class CurrentDirectoryResolver
- java.lang.Object
-
- org.pentaho.di.core.util.CurrentDirectoryResolver
-
public class CurrentDirectoryResolver extends Object
This class resolve and update system variablesConst.INTERNAL_VARIABLE_ENTRY_CURRENT_DIRECTORYConst.INTERNAL_VARIABLE_JOB_FILENAME_DIRECTORYConst.INTERNAL_VARIABLE_TRANSFORMATION_FILENAME_DIRECTORYConst.INTERNAL_VARIABLE_JOB_FILENAME_NAME
-
-
Constructor Summary
Constructors Constructor Description CurrentDirectoryResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringnormalizeSlashes(String str)org.pentaho.di.core.variables.VariableSpaceresolveCurrentDirectory(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod, org.pentaho.di.core.variables.VariableSpace parentVariables, Repository repository, Job job, String filename)org.pentaho.di.core.variables.VariableSpaceresolveCurrentDirectory(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod, org.pentaho.di.core.variables.VariableSpace parentVariables, Repository repository, StepMeta stepMeta, String filename)org.pentaho.di.core.variables.VariableSpaceresolveCurrentDirectory(org.pentaho.di.core.variables.VariableSpace parentVariables, org.pentaho.di.repository.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
-
-
-
Method Detail
-
resolveCurrentDirectory
public org.pentaho.di.core.variables.VariableSpace resolveCurrentDirectory(org.pentaho.di.core.variables.VariableSpace parentVariables, org.pentaho.di.repository.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- Parameters:
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 space- Returns:
- new var space if inherit was set false or child var space with updated system variables
-
resolveCurrentDirectory
public org.pentaho.di.core.variables.VariableSpace resolveCurrentDirectory(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod, org.pentaho.di.core.variables.VariableSpace parentVariables, Repository repository, StepMeta stepMeta, String filename)
-
resolveCurrentDirectory
public org.pentaho.di.core.variables.VariableSpace resolveCurrentDirectory(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod, org.pentaho.di.core.variables.VariableSpace parentVariables, Repository repository, Job job, String filename)
-
-