mirror of https://github.com/apache/maven.git
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:
parent
5a2501839c
commit
7d9690a0a7
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue