delete temp files on exit

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-18 23:41:36 +00:00
parent 5a2501839c
commit 7d9690a0a7
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ public abstract class AbstractGeneratorTestCase
pluginDescriptor.setDependencies( Collections.singletonList( dependency ) ); pluginDescriptor.setDependencies( Collections.singletonList( dependency ) );
File tempFile = File.createTempFile( "testGenerator-outDir", ".marker.txt" ).getAbsoluteFile(); File tempFile = File.createTempFile( "testGenerator-outDir", ".marker.txt" ).getAbsoluteFile();
tempFile.deleteOnExit();
File destinationDirectory = tempFile.getParentFile(); File destinationDirectory = tempFile.getParentFile();
generator.execute( destinationDirectory, pluginDescriptor ); generator.execute( destinationDirectory, pluginDescriptor );