File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
sierra-test/src/main/java/org/httprpc/sierra/test
sierra/src/main/java/org/httprpc/sierra Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2222import java .io .IOException ;
2323import java .nio .file .Files ;
2424import java .nio .file .Path ;
25+ import java .nio .file .StandardCopyOption ;
2526
2627import static org .httprpc .kilo .util .Collections .*;
2728
@@ -45,7 +46,7 @@ public void run() {
4546
4647 for (var i = 0 ; i < n ; i ++) {
4748 try (var inputStream = GreetingTest .class .getResourceAsStream (names .get (i ))) {
48- Files .copy (inputStream , paths .get (i ));
49+ Files .copy (inputStream , paths .get (i ), StandardCopyOption . REPLACE_EXISTING );
4950 }
5051 }
5152
Original file line number Diff line number Diff line change @@ -834,7 +834,7 @@ private URL getURL(String value) {
834834 if (owner != null ) {
835835 return owner .getClass ().getResource (value );
836836 } else {
837- var uri = path .getParent (). resolve (value ).toUri ();
837+ var uri = path .resolveSibling (value ).toUri ();
838838
839839 try {
840840 return uri .toURL ();
You can’t perform that action at this time.
0 commit comments