--- a/jdk/test/tools/jlink/JLinkTest.java Tue Dec 13 09:55:38 2016 +0800
+++ b/jdk/test/tools/jlink/JLinkTest.java Mon Dec 12 18:56:50 2016 -0800
@@ -192,11 +192,13 @@
{
// License files
+ Path file = Paths.get("LICENSE");
+ Files.createFile(file);
String copied = "LICENSE";
String[] arr = copied.split(",");
String[] copyFiles = new String[2];
copyFiles[0] = "--copy-files";
- copyFiles[1] = copied;
+ copyFiles[1] = file.toAbsolutePath().toString();
Path imageDir = helper.generateDefaultImage(copyFiles, "composite2").assertSuccess();
helper.checkImage(imageDir, "composite2", null, null, arr);
}