Package org.pentaho.di.core.util
Class CurrentDirectoryResolver
java.lang.Object
org.pentaho.di.core.util.CurrentDirectoryResolver
This class resolve and update system variables
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionnormalizeSlashes
(String str) 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) 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) 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
-
Constructor Details
-
CurrentDirectoryResolver
public CurrentDirectoryResolver()
-
-
Method Details
-
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) -
normalizeSlashes
-