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 2626import java .io .IOException ;
2727import java .io .PrintWriter ;
2828import java .net .URL ;
29- import java .nio .file .Files ;
30- import java .nio .file .StandardCopyOption ;
3129
3230import org .neo4j .driver .v1 .Driver ;
3331import org .neo4j .driver .v1 .Session ;
@@ -111,8 +109,8 @@ public void restartServerOnEmptyDatabase( Neo4jSettings neo4jSettings ) throws E
111109
112110 public void updateEncryptionKeyAndCert ( File key , File cert ) throws Exception
113111 {
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 );
116114 restartServerOnEmptyDatabase ( Neo4jSettings .DEFAULT );
117115 }
118116
You can’t perform that action at this time.
0 commit comments