src/jdk.jlink/share/classes/jdk/tools/jlink/builder/DefaultImageBuilder.java
changeset 57821 182f94955cfb
parent 48223 962b4324320c
equal deleted inserted replaced
57819:40006c0ada91 57821:182f94955cfb
   298                 sb.append("DIR=`dirname $0`")
   298                 sb.append("DIR=`dirname $0`")
   299                         .append("\n");
   299                         .append("\n");
   300                 sb.append("$DIR/java $JLINK_VM_OPTIONS -m ")
   300                 sb.append("$DIR/java $JLINK_VM_OPTIONS -m ")
   301                         .append(module).append('/')
   301                         .append(module).append('/')
   302                         .append(mainClassName)
   302                         .append(mainClassName)
   303                         .append(" $@\n");
   303                         .append(" \"$@\"\n");
   304 
   304 
   305                 try (BufferedWriter writer = Files.newBufferedWriter(cmd,
   305                 try (BufferedWriter writer = Files.newBufferedWriter(cmd,
   306                         StandardCharsets.ISO_8859_1,
   306                         StandardCharsets.ISO_8859_1,
   307                         StandardOpenOption.CREATE_NEW)) {
   307                         StandardOpenOption.CREATE_NEW)) {
   308                     writer.write(sb.toString());
   308                     writer.write(sb.toString());