public JobMeta getJobMeta( Repository rep, IMetaStore metaStore, VariableSpace space ) throws KettleException { JobMeta jobMeta = null; try { CurrentDirectoryResolver r = new CurrentDirectoryResolver(); VariableSpace tmpSpace = r.resolveCurrentDirectory( specificationMethod, space, rep, parentJob, getFilename() );
TransMeta mappingTransMeta = null; CurrentDirectoryResolver resolver = new CurrentDirectoryResolver(); VariableSpace tmpSpace = resolver.resolveCurrentDirectory( injectMeta.getSpecificationMethod(), space, rep, injectMeta
JobMeta mappingJobMeta = null; CurrentDirectoryResolver r = new CurrentDirectoryResolver(); VariableSpace tmpSpace = r.resolveCurrentDirectory( executorMeta.getSpecificationMethod(), space, rep, executorMeta.getParentStepMeta(), executorMeta.getFileName() );
CurrentDirectoryResolver r = new CurrentDirectoryResolver();
public TransMeta getTransMeta( Repository rep, IMetaStore metaStore, VariableSpace space ) throws KettleException { try { TransMeta transMeta = null; CurrentDirectoryResolver r = new CurrentDirectoryResolver(); VariableSpace tmpSpace = r.resolveCurrentDirectory( specificationMethod, space, rep, parentJob, getFilename() );
public static TransMeta getTransMetaFromRepo( String repositoryDir, String repositoryFile, Repository rep, VariableSpace space ) throws KettleException { if ( space instanceof JobEntryHadoopTransJobExecutor ) { CurrentDirectoryResolver r = new CurrentDirectoryResolver(); JobEntryHadoopTransJobExecutor jobEntry = (JobEntryHadoopTransJobExecutor) space; space = r.resolveCurrentDirectory( jobEntry, jobEntry.getParentJob().getRepositoryDirectory(), null ); } String repositoryDirS = space.environmentSubstitute( repositoryDir ); if ( repositoryDirS.isEmpty() ) { repositoryDirS = "/"; } String repositoryFileS = space.environmentSubstitute( repositoryFile ); RepositoryDirectoryInterface repositoryDirectory = rep.loadRepositoryDirectoryTree().findDirectory( repositoryDirS ); return rep.loadTransformation( repositoryFileS, repositoryDirectory, null, true, null ); }