if ( !KettleVFS.startsWithScheme( filename ) && !FileUtil.isFullyQualified( filename ) ) { filepath = initialDir + filename;
public Job executeFilesystemBasedCommand( final String initialDir, final String filename ) throws Exception { if ( Utils.isEmpty( filename ) ) { return null; } blockAndThrow( getKettleInit() ); String fileName = filename; // If the filename starts with scheme like zip:, then isAbsolute() will return false even though // the path following the zip is absolute path. Check for isAbsolute only if the fileName does not start with scheme if ( !KettleVFS.startsWithScheme( fileName ) && !FileUtil.isFullyQualified( fileName ) ) { fileName = initialDir + fileName; } JobMeta jobMeta = new JobMeta( fileName, null, null ); return new Job( null, jobMeta ); }
} else if ( readurl && KettleVFS.startsWithScheme( StringXML ) ) { data.document = reader.read( KettleVFS.getInputStream( StringXML ) ); } else if ( readurl ) {