File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
driver/src/test/java/org/neo4j/driver/v1/util Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 26
26
import java .io .IOException ;
27
27
import java .io .PrintWriter ;
28
28
import java .net .URL ;
29
- import java .nio .file .Files ;
30
- import java .nio .file .StandardCopyOption ;
31
29
32
30
import org .neo4j .driver .v1 .Driver ;
33
31
import org .neo4j .driver .v1 .Session ;
@@ -111,8 +109,8 @@ public void restartServerOnEmptyDatabase( Neo4jSettings neo4jSettings ) throws E
111
109
112
110
public void updateEncryptionKeyAndCert ( File key , File cert ) throws Exception
113
111
{
114
- Files . copy ( key . toPath () , Neo4jSettings .DEFAULT_TLS_KEY_FILE . toPath (), StandardCopyOption . REPLACE_EXISTING );
115
- Files . copy ( cert . toPath () , Neo4jSettings .DEFAULT_TLS_CERT_FILE . toPath (), StandardCopyOption . REPLACE_EXISTING );
112
+ FileTools . copyFile ( key , Neo4jSettings .DEFAULT_TLS_KEY_FILE );
113
+ FileTools . copyFile ( cert , Neo4jSettings .DEFAULT_TLS_CERT_FILE );
116
114
restartServerOnEmptyDatabase ( Neo4jSettings .DEFAULT );
117
115
}
118
116
You can’t perform that action at this time.
0 commit comments