@Test public void testDeleteTempFileAndFolderWithoutGenerate() { pvfsFileAliaser.deleteTempFileAndFolder(); assertFalse( finalFile.exists() ); assertTempFileExistsAndDelete(); }
public void deleteTempFileAndFolder() { try { if ( aliasingIsActive() ) { FileObject srcFile = KettleVFS.getFileObject( temporaryFilePath, variableSpace ); srcFile.getParent().deleteAll(); } } catch ( FileSystemException | KettleFileException e ) { log.logError( e.getMessage(), e ); } }
PvfsFileAliaser { public void deleteTempFileAndFolder() { try { if ( aliasingIsActive() ) { FileObject srcFile = KettleVFS.getFileObject( temporaryFilePath, variableSpace ); srcFile.getParent().deleteAll(); } } catch ( FileSystemException | KettleFileException e ) { log.logError( e.getMessage(), e ); } } }
PvfsFileAliaser { public void deleteTempFileAndFolder() { try { if ( aliasingIsActive() ) { FileObject srcFile = KettleVFS.getFileObject( temporaryFilePath, variableSpace ); srcFile.getParent().deleteAll(); } } catch ( FileSystemException | KettleFileException e ) { log.logError( e.getMessage(), e ); } } PvfsFileAliaser( String finalFilePath, VariableSpace variableSpace, IPvfsAliasGenerator aliasGenerator,
                          boolean isOverwriteOutput, LogChannelInterface log ); }
PvfsFileAliaser { public void deleteTempFileAndFolder() { try { if ( aliasingIsActive() ) { FileObject srcFile = KettleVFS.getFileObject( temporaryFilePath, variableSpace ); srcFile.getParent().deleteAll(); } } catch ( FileSystemException | KettleFileException e ) { log.logError( e.getMessage(), e ); } } PvfsFileAliaser( String finalFilePath, VariableSpace variableSpace, IPvfsAliasGenerator aliasGenerator,
                          boolean isOverwriteOutput, LogChannelInterface log ); String generateAlias(); void copyFileToFinalDestination(); void deleteTempFileAndFolder(); }
PvfsFileAliaser { public void deleteTempFileAndFolder() { try { if ( aliasingIsActive() ) { FileObject srcFile = KettleVFS.getFileObject( temporaryFilePath, variableSpace ); srcFile.getParent().deleteAll(); } } catch ( FileSystemException | KettleFileException e ) { log.logError( e.getMessage(), e ); } } PvfsFileAliaser( String finalFilePath, VariableSpace variableSpace, IPvfsAliasGenerator aliasGenerator,
                          boolean isOverwriteOutput, LogChannelInterface log ); String generateAlias(); void copyFileToFinalDestination(); void deleteTempFileAndFolder();  }