src/jdk.jpackage/share/classes/jdk/jpackage/internal/Arguments.java
branchJDK-8200758-branch
changeset 57330 a30edd277572
parent 57314 23da9e6f446f
child 57391 970f28090a06
equal deleted inserted replaced
57329:8009cf5b833d 57330:a30edd277572
   261 
   261 
   262         }),
   262         }),
   263 
   263 
   264         ADD_LAUNCHER ("add-launcher",
   264         ADD_LAUNCHER ("add-launcher",
   265                     OptionCategories.PROPERTY, () -> {
   265                     OptionCategories.PROPERTY, () -> {
       
   266             String spec = popArg();
       
   267             String name = null;
       
   268             String filename = spec;
       
   269             if (spec.contains("=")) {
       
   270                 String[] values = spec.split("=", 2);
       
   271                 name = values[0];
       
   272                 filename = values[1];
       
   273             }
   266             context().addLaunchers.add(
   274             context().addLaunchers.add(
   267                 new AddLauncherArguments(popArg()));
   275                 new AddLauncherArguments(name, filename));
   268         }),
   276         }),
   269 
   277 
   270         TEMP_ROOT ("temp-root", OptionCategories.PROPERTY, () -> {
   278         TEMP_ROOT ("temp-root", OptionCategories.PROPERTY, () -> {
   271             context().buildRoot = popArg();
   279             context().buildRoot = popArg();
   272             context().userProvidedBuildRoot = true;
   280             context().userProvidedBuildRoot = true;