Skip to content

Commit c766854

Browse files
Fix CDS archiveFile.setWritable (#1082)
Use jri.resolve(archiveFile), as archiveFile is a path relative to the JRI directory. Fixes #1078
1 parent 1dad467 commit c766854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linker/src/main/java/io/helidon/build/linker/ClassDataSharing.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2022 Oracle and/or its affiliates.
2+
* Copyright (c) 2019, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -365,7 +365,7 @@ private void buildCdsArchive() throws Exception {
365365
}
366366
if (Constants.OS == OSType.Windows) {
367367
// Try to make the archive file writable so that a second run can delete the image
368-
archiveFile.toFile().setWritable(true);
368+
jri.resolve(archiveFile).toFile().setWritable(true);
369369
}
370370
}
371371

0 commit comments

Comments
 (0)