@Override public void run() { FileUtils.deleteTree(tempDir); } }
@Override public void close() { if (extractDir != null) { FileUtils.deleteTree(extractDir); extractDir = null; } }
public void close() { FileUtils.deleteTree(tempDir); }
/** * Deletes the physically representation of the product from the hard disk. */ @Override public void deleteOutput() throws IOException { flush(); close(); if (outputFile != null && outputFile.exists() && outputFile.isFile()) { outputFile.delete(); } if (dataOutputDir != null && dataOutputDir.exists() && dataOutputDir.isDirectory()) { FileUtils.deleteTree(dataOutputDir); } }
private void deletePropertiesFile() { final File testDir = new File(TEST_DIR); if (testDir.isDirectory()) { if (!FileUtils.deleteTree(testDir)) { fail("unable to delete test directory"); } } }
public void testDeleteFileTreeExceptions() { try { FileUtils.deleteTree(null); fail("invalid null argument"); } catch (IllegalArgumentException e) { } }
@After public void tearDown() throws Exception { if (!FileUtils.deleteTree(TESTDATA_DIR)) { // @todo 1 tb/tb check why this fails. I suppose it has to do with the copy operation in the binning op // BinningOp line 595 - need to enable the fail after this has been clarified. //fail("Warning: failed to completely delete test I/O directory:" + TESTDATA_DIR); System.err.println("Warning: failed to completely delete test I/O directory:" + TESTDATA_DIR); } }
@After public void tearDown() throws Exception { if (!FileUtils.deleteTree(TESTDATA_DIR)) { System.out.println("Warning: failed to completely delete test I/O directory:" + TESTDATA_DIR); } }
@After public void tearDown() throws Exception { FileUtils.deleteTree(tempDir); }
@Before public void setUp() throws Exception { final String ioTempDir = System.getProperty("java.io.tmpdir"); tempDir = new File(ioTempDir, "tempEnviProductReaderTest"); if (tempDir.exists()) { FileUtils.deleteTree(tempDir); } assertEquals(true, tempDir.mkdir()); }
@After public void tearDown() throws Exception { if (product != null) { product.dispose(); } if (tDir != null) { FileUtils.deleteTree(tDir); } }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() { try { _inputStream.close(); _outputStream.close(); } catch (IOException e) { } FileUtils.deleteTree(GlobalTestConfig.getBeamTestDataOutputDirectory()); }
@Override protected void tearDown() throws Exception { GPF.getDefaultInstance().getOperatorSpiRegistry().removeOperatorSpi(algoSpi); GPF.getDefaultInstance().getOperatorSpiRegistry().removeOperatorSpi(writeSpi); File parentFile = outputFile.getParentFile(); FileUtils.deleteTree(parentFile); TileScheduler tileScheduler = JAI.getDefaultInstance().getTileScheduler(); tileScheduler.setParallelism(oldParallelism); }
@After public void tearDown() throws Exception { GPF.getDefaultInstance().getOperatorSpiRegistry().removeOperatorSpi(readSpi); GPF.getDefaultInstance().getOperatorSpiRegistry().removeOperatorSpi(doSpi); GPF.getDefaultInstance().getOperatorSpiRegistry().removeOperatorSpi(writeSpi); File parentFile = outputFile.getParentFile(); FileUtils.deleteTree(parentFile); }