Skip to content

Commit

Permalink
[MSCMPUB-47] use Java 7 Files.createTempDirectory() API
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Nov 11, 2020
1 parent c22670f commit 6c06f71
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -512,9 +513,8 @@ private void checkCreateRemoteSvnPath()
{

// create a temporary directory for svnexec
baseDir = File.createTempFile( "scm", "tmp" );
baseDir.delete();
baseDir.mkdirs();
baseDir = Files.createTempDirectory( "scm" ).toFile();

// to prevent fileSet cannot be empty
ScmFileSet scmFileSet = new ScmFileSet( baseDir, new File( "" ) );

Expand Down

0 comments on commit 6c06f71

Please sign in to comment.