public class jdk.jpackage.internal.Arguments
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jpackage.internal.Arguments
super_class: java.lang.Object
{
private static final java.util.ResourceBundle I18N;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String FA_EXTENSIONS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "extension"
private static final java.lang.String FA_CONTENT_TYPE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "mime-type"
private static final java.lang.String FA_DESCRIPTION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "description"
private static final java.lang.String FA_ICON;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "icon"
public static final java.lang.String MAC_CFBUNDLETYPEROLE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.CFBundleTypeRole"
public static final java.lang.String MAC_LSHANDLERRANK;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.LSHandlerRank"
public static final java.lang.String MAC_NSSTORETYPEKEY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.NSPersistentStoreTypeKey"
public static final java.lang.String MAC_NSDOCUMENTCLASS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.NSDocumentClass"
public static final java.lang.String MAC_LSTYPEISPACKAGE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.LSTypeIsPackage"
public static final java.lang.String MAC_LSDOCINPLACE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.LSSupportsOpeningDocumentsInPlace"
public static final java.lang.String MAC_UIDOCBROWSER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.UISupportsDocumentBrowser"
public static final java.lang.String MAC_NSEXPORTABLETYPES;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.NSExportableTypes"
public static final java.lang.String MAC_UTTYPECONFORMSTO;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "mac.UTTypeConformsTo"
private static java.util.regex.Pattern pattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private jdk.jpackage.internal.DeployParams deployParams;
descriptor: Ljdk/jpackage/internal/DeployParams;
flags: (0x0002) ACC_PRIVATE
private int pos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.List<java.lang.String> argList;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
private java.util.List<jdk.jpackage.internal.Arguments$CLIOptions> allOptions;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljdk/jpackage/internal/Arguments$CLIOptions;>;
private java.lang.String input;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path output;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private boolean hasMainJar;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean hasMainClass;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean hasMainModule;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public boolean userProvidedBuildRoot;
descriptor: Z
flags: (0x0001) ACC_PUBLIC
private java.lang.String buildRoot;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String mainJarPath;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean runtimeInstaller;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.List<jdk.jpackage.internal.AddLauncherArguments> addLaunchers;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljdk/jpackage/internal/AddLauncherArguments;>;
private static final java.util.Map<java.lang.String, jdk.jpackage.internal.Arguments$CLIOptions> argIds;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/jpackage/internal/Arguments$CLIOptions;>;
private static final java.util.Map<java.lang.String, jdk.jpackage.internal.Arguments$CLIOptions> argShortIds;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/jpackage/internal/Arguments$CLIOptions;>;
private static final java.lang.InheritableThreadLocal<jdk.jpackage.internal.Arguments> instance;
descriptor: Ljava/lang/InheritableThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/InheritableThreadLocal<Ljdk/jpackage/internal/Arguments;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "jdk.jpackage.internal.resources.MainResources"
1: invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putstatic jdk.jpackage.internal.Arguments.I18N:Ljava/util/ResourceBundle;
2: ldc "(?:(?:([\"'])(?:\\\\\\1|.)*?(?:\\1|$))|(?:\\\\[\"'\\s]|[^\\s]))++"
3: invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic jdk.jpackage.internal.Arguments.pattern:Ljava/util/regex/Pattern;
4: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic jdk.jpackage.internal.Arguments.argIds:Ljava/util/Map;
5: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic jdk.jpackage.internal.Arguments.argShortIds:Ljava/util/Map;
6: ldc Ljdk/jpackage/internal/Arguments$CLIOptions;
invokestatic java.util.EnumSet.allOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jpackage/internal/Arguments.lambda$0(Ljdk/jpackage/internal/Arguments$CLIOptions;)V (6)
(Ljdk/jpackage/internal/Arguments$CLIOptions;)V
invokevirtual java.util.EnumSet.forEach:(Ljava/util/function/Consumer;)V
7: new java.lang.InheritableThreadLocal
dup
invokespecial java.lang.InheritableThreadLocal.<init>:()V
8: putstatic jdk.jpackage.internal.Arguments.instance:Ljava/lang/InheritableThreadLocal;
9: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
2: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.pos:I
3: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.argList:Ljava/util/List;
4: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
5: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.input:Ljava/lang/String;
6: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.output:Ljava/nio/file/Path;
7: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.hasMainJar:Z
8: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.hasMainClass:Z
9: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.hasMainModule:Z
10: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.userProvidedBuildRoot:Z
11: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.buildRoot:Ljava/lang/String;
12: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.mainJarPath:Ljava/lang/String;
13: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
14: aload 0
aconst_null
putfield jdk.jpackage.internal.Arguments.addLaunchers:Ljava/util/List;
15: getstatic jdk.jpackage.internal.Arguments.instance:Ljava/lang/InheritableThreadLocal;
aload 0
invokevirtual java.lang.InheritableThreadLocal.set:(Ljava/lang/Object;)V
16: aload 0
new java.util.ArrayList
dup
aload 1
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
putfield jdk.jpackage.internal.Arguments.argList:Ljava/util/List;
17: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 21
StackMap locals: jdk.jpackage.internal.Arguments java.lang.String[] top int int java.lang.String[]
StackMap stack:
18: aload 5
iload 3
aaload
astore 2
start local 2 19: aload 0
getfield jdk.jpackage.internal.Arguments.argList:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 20: iinc 3 1
StackMap locals:
StackMap stack:
21: iload 3
iload 4
if_icmplt 18
22: new java.lang.StringBuilder
dup
ldc "\njpackage argument list: \n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.jpackage.internal.Arguments.argList:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
23: aload 0
iconst_0
putfield jdk.jpackage.internal.Arguments.pos:I
24: aload 0
new jdk.jpackage.internal.DeployParams
dup
invokespecial jdk.jpackage.internal.DeployParams.<init>:()V
putfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
25: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
26: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.jpackage.internal.Arguments.addLaunchers:Ljava/util/List;
27: aload 0
ldc ""
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
putfield jdk.jpackage.internal.Arguments.output:Ljava/nio/file/Path;
28: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
aload 0
getfield jdk.jpackage.internal.Arguments.output:Ljava/nio/file/Path;
invokevirtual jdk.jpackage.internal.DeployParams.setOutput:(Ljava/nio/file/Path;)V
29: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljdk/jpackage/internal/Arguments;
0 30 1 args [Ljava/lang/String;
19 20 2 arg Ljava/lang/String;
MethodParameters:
Name Flags
args
public boolean processArguments();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=1
start local 0 0: goto 9
1: StackMap locals:
StackMap stack:
invokestatic jdk.jpackage.internal.Arguments$CLIOptions.getArg:()Ljava/lang/String;
astore 1
start local 1 2: aload 1
invokestatic jdk.jpackage.internal.Arguments.toCLIOption:(Ljava/lang/String;)Ljdk/jpackage/internal/Arguments$CLIOptions;
dup
astore 2
start local 2 3: ifnull 7
4: aload 0
getfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 2
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.execute:()V
6: goto 8
7: StackMap locals: java.lang.String jdk.jpackage.internal.Arguments$CLIOptions
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_InvalidOption"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
invokestatic jdk.jpackage.internal.Arguments$CLIOptions.nextArg:()V
end local 2 end local 1 StackMap locals:
StackMap stack:
9: invokestatic jdk.jpackage.internal.Arguments$CLIOptions.hasNextArg:()Z
ifne 1
10: aload 0
getfield jdk.jpackage.internal.Arguments.hasMainJar:Z
ifeq 15
aload 0
getfield jdk.jpackage.internal.Arguments.hasMainClass:Z
ifne 15
11: aload 0
invokevirtual jdk.jpackage.internal.Arguments.getMainClassFromManifest:()Ljava/lang/String;
astore 3
start local 3 12: aload 3
ifnull 15
13: getstatic jdk.jpackage.internal.Arguments$CLIOptions.APPCLASS:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
aload 3
14: invokestatic jdk.jpackage.internal.Arguments$CLIOptions.setOptionValue:(Ljava/lang/String;Ljava/lang/Object;)V
end local 3 15: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jpackage.internal.Arguments.validateArguments:()V
16: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
17: astore 3
start local 3 18: aload 0
getfield jdk.jpackage.internal.Arguments.addLaunchers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 21
StackMap locals: jdk.jpackage.internal.Arguments top top java.util.List top java.util.Iterator
StackMap stack:
19: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.AddLauncherArguments
astore 4
start local 4 20: aload 3
aload 4
invokevirtual jdk.jpackage.internal.AddLauncherArguments.getLauncherMap:()Ljava/util/Map;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 21: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
22: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
23: getstatic jdk.jpackage.internal.StandardBundlerParam.ADD_LAUNCHERS:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
24: aload 3
25: invokevirtual jdk.jpackage.internal.DeployParams.addBundleArgument:(Ljava/lang/String;Ljava/lang/Object;)V
26: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.validate:()V
27: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.getBundleParams:()Ljdk/jpackage/internal/BundleParams;
astore 4
start local 4 28: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 29: aload 5
aload 4
invokevirtual jdk.jpackage.internal.BundleParams.getName:()Ljava/lang/String;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
30: aload 0
getfield jdk.jpackage.internal.Arguments.addLaunchers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 44
StackMap locals: jdk.jpackage.internal.Arguments top top java.util.List jdk.jpackage.internal.BundleParams java.util.ArrayList top java.util.Iterator
StackMap stack:
31: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.AddLauncherArguments
astore 6
start local 6 32: aload 6
invokevirtual jdk.jpackage.internal.AddLauncherArguments.getLauncherMap:()Ljava/util/Map;
astore 8
start local 8 33: aload 8
getstatic jdk.jpackage.internal.Arguments$CLIOptions.NAME:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getId:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
34: astore 9
start local 9 35: aload 9
ifnonnull 37
36: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_NoAddLauncherName"
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
37: StackMap locals: jdk.jpackage.internal.Arguments top top java.util.List jdk.jpackage.internal.BundleParams java.util.ArrayList jdk.jpackage.internal.AddLauncherArguments java.util.Iterator java.util.Map java.lang.String
StackMap stack:
aload 9
iconst_0
invokestatic jdk.jpackage.internal.DeployParams.validateName:(Ljava/lang/String;Z)V
38: aload 5
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 11
goto 42
StackMap locals: jdk.jpackage.internal.Arguments top top java.util.List jdk.jpackage.internal.BundleParams java.util.ArrayList jdk.jpackage.internal.AddLauncherArguments java.util.Iterator java.util.Map java.lang.String top java.util.Iterator
StackMap stack:
39: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 40: aload 9
aload 10
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 42
41: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_NoUniqueName"
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
end local 10 42: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 39
43: aload 5
aload 9
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 end local 6 44: StackMap locals: jdk.jpackage.internal.Arguments top top java.util.List jdk.jpackage.internal.BundleParams java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 31
45: aload 0
getfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
ifeq 47
aload 4
invokevirtual jdk.jpackage.internal.BundleParams.getName:()Ljava/lang/String;
ifnonnull 47
46: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_NoJreInstallerName"
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
47: StackMap locals: jdk.jpackage.internal.Arguments top top java.util.List jdk.jpackage.internal.BundleParams java.util.ArrayList
StackMap stack:
aload 0
aload 4
invokevirtual jdk.jpackage.internal.BundleParams.getBundleParamsAsMap:()Ljava/util/Map;
invokevirtual jdk.jpackage.internal.Arguments.generateBundle:(Ljava/util/Map;)V
48: iconst_1
ireturn
end local 5 end local 4 end local 3 49: StackMap locals: jdk.jpackage.internal.Arguments
StackMap stack: java.lang.Exception
astore 1
start local 1 50: invokestatic jdk.jpackage.internal.Log.isVerbose:()Z
ifeq 53
51: aload 1
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
52: goto 59
53: StackMap locals: java.lang.Exception
StackMap stack:
aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
astore 2
start local 2 54: aload 2
invokestatic jdk.jpackage.internal.Log.fatalError:(Ljava/lang/String;)V
55: aload 1
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
ifnull 59
aload 1
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
aload 1
if_acmpeq 59
56: aload 1
invokevirtual java.lang.Exception.getCause:()Ljava/lang/Throwable;
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
astore 3
start local 3 57: aload 3
ifnull 59
aload 2
aload 3
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 59
58: aload 3
invokestatic jdk.jpackage.internal.Log.fatalError:(Ljava/lang/String;)V
end local 3 end local 2 59: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 60 0 this Ljdk/jpackage/internal/Arguments;
2 9 1 arg Ljava/lang/String;
3 9 2 option Ljdk/jpackage/internal/Arguments$CLIOptions;
12 15 3 mainClass Ljava/lang/String;
18 49 3 launchersAsMap Ljava/util/List<Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;>;
20 21 4 sl Ljdk/jpackage/internal/AddLauncherArguments;
28 49 4 bp Ljdk/jpackage/internal/BundleParams;
29 49 5 usedNames Ljava/util/ArrayList<Ljava/lang/String;>;
32 44 6 sl Ljdk/jpackage/internal/AddLauncherArguments;
33 44 8 slMap Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
35 44 9 slName Ljava/lang/String;
40 42 10 usedName Ljava/lang/String;
50 60 1 e Ljava/lang/Exception;
54 59 2 msg1 Ljava/lang/String;
57 59 3 msg2 Ljava/lang/String;
Exception table:
from to target type
0 48 49 Class java.lang.Exception
private void validateArguments();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=9, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.getTargetFormat:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: ldc "default"
StackMap locals:
StackMap stack: java.lang.String
3: astore 2
start local 2 4: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.isTargetAppImage:()Z
istore 3
start local 3 5: aload 0
getfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
6: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_APP_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
7: invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
istore 4
start local 4 8: aload 0
getfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
9: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
10: invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
istore 5
start local 5 11: iload 3
ifne 12
iload 4
ifeq 12
iconst_1
goto 13
StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: istore 6
start local 6 14: aload 0
iload 3
ifne 16
iload 5
ifeq 16
iload 4
ifne 16
15: aload 0
getfield jdk.jpackage.internal.Arguments.hasMainModule:Z
ifne 16
aload 0
getfield jdk.jpackage.internal.Arguments.hasMainJar:Z
ifne 16
iconst_1
goto 17
StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int int
StackMap stack: jdk.jpackage.internal.Arguments
16: iconst_0
17: StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int int
StackMap stack: jdk.jpackage.internal.Arguments int
putfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
18: aload 0
getfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 38
StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int int top java.util.Iterator
StackMap stack:
19: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.Arguments$CLIOptions
astore 7
start local 7 20: aload 7
invokestatic jdk.jpackage.internal.ValidOptions.checkIfSupported:(Ljdk/jpackage/internal/Arguments$CLIOptions;)Z
ifne 24
21: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_UnsupportedOption"
iconst_1
anewarray java.lang.String
dup
iconst_0
22: aload 7
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
23: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
24: StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int int jdk.jpackage.internal.Arguments$CLIOptions java.util.Iterator
StackMap stack:
iload 3
ifeq 29
25: aload 7
invokestatic jdk.jpackage.internal.ValidOptions.checkIfImageSupported:(Ljdk/jpackage/internal/Arguments$CLIOptions;)Z
ifne 38
26: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_InvalidTypeOption"
iconst_2
anewarray java.lang.String
dup
iconst_0
27: aload 7
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
aastore
dup
iconst_1
aload 1
28: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
29: StackMap locals:
StackMap stack:
iload 6
ifne 30
aload 0
getfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
ifeq 38
30: StackMap locals:
StackMap stack:
aload 7
invokestatic jdk.jpackage.internal.ValidOptions.checkIfInstallerSupported:(Ljdk/jpackage/internal/Arguments$CLIOptions;)Z
ifne 38
31: aload 0
getfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
ifeq 35
32: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_NoInstallerEntryPoint"
iconst_1
anewarray java.lang.String
dup
iconst_0
33: aload 7
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
34: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_InvalidTypeOption"
iconst_2
anewarray java.lang.String
dup
iconst_0
36: aload 7
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
aastore
dup
iconst_1
aload 2
37: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 7 38: StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int int top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
39: iload 5
ifeq 55
40: iload 4
ifeq 45
41: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MutuallyExclusiveOptions"
iconst_2
anewarray java.lang.String
dup
iconst_0
42: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
aastore
dup
iconst_1
43: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_APP_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
44: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
45: StackMap locals: jdk.jpackage.internal.Arguments java.lang.String java.lang.String int int int int
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
getstatic jdk.jpackage.internal.Arguments$CLIOptions.ADD_MODULES:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 50
46: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MutuallyExclusiveOptions"
iconst_2
anewarray java.lang.String
dup
iconst_0
47: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
aastore
dup
iconst_1
48: getstatic jdk.jpackage.internal.Arguments$CLIOptions.ADD_MODULES:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
49: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
50: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Arguments.allOptions:Ljava/util/List;
getstatic jdk.jpackage.internal.Arguments$CLIOptions.JLINK_OPTIONS:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 55
51: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_MutuallyExclusiveOptions"
iconst_2
anewarray java.lang.String
dup
iconst_0
52: getstatic jdk.jpackage.internal.Arguments$CLIOptions.PREDEFINED_RUNTIME_IMAGE:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
aastore
dup
iconst_1
53: getstatic jdk.jpackage.internal.Arguments$CLIOptions.JLINK_OPTIONS:Ljdk/jpackage/internal/Arguments$CLIOptions;
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
54: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
55: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Arguments.hasMainJar:Z
ifeq 57
aload 0
getfield jdk.jpackage.internal.Arguments.hasMainModule:Z
ifeq 57
56: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_BothMainJarAndModule"
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
57: StackMap locals:
StackMap stack:
iload 3
ifeq 59
aload 0
getfield jdk.jpackage.internal.Arguments.hasMainJar:Z
ifne 59
aload 0
getfield jdk.jpackage.internal.Arguments.hasMainModule:Z
ifne 59
58: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_NoEntryPoint"
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;)V
athrow
59: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 60 0 this Ljdk/jpackage/internal/Arguments;
1 60 1 type Ljava/lang/String;
4 60 2 ptype Ljava/lang/String;
5 60 3 imageOnly Z
8 60 4 hasAppImage Z
11 60 5 hasRuntime Z
14 60 6 installerOnly Z
20 38 7 option Ljdk/jpackage/internal/Arguments$CLIOptions;
Exceptions:
throws jdk.jpackage.internal.PackagerException
private jdk.jpackage.internal.Bundler getPlatformBundler();
descriptor: ()Ljdk/jpackage/internal/Bundler;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.isTargetAppImage:()Z
istore 1
start local 1 1: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.getTargetFormat:()Ljava/lang/String;
astore 2
start local 2 2: iload 1
ifeq 3
ldc "IMAGE"
goto 4
StackMap locals: int java.lang.String
StackMap stack:
3: ldc "INSTALLER"
StackMap locals:
StackMap stack: java.lang.String
4: astore 3
start local 3 5: invokestatic jdk.jpackage.internal.Bundlers.createBundlersInstance:()Ljdk/jpackage/internal/Bundlers;
aload 3
invokeinterface jdk.jpackage.internal.Bundlers.getBundlers:(Ljava/lang/String;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: jdk.jpackage.internal.Arguments int java.lang.String java.lang.String top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jpackage.internal.Bundler
astore 4
start local 4 7: aload 2
ifnonnull 11
8: aload 4
invokeinterface jdk.jpackage.internal.Bundler.isDefault:()Z
ifeq 14
9: aload 4
aload 0
getfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
invokeinterface jdk.jpackage.internal.Bundler.supported:(Z)Z
ifeq 14
10: aload 4
areturn
11: StackMap locals: jdk.jpackage.internal.Arguments int java.lang.String java.lang.String jdk.jpackage.internal.Bundler java.util.Iterator
StackMap stack:
iload 1
ifne 12
aload 2
aload 4
invokeinterface jdk.jpackage.internal.Bundler.getID:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 14
12: StackMap locals:
StackMap stack:
aload 4
aload 0
getfield jdk.jpackage.internal.Arguments.runtimeInstaller:Z
invokeinterface jdk.jpackage.internal.Bundler.supported:(Z)Z
ifeq 14
13: aload 4
areturn
end local 4 14: StackMap locals: jdk.jpackage.internal.Arguments int java.lang.String java.lang.String top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
15: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/jpackage/internal/Arguments;
1 16 1 appImage Z
2 16 2 type Ljava/lang/String;
5 16 3 bundleType Ljava/lang/String;
7 14 4 bundler Ljdk/jpackage/internal/Bundler;
private void generateBundle(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=6, args_size=2
start local 0 start local 1 0: getstatic jdk.jpackage.internal.StandardBundlerParam.TEMP_ROOT:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual jdk.jpackage.internal.Arguments.getPlatformBundler:()Ljdk/jpackage/internal/Bundler;
astore 2
start local 2 2: aload 2
ifnonnull 6
3: new jdk.jpackage.internal.PackagerException
dup
ldc "ERR_InvalidInstallerType"
iconst_1
anewarray java.lang.String
dup
iconst_0
4: aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
invokevirtual jdk.jpackage.internal.DeployParams.getTargetFormat:()Ljava/lang/String;
5: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
6: StackMap locals: jdk.jpackage.internal.Bundler
StackMap stack:
new java.util.HashMap
dup
aload 1
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 3
start local 3 7: aload 2
aload 3
invokeinterface jdk.jpackage.internal.Bundler.validate:(Ljava/util/Map;)Z
pop
8: aload 2
aload 3
aload 0
getfield jdk.jpackage.internal.Arguments.deployParams:Ljdk/jpackage/internal/DeployParams;
getfield jdk.jpackage.internal.DeployParams.outdir:Ljava/nio/file/Path;
invokeinterface jdk.jpackage.internal.Bundler.execute:(Ljava/util/Map;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 4
start local 4 9: aload 4
ifnonnull 13
10: new jdk.jpackage.internal.PackagerException
dup
ldc "MSG_BundlerFailed"
iconst_2
anewarray java.lang.String
dup
iconst_0
11: aload 2
invokeinterface jdk.jpackage.internal.Bundler.getID:()Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokeinterface jdk.jpackage.internal.Bundler.getName:()Ljava/lang/String;
12: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
13: StackMap locals: java.util.Map java.nio.file.Path
StackMap stack:
getstatic jdk.jpackage.internal.Arguments.I18N:Ljava/util/ResourceBundle;
ldc "message.bundle-created"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
14: aload 2
invokeinterface jdk.jpackage.internal.Bundler.getName:()Ljava/lang/String;
aastore
15: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
end local 4 16: goto 40
StackMap locals: jdk.jpackage.internal.Arguments java.util.Map jdk.jpackage.internal.Bundler java.util.Map
StackMap stack: jdk.jpackage.internal.ConfigException
17: astore 4
start local 4 18: aload 4
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
19: aload 4
invokevirtual jdk.jpackage.internal.ConfigException.getAdvice:()Ljava/lang/String;
ifnull 23
20: new jdk.jpackage.internal.PackagerException
dup
aload 4
ldc "MSG_BundlerConfigException"
iconst_3
anewarray java.lang.String
dup
iconst_0
21: aload 2
invokeinterface jdk.jpackage.internal.Bundler.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 4
invokevirtual jdk.jpackage.internal.ConfigException.getMessage:()Ljava/lang/String;
aastore
dup
iconst_2
aload 4
invokevirtual jdk.jpackage.internal.ConfigException.getAdvice:()Ljava/lang/String;
22: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/String;)V
athrow
23: StackMap locals: jdk.jpackage.internal.ConfigException
StackMap stack:
new jdk.jpackage.internal.PackagerException
dup
aload 4
24: ldc "MSG_BundlerConfigExceptionNoAdvice"
iconst_2
anewarray java.lang.String
dup
iconst_0
25: aload 2
invokeinterface jdk.jpackage.internal.Bundler.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 4
invokevirtual jdk.jpackage.internal.ConfigException.getMessage:()Ljava/lang/String;
26: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 4 27: StackMap locals: jdk.jpackage.internal.Arguments java.util.Map jdk.jpackage.internal.Bundler java.util.Map
StackMap stack: java.lang.RuntimeException
astore 4
start local 4 28: aload 4
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
29: new jdk.jpackage.internal.PackagerException
dup
aload 4
ldc "MSG_BundlerRuntimeException"
iconst_2
anewarray java.lang.String
dup
iconst_0
30: aload 2
invokeinterface jdk.jpackage.internal.Bundler.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 4
invokevirtual java.lang.RuntimeException.toString:()Ljava/lang/String;
31: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/String;)V
athrow
end local 4 32: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
33: aload 0
getfield jdk.jpackage.internal.Arguments.userProvidedBuildRoot:Z
ifeq 38
34: getstatic jdk.jpackage.internal.Arguments.I18N:Ljava/util/ResourceBundle;
ldc "message.debug-working-directory"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
35: aload 0
getfield jdk.jpackage.internal.Arguments.buildRoot:Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
36: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
37: goto 39
38: StackMap locals: jdk.jpackage.internal.Arguments java.util.Map jdk.jpackage.internal.Bundler java.util.Map top java.lang.Throwable
StackMap stack:
aload 2
aload 3
invokeinterface jdk.jpackage.internal.Bundler.cleanup:(Ljava/util/Map;)V
39: StackMap locals:
StackMap stack:
aload 5
athrow
40: StackMap locals: jdk.jpackage.internal.Arguments java.util.Map jdk.jpackage.internal.Bundler java.util.Map
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Arguments.userProvidedBuildRoot:Z
ifeq 45
41: getstatic jdk.jpackage.internal.Arguments.I18N:Ljava/util/ResourceBundle;
ldc "message.debug-working-directory"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
42: aload 0
getfield jdk.jpackage.internal.Arguments.buildRoot:Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
43: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
44: goto 46
45: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface jdk.jpackage.internal.Bundler.cleanup:(Ljava/util/Map;)V
46: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Ljdk/jpackage/internal/Arguments;
0 47 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
2 47 2 bundler Ljdk/jpackage/internal/Bundler;
7 47 3 localParams Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
9 16 4 result Ljava/nio/file/Path;
18 27 4 e Ljdk/jpackage/internal/ConfigException;
28 32 4 re Ljava/lang/RuntimeException;
Exception table:
from to target type
7 16 17 Class jdk.jpackage.internal.ConfigException
7 16 27 Class java.lang.RuntimeException
7 32 32 any
Exceptions:
throws jdk.jpackage.internal.PackagerException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
params
static jdk.jpackage.internal.Arguments$CLIOptions toCLIOption(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/jpackage/internal/Arguments$CLIOptions;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic jdk.jpackage.internal.Arguments.argIds:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jpackage.internal.Arguments$CLIOptions
dup
astore 1
start local 1 1: ifnonnull 3
2: getstatic jdk.jpackage.internal.Arguments.argShortIds:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jpackage.internal.Arguments$CLIOptions
astore 1
3: StackMap locals: jdk.jpackage.internal.Arguments$CLIOptions
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 arg Ljava/lang/String;
1 4 1 option Ljdk/jpackage/internal/Arguments$CLIOptions;
MethodParameters:
Name Flags
arg
static java.util.Map<java.lang.String, java.lang.String> getPropertiesFromFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Map;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 2
start local 2 2: aconst_null
astore 3
aconst_null
astore 4
3: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokestatic java.nio.file.Files.newBufferedReader:(Ljava/nio/file/Path;)Ljava/io/BufferedReader;
astore 5
start local 5 4: aload 2
aload 5
invokevirtual java.util.Properties.load:(Ljava/io/Reader;)V
5: aload 5
ifnull 13
aload 5
invokevirtual java.io.Reader.close:()V
goto 13
StackMap locals: java.lang.String java.util.Map java.util.Properties java.lang.Throwable java.lang.Throwable java.io.Reader
StackMap stack: java.lang.Throwable
6: astore 3
aload 5
ifnull 7
aload 5
invokevirtual java.io.Reader.close:()V
end local 5 StackMap locals:
StackMap stack:
7: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
aload 3
ifnonnull 9
aload 4
astore 3
goto 10
StackMap locals:
StackMap stack:
9: aload 3
aload 4
if_acmpeq 10
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 3
athrow
StackMap locals: java.lang.String java.util.Map java.util.Properties
StackMap stack: java.io.IOException
11: astore 3
start local 3 12: new java.lang.StringBuilder
dup
ldc "Exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.error:(Ljava/lang/String;)V
end local 3 13: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.Properties.stringPropertyNames:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 16
StackMap locals: java.lang.String java.util.Map java.util.Properties top java.util.Iterator
StackMap stack:
14: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 15: aload 1
aload 3
aload 2
aload 3
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 16: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
17: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 filename Ljava/lang/String;
1 18 1 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 18 2 properties Ljava/util/Properties;
4 7 5 reader Ljava/io/Reader;
12 13 3 e Ljava/io/IOException;
15 16 3 name Ljava/lang/String;
Exception table:
from to target type
4 5 6 any
3 8 8 any
2 11 11 Class java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
filename
static java.util.List<java.lang.String> getArgumentList(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
ifnull 2
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: StackMap locals: java.util.List
StackMap stack:
aload 1
areturn
3: StackMap locals:
StackMap stack:
getstatic jdk.jpackage.internal.Arguments.pattern:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 4: goto 8
5: StackMap locals: java.util.regex.Matcher
StackMap stack:
aload 0
aload 2
invokevirtual java.util.regex.Matcher.start:()I
aload 2
invokevirtual java.util.regex.Matcher.end:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 3
start local 3 6: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifne 8
7: aload 1
aload 3
invokestatic jdk.jpackage.internal.Arguments.unquoteIfNeeded:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.regex.Matcher.find:()Z
ifne 5
9: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 inputString Ljava/lang/String;
1 10 1 list Ljava/util/List<Ljava/lang/String;>;
4 10 2 m Ljava/util/regex/Matcher;
6 8 3 s Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
inputString
static void putUnlessNull(java.util.Map<java.lang.String, ? super java.lang.Object>, java.lang.String, );
descriptor: (Ljava/util/Map;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 2
1: aload 0
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 3 1 param Ljava/lang/String;
0 3 2 value Ljava/lang/Object;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/lang/String;Ljava/lang/Object;)V
MethodParameters:
Name Flags
params
param
value
private static java.lang.String unquoteIfNeeded(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
3: ldc ""
areturn
4: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 5: aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.codePointCount:(II)I
istore 2
start local 2 6: iconst_m1
istore 3
start local 3 7: iconst_0
istore 4
start local 4 8: goto 25
9: StackMap locals: java.lang.String java.lang.StringBuilder int int int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.codePointAt:(I)I
istore 5
start local 5 10: iload 5
bipush 34
if_icmpeq 11
iload 5
bipush 39
if_icmpne 23
11: StackMap locals: int
StackMap stack:
iload 4
ifle 15
aload 0
iload 4
iconst_1
isub
invokevirtual java.lang.String.codePointAt:(I)I
bipush 92
if_icmpne 15
12: aload 1
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuilder.deleteCharAt:(I)Ljava/lang/StringBuilder;
pop
13: aload 1
iload 5
invokevirtual java.lang.StringBuilder.appendCodePoint:(I)Ljava/lang/StringBuilder;
pop
14: goto 24
15: StackMap locals:
StackMap stack:
iload 3
iconst_m1
if_icmpeq 21
16: iload 5
iload 3
if_icmpne 19
17: iconst_m1
istore 3
18: goto 24
19: StackMap locals:
StackMap stack:
aload 1
iload 5
invokevirtual java.lang.StringBuilder.appendCodePoint:(I)Ljava/lang/StringBuilder;
pop
20: goto 24
21: StackMap locals:
StackMap stack:
iload 5
istore 3
22: goto 24
23: StackMap locals:
StackMap stack:
aload 1
iload 5
invokevirtual java.lang.StringBuilder.appendCodePoint:(I)Ljava/lang/StringBuilder;
pop
end local 5 24: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
25: iload 4
iload 2
if_icmplt 9
end local 4 26: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 in Ljava/lang/String;
5 27 1 sb Ljava/lang/StringBuilder;
6 27 2 codeLen I
7 27 3 quoteChar I
8 26 4 i I
10 24 5 code I
MethodParameters:
Name Flags
in
private java.lang.String getMainClassFromManifest();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.Arguments.mainJarPath:Ljava/lang/String;
ifnull 2
1: aload 0
getfield jdk.jpackage.internal.Arguments.input:Ljava/lang/String;
ifnonnull 3
2: StackMap locals:
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Arguments.input:Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
getfield jdk.jpackage.internal.Arguments.mainJarPath:Ljava/lang/String;
aastore
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 4: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 6
5: aconst_null
areturn
6: StackMap locals: jdk.jpackage.internal.Arguments top java.nio.file.Path
StackMap stack:
new java.util.jar.JarFile
dup
aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokespecial java.util.jar.JarFile.<init>:(Ljava/io/File;)V
astore 1
start local 1 7: aload 1
invokevirtual java.util.jar.JarFile.getManifest:()Ljava/util/jar/Manifest;
astore 3
start local 3 8: aload 3
ifnull 9
aload 3
invokevirtual java.util.jar.Manifest.getMainAttributes:()Ljava/util/jar/Attributes;
goto 10
StackMap locals: jdk.jpackage.internal.Arguments java.util.jar.JarFile java.nio.file.Path java.util.jar.Manifest
StackMap stack:
9: aconst_null
StackMap locals:
StackMap stack: java.util.jar.Attributes
10: astore 4
start local 4 11: aload 4
ifnull 15
12: aload 4
getstatic java.util.jar.Attributes$Name.MAIN_CLASS:Ljava/util/jar/Attributes$Name;
invokevirtual java.util.jar.Attributes.getValue:(Ljava/util/jar/Attributes$Name;)Ljava/lang/String;
13: areturn
end local 4 end local 3 end local 2 end local 1 14: StackMap locals: jdk.jpackage.internal.Arguments
StackMap stack: java.io.IOException
pop
15: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/jpackage/internal/Arguments;
7 14 1 jf Ljava/util/jar/JarFile;
4 14 2 file Ljava/nio/file/Path;
8 14 3 m Ljava/util/jar/Manifest;
11 14 4 attrs Ljava/util/jar/Attributes;
Exception table:
from to target type
3 5 14 Class java.io.IOException
6 13 14 Class java.io.IOException
private static void lambda$0(jdk.jpackage.internal.Arguments$CLIOptions);
descriptor: (Ljdk/jpackage/internal/Arguments$CLIOptions;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic jdk.jpackage.internal.Arguments.argIds:Ljava/util/Map;
aload 0
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getIdWithPrefix:()Ljava/lang/String;
aload 0
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getShortIdWithPrefix:()Ljava/lang/String;
ifnull 3
2: getstatic jdk.jpackage.internal.Arguments.argShortIds:Ljava/util/Map;
aload 0
invokevirtual jdk.jpackage.internal.Arguments$CLIOptions.getShortIdWithPrefix:()Ljava/lang/String;
aload 0
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 option Ljdk/jpackage/internal/Arguments$CLIOptions;
}
SourceFile: "Arguments.java"
NestMembers:
jdk.jpackage.internal.Arguments$CLIOptions jdk.jpackage.internal.Arguments$OptionCategories
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Name = java.util.jar.Attributes$Name of java.util.jar.Attributes
public final CLIOptions = jdk.jpackage.internal.Arguments$CLIOptions of jdk.jpackage.internal.Arguments
final OptionCategories = jdk.jpackage.internal.Arguments$OptionCategories of jdk.jpackage.internal.Arguments