Class CurrentDirectoryResolver


  • public class CurrentDirectoryResolver
    extends Object
    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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String normalizeSlashes​(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 Detail

      • CurrentDirectoryResolver

        public CurrentDirectoryResolver()
    • 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 inherited
        directory - - current path which will be used as path for start trans/job
        filename - - is file which we use at this moment
        inheritParentVar - - 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

        public String normalizeSlashes​(String str)