public class jdk.jpackage.internal.LinuxAppImageBuilder extends jdk.jpackage.internal.AbstractAppImageBuilder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jpackage.internal.LinuxAppImageBuilder
super_class: jdk.jpackage.internal.AbstractAppImageBuilder
{
static final jdk.jpackage.internal.BundlerParamInfo<java.nio.file.Path> ICON_PNG;
descriptor: Ljdk/jpackage/internal/BundlerParamInfo;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljdk/jpackage/internal/BundlerParamInfo<Ljava/nio/file/Path;>;
static final java.lang.String DEFAULT_ICON;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "java32.png"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new jdk.jpackage.internal.StandardBundlerParam
dup
1: ldc "icon.png"
2: ldc Ljava/nio/file/Path;
3: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/jpackage/internal/LinuxAppImageBuilder.lambda$0(Ljava/util/Map;)Ljava/nio/file/Path; (6)
(Ljava/util/Map;)Ljava/nio/file/Path;
4: invokedynamic apply()Ljava/util/function/BiFunction;
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;Ljava/lang/Object;)Ljava/lang/Object;
jdk/jpackage/internal/LinuxAppImageBuilder.lambda$1(Ljava/lang/String;Ljava/util/Map;)Ljava/nio/file/Path; (6)
(Ljava/lang/String;Ljava/util/Map;)Ljava/nio/file/Path;
5: invokespecial jdk.jpackage.internal.StandardBundlerParam.<init>:(Ljava/lang/String;Ljava/lang/Class;Ljava/util/function/Function;Ljava/util/function/BiFunction;)V
6: putstatic jdk.jpackage.internal.LinuxAppImageBuilder.ICON_PNG:Ljdk/jpackage/internal/BundlerParamInfo;
7: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.jpackage.internal.AbstractAppImageBuilder.<init>:(Ljava/nio/file/Path;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/LinuxAppImageBuilder;
0 2 1 imageOutDir Ljava/nio/file/Path;
MethodParameters:
Name Flags
imageOutDir
private void writeEntry(java.io.InputStream, java.nio.file.Path);
descriptor: (Ljava/io/InputStream;Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
1: aload 1
aload 2
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/io/InputStream;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)J
pop2
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/LinuxAppImageBuilder;
0 3 1 in Ljava/io/InputStream;
0 3 2 dstFile Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
dstFile
public static java.lang.String getLauncherName(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 0
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)Ljava/lang/String;
MethodParameters:
Name Flags
params
public void prepareApplicationFiles(java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.LinuxAppImageBuilder.appLayout:Ljdk/jpackage/internal/ApplicationLayout;
invokevirtual jdk.jpackage.internal.ApplicationLayout.roots:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
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/LinuxAppImageBuilder.lambda$2(Ljava/nio/file/Path;)V (6)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
1: aload 0
aload 1
aconst_null
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.createLauncherForEntryPoint:(Ljava/util/Map;Ljava/util/Map;)V
2: aload 0
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.createLauncherLib:()V
3: getstatic jdk.jpackage.internal.StandardBundlerParam.ADD_LAUNCHERS:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.util.List
4: astore 2
start local 2 5: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: jdk.jpackage.internal.LinuxAppImageBuilder java.util.Map java.util.List top java.util.Iterator
StackMap stack:
6: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map
astore 3
start local 3 7: aload 0
aload 1
8: aload 3
iconst_2
anewarray java.lang.String
dup
iconst_0
getstatic jdk.jpackage.internal.StandardBundlerParam.ICON:Ljdk/jpackage/internal/StandardBundlerParam;
invokevirtual jdk.jpackage.internal.StandardBundlerParam.getID:()Ljava/lang/String;
aastore
dup
iconst_1
getstatic jdk.jpackage.internal.LinuxAppImageBuilder.ICON_PNG:Ljdk/jpackage/internal/BundlerParamInfo;
invokevirtual jdk.jpackage.internal.BundlerParamInfo.getID:()Ljava/lang/String;
aastore
9: invokestatic jdk.jpackage.internal.AddLauncherArguments.merge:(Ljava/util/Map;Ljava/util/Map;[Ljava/lang/String;)Ljava/util/Map;
10: aload 1
11: invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.createLauncherForEntryPoint:(Ljava/util/Map;Ljava/util/Map;)V
end local 3 12: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
13: aload 0
aload 1
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.copyApplication:(Ljava/util/Map;)V
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jpackage/internal/LinuxAppImageBuilder;
0 15 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
5 15 2 entryPoints Ljava/util/List<Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;>;
7 12 3 entryPoint Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
params
private void createLauncherLib();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.LinuxAppImageBuilder.appLayout:Ljdk/jpackage/internal/ApplicationLayout;
invokevirtual jdk.jpackage.internal.ApplicationLayout.pathGroup:()Ljdk/jpackage/internal/PathGroup;
1: getstatic jdk.jpackage.internal.ApplicationLayout$PathRole.LINUX_APPLAUNCHER_LIB:Ljdk/jpackage/internal/ApplicationLayout$PathRole;
2: invokevirtual jdk.jpackage.internal.PathGroup.getPath:(Ljava/lang/Object;)Ljava/nio/file/Path;
astore 1
start local 1 3: aconst_null
astore 2
aconst_null
astore 3
4: aload 0
ldc "libjpackageapplauncher.so"
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 4
start local 4 5: aload 0
aload 4
aload 1
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.writeEntry:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
6: aload 4
ifnull 12
aload 4
invokevirtual java.io.InputStream.close:()V
goto 12
StackMap locals: jdk.jpackage.internal.LinuxAppImageBuilder java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
7: astore 2
aload 4
ifnull 8
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
8: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
aload 2
ifnonnull 10
aload 3
astore 2
goto 11
StackMap locals:
StackMap stack:
10: aload 2
aload 3
if_acmpeq 11
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 2
athrow
12: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
iconst_0
invokevirtual java.io.File.setExecutable:(ZZ)Z
pop
13: aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
iconst_1
invokevirtual java.io.File.setWritable:(ZZ)Z
pop
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jpackage/internal/LinuxAppImageBuilder;
3 15 1 path Ljava/nio/file/Path;
5 8 4 resource Ljava/io/InputStream;
Exception table:
from to target type
5 6 7 any
4 9 9 any
Exceptions:
throws java.io.IOException
private void createLauncherForEntryPoint(java.util.Map<java.lang.String, ? super java.lang.Object>, java.util.Map<java.lang.String, ? super java.lang.Object>);
descriptor: (Ljava/util/Map;Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.jpackage.internal.LinuxAppImageBuilder.appLayout:Ljdk/jpackage/internal/ApplicationLayout;
invokevirtual jdk.jpackage.internal.ApplicationLayout.launchersDirectory:()Ljava/nio/file/Path;
aload 1
invokestatic jdk.jpackage.internal.LinuxAppImageBuilder.getLauncherName:(Ljava/util/Map;)Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 1: aconst_null
astore 4
aconst_null
astore 5
2: aload 0
ldc "jpackageapplauncher"
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
3: astore 6
start local 6 4: aload 0
aload 6
aload 3
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.writeEntry:(Ljava/io/InputStream;Ljava/nio/file/Path;)V
5: aload 6
ifnull 11
aload 6
invokevirtual java.io.InputStream.close:()V
goto 11
StackMap locals: jdk.jpackage.internal.LinuxAppImageBuilder java.util.Map java.util.Map java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
6: astore 4
aload 6
ifnull 7
aload 6
invokevirtual java.io.InputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
7: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 5
aload 4
ifnonnull 9
aload 5
astore 4
goto 10
StackMap locals:
StackMap stack:
9: aload 4
aload 5
if_acmpeq 10
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 4
athrow
11: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
iconst_0
invokevirtual java.io.File.setExecutable:(ZZ)Z
pop
12: aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
iconst_1
invokevirtual java.io.File.setWritable:(ZZ)Z
pop
13: aload 0
aload 1
invokevirtual jdk.jpackage.internal.LinuxAppImageBuilder.writeCfgFile:(Ljava/util/Map;)V
14: ldc "java32.png"
getstatic jdk.jpackage.internal.LinuxAppImageBuilder.ICON_PNG:Ljdk/jpackage/internal/BundlerParamInfo;
aload 1
15: aload 2
16: invokestatic jdk.jpackage.internal.LinuxAppImageBuilder.createIconResource:(Ljava/lang/String;Ljdk/jpackage/internal/BundlerParamInfo;Ljava/util/Map;Ljava/util/Map;)Ljdk/jpackage/internal/OverridableResource;
astore 4
start local 4 17: aload 4
ifnull 24
18: aload 0
getfield jdk.jpackage.internal.LinuxAppImageBuilder.appLayout:Ljdk/jpackage/internal/ApplicationLayout;
invokevirtual jdk.jpackage.internal.ApplicationLayout.destktopIntegrationDirectory:()Ljava/nio/file/Path;
19: new java.lang.StringBuilder
dup
getstatic jdk.jpackage.internal.StandardBundlerParam.APP_NAME:Ljdk/jpackage/internal/StandardBundlerParam;
aload 1
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
20: ldc "java32.png"
iconst_0
anewarray java.lang.String
21: invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokestatic jdk.jpackage.internal.IOUtils.getSuffix:(Ljava/nio/file/Path;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 23: aload 4
aload 5
invokevirtual jdk.jpackage.internal.OverridableResource.saveToFile:(Ljava/nio/file/Path;)Ljdk/jpackage/internal/OverridableResource$Source;
pop
end local 5 24: StackMap locals: jdk.jpackage.internal.OverridableResource
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljdk/jpackage/internal/LinuxAppImageBuilder;
0 25 1 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
0 25 2 mainParams Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 25 3 executableFile Ljava/nio/file/Path;
4 7 6 is_launcher Ljava/io/InputStream;
17 25 4 iconResource Ljdk/jpackage/internal/OverridableResource;
23 24 5 iconTarget Ljava/nio/file/Path;
Exception table:
from to target type
4 5 6 any
2 8 8 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
params
mainParams
private static java.nio.file.Path lambda$0(java.util.Map);
descriptor: (Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic jdk.jpackage.internal.StandardBundlerParam.ICON:Ljdk/jpackage/internal/StandardBundlerParam;
aload 0
invokevirtual jdk.jpackage.internal.StandardBundlerParam.fetchFrom:(Ljava/util/Map;)Ljava/lang/Object;
checkcast java.nio.file.Path
astore 1
start local 1 1: aload 1
ifnull 6
aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
ifnull 6
aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
2: invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc ".png"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 6
3: ldc "message.icon-not-png"
invokestatic jdk.jpackage.internal.I18N.getString:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
4: invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.error:(Ljava/lang/String;)V
5: aconst_null
areturn
6: StackMap locals: java.nio.file.Path
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 params Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
1 7 1 f Ljava/nio/file/Path;
private static java.nio.file.Path lambda$1(java.lang.String, java.util.Map);
descriptor: (Ljava/lang/String;Ljava/util/Map;)Ljava/nio/file/Path;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
0 1 1 p Ljava/util/Map<Ljava/lang/String;-Ljava/lang/Object;>;
private static void lambda$2(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic jdk.jpackage.internal.IOUtils.writableOutputDir:(Ljava/nio/file/Path;)V
1: goto 4
StackMap locals:
StackMap stack: jdk.jpackage.internal.PackagerException
2: astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 dir Ljava/nio/file/Path;
3 4 1 pe Ljdk/jpackage/internal/PackagerException;
Exception table:
from to target type
0 1 2 Class jdk.jpackage.internal.PackagerException
}
SourceFile: "LinuxAppImageBuilder.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final PathRole = jdk.jpackage.internal.ApplicationLayout$PathRole of jdk.jpackage.internal.ApplicationLayout
final Source = jdk.jpackage.internal.OverridableResource$Source of jdk.jpackage.internal.OverridableResource