Skip to content

Commit

Permalink
[MINVOKER-272] use Java 7 Files.createTempDirectory(...) API
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Dec 13, 2020
1 parent c18d8e5 commit a46bf19
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,7 @@ private void cloneProjects( Collection<String> projectPaths )
// avoid infinite recursion if the cloneTo path is a subdirectory.
if ( cloneSubdir != null )
{
File temp = File.createTempFile( "pre-invocation-clone.", "" );
temp.delete();
temp.mkdirs();
File temp = Files.createTempDirectory( "pre-invocation-clone." ).toFile();

copyDirectoryStructure( projectsDirectory, temp );

Expand Down

0 comments on commit a46bf19

Please sign in to comment.