Skip to content

Commit a46bf19

Browse files
committed
[MINVOKER-272] use Java 7 Files.createTempDirectory(...) API
1 parent c18d8e5 commit a46bf19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,9 +1144,7 @@ private void cloneProjects( Collection<String> projectPaths )
11441144
// avoid infinite recursion if the cloneTo path is a subdirectory.
11451145
if ( cloneSubdir != null )
11461146
{
1147-
File temp = File.createTempFile( "pre-invocation-clone.", "" );
1148-
temp.delete();
1149-
temp.mkdirs();
1147+
File temp = Files.createTempDirectory( "pre-invocation-clone." ).toFile();
11501148

11511149
copyDirectoryStructure( projectsDirectory, temp );
11521150

0 commit comments

Comments
 (0)