public class org.flywaydb.commandline.Main
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.flywaydb.commandline.Main
super_class: java.lang.Object
{
private static org.flywaydb.core.api.logging.Log LOG;
descriptor: Lorg/flywaydb/core/api/logging/Log;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/flywaydb/commandline/Main;
static org.flywaydb.core.api.logging.LogCreator getLogCreator(org.flywaydb.commandline.CommandLineArguments);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;)Lorg/flywaydb/core/api/logging/LogCreator;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.shouldOutputJson:()Z
ifeq 2
1: invokestatic org.flywaydb.commandline.MultiLogCreator.empty:()Lorg/flywaydb/commandline/MultiLogCreator;
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 3: aload 1
new org.flywaydb.commandline.ConsoleLogCreator
dup
aload 0
invokespecial org.flywaydb.commandline.ConsoleLogCreator.<init>:(Lorg/flywaydb/commandline/CommandLineArguments;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.isOutputFileSet:()Z
ifne 5
aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.isLogFilepathSet:()Z
ifeq 6
5: StackMap locals: java.util.List
StackMap stack:
aload 1
new org.flywaydb.commandline.FileLogCreator
dup
aload 0
invokespecial org.flywaydb.commandline.FileLogCreator.<init>:(Lorg/flywaydb/commandline/CommandLineArguments;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
StackMap stack:
new org.flywaydb.commandline.MultiLogCreator
dup
aload 1
invokespecial org.flywaydb.commandline.MultiLogCreator.<init>:(Ljava/util/List;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
3 7 1 logCreators Ljava/util/List<Lorg/flywaydb/core/api/logging/LogCreator;>;
MethodParameters:
Name Flags
commandLineArguments
static void initLogging(org.flywaydb.commandline.CommandLineArguments);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;)V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.flywaydb.commandline.Main.getLogCreator:(Lorg/flywaydb/commandline/CommandLineArguments;)Lorg/flywaydb/core/api/logging/LogCreator;
astore 1
start local 1 1: aload 1
invokestatic org.flywaydb.core.api.logging.LogFactory.setFallbackLogCreator:(Lorg/flywaydb/core/api/logging/LogCreator;)V
2: ldc Lorg/flywaydb/commandline/Main;
invokestatic org.flywaydb.core.api.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/flywaydb/core/api/logging/Log;
putstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
1 4 1 logCreator Lorg/flywaydb/core/api/logging/LogCreator;
MethodParameters:
Name Flags
commandLineArguments
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=9, args_size=1
start local 0 0: new org.flywaydb.commandline.CommandLineArguments
dup
aload 0
invokespecial org.flywaydb.commandline.CommandLineArguments.<init>:([Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
invokestatic org.flywaydb.commandline.Main.initLogging:(Lorg/flywaydb/commandline/CommandLineArguments;)V
2: aload 1
getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
invokevirtual org.flywaydb.commandline.CommandLineArguments.validate:(Lorg/flywaydb/core/api/logging/Log;)V
3: aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.shouldPrintVersionAndExit:()Z
ifeq 6
4: invokestatic org.flywaydb.commandline.Main.printVersion:()V
5: iconst_0
invokestatic java.lang.System.exit:(I)V
6: StackMap locals: org.flywaydb.commandline.CommandLineArguments
StackMap stack:
aload 1
ldc "help"
invokevirtual org.flywaydb.commandline.CommandLineArguments.hasOperation:(Ljava/lang/String;)Z
ifne 7
aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.shouldPrintUsage:()Z
ifeq 9
7: StackMap locals:
StackMap stack:
invokestatic org.flywaydb.commandline.Main.printUsage:()V
8: return
9: StackMap locals:
StackMap stack:
invokestatic org.flywaydb.core.internal.configuration.ConfigUtils.environmentVariablesToPropertyMap:()Ljava/util/Map;
astore 2
start local 2 10: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 11: aload 3
aload 1
invokestatic org.flywaydb.commandline.Main.initializeDefaults:(Ljava/util/Map;Lorg/flywaydb/commandline/CommandLineArguments;)V
12: aload 3
aload 1
aload 2
invokestatic org.flywaydb.commandline.Main.loadConfigurationFromConfigFiles:(Ljava/util/Map;Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)V
13: aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.isWorkingDirectorySet:()Z
ifeq 15
14: aload 1
aload 3
invokestatic org.flywaydb.commandline.Main.makeRelativeLocationsBasedOnWorkingDirectory:(Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)V
15: StackMap locals: java.util.Map java.util.Map
StackMap stack:
aload 3
aload 2
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
16: aload 3
aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.getConfiguration:()Ljava/util/Map;
invokestatic org.flywaydb.commandline.Main.overrideConfiguration:(Ljava/util/Map;Ljava/util/Map;)Ljava/util/Map;
astore 3
17: aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.shouldSuppressPrompt:()Z
ifne 19
18: aload 3
invokestatic org.flywaydb.commandline.Main.promptForCredentialsIfMissing:(Ljava/util/Map;)V
19: StackMap locals:
StackMap stack:
aload 3
invokestatic org.flywaydb.core.internal.configuration.ConfigUtils.dumpConfiguration:(Ljava/util/Map;)V
20: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 4
start local 4 21: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 22: aload 5
invokestatic org.flywaydb.commandline.Main.getJdbcDriverJarFiles:()Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
23: aload 5
aload 3
invokestatic org.flywaydb.commandline.Main.getJavaMigrationJarFiles:(Ljava/util/Map;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
24: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 26
25: aload 4
aload 5
invokestatic org.flywaydb.core.internal.util.ClassUtils.addJarsOrDirectoriesToClasspath:(Ljava/lang/ClassLoader;Ljava/util/List;)Ljava/lang/ClassLoader;
astore 4
26: StackMap locals: java.lang.ClassLoader java.util.List
StackMap stack:
aload 3
invokestatic org.flywaydb.commandline.Main.filterProperties:(Ljava/util/Map;)V
27: aload 4
invokestatic org.flywaydb.core.Flyway.configure:(Ljava/lang/ClassLoader;)Lorg/flywaydb/core/api/configuration/FluentConfiguration;
aload 3
invokevirtual org.flywaydb.core.api.configuration.FluentConfiguration.configuration:(Ljava/util/Map;)Lorg/flywaydb/core/api/configuration/FluentConfiguration;
invokevirtual org.flywaydb.core.api.configuration.FluentConfiguration.load:()Lorg/flywaydb/core/Flyway;
astore 6
start local 6 28: aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.getOperations:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 31
StackMap locals: java.lang.String[] org.flywaydb.commandline.CommandLineArguments java.util.Map java.util.Map java.lang.ClassLoader java.util.List org.flywaydb.core.Flyway top java.util.Iterator
StackMap stack:
29: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 30: aload 6
aload 7
aload 1
invokestatic org.flywaydb.commandline.Main.executeOperation:(Lorg/flywaydb/core/Flyway;Ljava/lang/String;Lorg/flywaydb/commandline/CommandLineArguments;)V
end local 7 31: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
end local 6 end local 5 end local 4 end local 3 end local 2 32: goto 43
StackMap locals: java.lang.String[] org.flywaydb.commandline.CommandLineArguments
StackMap stack: java.lang.Exception
33: astore 2
start local 2 34: aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.shouldOutputJson:()Z
ifeq 38
35: aload 2
invokestatic org.flywaydb.core.internal.output.ErrorOutput.fromException:(Ljava/lang/Exception;)Lorg/flywaydb/core/internal/output/ErrorOutput;
astore 3
start local 3 36: aload 1
aload 3
invokestatic org.flywaydb.commandline.Main.printJson:(Lorg/flywaydb/commandline/CommandLineArguments;Ljava/lang/Object;)V
end local 3 37: goto 42
38: StackMap locals: java.lang.Exception
StackMap stack:
aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.getLogLevel:()Lorg/flywaydb/commandline/ConsoleLog$Level;
getstatic org.flywaydb.commandline.ConsoleLog$Level.DEBUG:Lorg/flywaydb/commandline/ConsoleLog$Level;
if_acmpne 41
39: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Unexpected error"
aload 2
invokeinterface org.flywaydb.core.api.logging.Log.error:(Ljava/lang/String;Ljava/lang/Exception;)V
40: goto 42
41: StackMap locals:
StackMap stack:
getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
aload 2
invokestatic org.flywaydb.commandline.Main.getMessageFromException:(Ljava/lang/Exception;)Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.error:(Ljava/lang/String;)V
42: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.lang.System.exit:(I)V
end local 2 43: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 args [Ljava/lang/String;
1 44 1 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
10 32 2 envVars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
11 32 3 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
21 32 4 classLoader Ljava/lang/ClassLoader;
22 32 5 jarFiles Ljava/util/List<Ljava/io/File;>;
28 32 6 flyway Lorg/flywaydb/core/Flyway;
30 31 7 operation Ljava/lang/String;
34 43 2 e Ljava/lang/Exception;
36 37 3 errorOutput Lorg/flywaydb/core/internal/output/ErrorOutput;
Exception table:
from to target type
2 8 33 Class java.lang.Exception
9 32 33 Class java.lang.Exception
MethodParameters:
Name Flags
args
private static void makeRelativeLocationsBasedOnWorkingDirectory(org.flywaydb.commandline.CommandLineArguments, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "flyway.locations"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 10
3: StackMap locals: java.lang.String[] int
StackMap stack:
aload 2
iload 3
aaload
ldc "filesystem:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
4: aload 2
iload 3
aaload
ldc "filesystem:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 5: new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
start local 5 6: aload 5
invokevirtual java.io.File.isAbsolute:()Z
ifne 8
7: new java.io.File
dup
aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.getWorkingDirectory:()Ljava/lang/String;
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 5
8: StackMap locals: java.lang.String java.io.File
StackMap stack:
aload 2
iload 3
new java.lang.StringBuilder
dup
ldc "filesystem:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
end local 5 end local 4 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 2
arraylength
if_icmplt 3
end local 3 11: aload 1
ldc "flyway.locations"
aload 2
invokestatic org.flywaydb.core.internal.util.StringUtils.arrayToCommaDelimitedString:([Ljava/lang/Object;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
0 13 1 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 13 2 locations [Ljava/lang/String;
2 11 3 i I
5 9 4 newLocation Ljava/lang/String;
6 9 5 file Ljava/io/File;
Signature: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
commandLineArguments
config
private static java.util.Map<java.lang.String, java.lang.String> overrideConfiguration(java.util.Map<java.lang.String, java.lang.String>, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;Ljava/util/Map;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
2: aload 2
aload 1
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 existingConfiguration Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 4 1 newConfiguration Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 4 2 combinedConfiguration Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
existingConfiguration
newConfiguration
static java.lang.String getMessageFromException(java.lang.Exception);
descriptor: (Ljava/lang/Exception;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.flywaydb.core.api.FlywayException
ifeq 2
1: aload 0
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e Ljava/lang/Exception;
MethodParameters:
Name Flags
e
private static void executeOperation(org.flywaydb.core.Flyway, java.lang.String, org.flywaydb.commandline.CommandLineArguments);
descriptor: (Lorg/flywaydb/core/Flyway;Ljava/lang/String;Lorg/flywaydb/commandline/CommandLineArguments;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: ldc "clean"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
invokevirtual org.flywaydb.core.Flyway.clean:()V
2: goto 36
StackMap locals:
StackMap stack:
3: ldc "baseline"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 0
invokevirtual org.flywaydb.core.Flyway.baseline:()V
5: goto 36
StackMap locals:
StackMap stack:
6: ldc "migrate"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: aload 0
invokevirtual org.flywaydb.core.Flyway.migrate:()I
pop
8: goto 36
StackMap locals:
StackMap stack:
9: ldc "undo"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: aload 0
invokevirtual org.flywaydb.core.Flyway.undo:()I
pop
11: goto 36
StackMap locals:
StackMap stack:
12: ldc "validate"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
13: aload 0
invokevirtual org.flywaydb.core.Flyway.validate:()V
14: goto 36
StackMap locals:
StackMap stack:
15: ldc "info"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 30
16: aload 0
invokevirtual org.flywaydb.core.Flyway.info:()Lorg/flywaydb/core/api/MigrationInfoService;
astore 3
start local 3 17: aload 3
invokeinterface org.flywaydb.core.api.MigrationInfoService.current:()Lorg/flywaydb/core/api/MigrationInfo;
astore 4
start local 4 18: aload 4
ifnonnull 19
getstatic org.flywaydb.core.api.MigrationVersion.EMPTY:Lorg/flywaydb/core/api/MigrationVersion;
goto 20
StackMap locals: org.flywaydb.core.api.MigrationInfoService org.flywaydb.core.api.MigrationInfo
StackMap stack:
19: aload 4
invokeinterface org.flywaydb.core.api.MigrationInfo.getVersion:()Lorg/flywaydb/core/api/MigrationVersion;
StackMap locals:
StackMap stack: org.flywaydb.core.api.MigrationVersion
20: astore 5
start local 5 21: aload 5
ifnonnull 22
getstatic org.flywaydb.core.api.MigrationVersion.EMPTY:Lorg/flywaydb/core/api/MigrationVersion;
goto 23
StackMap locals: org.flywaydb.core.api.MigrationVersion
StackMap stack:
22: aload 5
StackMap locals:
StackMap stack: org.flywaydb.core.api.MigrationVersion
23: astore 6
start local 6 24: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "Schema version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
25: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
26: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
aload 3
invokeinterface org.flywaydb.core.api.MigrationInfoService.all:()[Lorg/flywaydb/core/api/MigrationInfo;
invokestatic org.flywaydb.core.internal.info.MigrationInfoDumper.dumpToAsciiTable:([Lorg/flywaydb/core/api/MigrationInfo;)Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
27: aload 2
invokevirtual org.flywaydb.commandline.CommandLineArguments.shouldOutputJson:()Z
ifeq 36
28: aload 2
aload 3
invokeinterface org.flywaydb.core.api.MigrationInfoService.getInfoOutput:()Lorg/flywaydb/core/internal/output/InfoOutput;
invokestatic org.flywaydb.commandline.Main.printJson:(Lorg/flywaydb/commandline/CommandLineArguments;Ljava/lang/Object;)V
end local 6 end local 5 end local 4 end local 3 29: goto 36
StackMap locals:
StackMap stack:
30: ldc "repair"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 33
31: aload 0
invokevirtual org.flywaydb.core.Flyway.repair:()V
32: goto 36
33: StackMap locals:
StackMap stack:
getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "Invalid operation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.error:(Ljava/lang/String;)V
34: invokestatic org.flywaydb.commandline.Main.printUsage:()V
35: iconst_1
invokestatic java.lang.System.exit:(I)V
36: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 flyway Lorg/flywaydb/core/Flyway;
0 37 1 operation Ljava/lang/String;
0 37 2 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
17 29 3 info Lorg/flywaydb/core/api/MigrationInfoService;
18 29 4 current Lorg/flywaydb/core/api/MigrationInfo;
21 29 5 currentSchemaVersion Lorg/flywaydb/core/api/MigrationVersion;
24 29 6 schemaVersionToOutput Lorg/flywaydb/core/api/MigrationVersion;
MethodParameters:
Name Flags
flyway
operation
commandLineArguments
private static void printJson(org.flywaydb.commandline.CommandLineArguments, java.lang.Object);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.flywaydb.commandline.Main.convertObjectToJsonString:(Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.isOutputFileSet:()Z
ifeq 8
2: aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.getOutputFile:()Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 3: aload 2
invokevirtual java.lang.String.getBytes:()[B
astore 4
start local 4 4: aload 3
aload 4
iconst_3
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardOpenOption.TRUNCATE_EXISTING:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_2
getstatic java.nio.file.StandardOpenOption.CREATE:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
5: goto 8
StackMap locals: org.flywaydb.commandline.CommandLineArguments java.lang.Object java.lang.String java.nio.file.Path byte[]
StackMap stack: java.io.IOException
6: astore 5
start local 5 7: new org.flywaydb.core.api.FlywayException
dup
new java.lang.StringBuilder
dup
ldc "Could not write to output file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.getOutputFile:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokespecial org.flywaydb.core.api.FlywayException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 end local 3 8: StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 2
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
0 10 1 object Ljava/lang/Object;
1 10 2 json Ljava/lang/String;
3 8 3 path Ljava/nio/file/Path;
4 8 4 bytes [B
7 8 5 e Ljava/io/IOException;
Exception table:
from to target type
4 5 6 Class java.io.IOException
MethodParameters:
Name Flags
commandLineArguments
object
private static java.lang.String convertObjectToJsonString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new com.google.gson.GsonBuilder
dup
invokespecial com.google.gson.GsonBuilder.<init>:()V
invokevirtual com.google.gson.GsonBuilder.setPrettyPrinting:()Lcom/google/gson/GsonBuilder;
invokevirtual com.google.gson.GsonBuilder.disableHtmlEscaping:()Lcom/google/gson/GsonBuilder;
invokevirtual com.google.gson.GsonBuilder.create:()Lcom/google/gson/Gson;
astore 1
start local 1 1: aload 1
aload 0
invokevirtual com.google.gson.Gson.toJson:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 object Ljava/lang/Object;
1 2 1 gson Lcom/google/gson/Gson;
MethodParameters:
Name Flags
object
private static void initializeDefaults(java.util.Map<java.lang.String, java.lang.String>, org.flywaydb.commandline.CommandLineArguments);
descriptor: (Ljava/util/Map;Lorg/flywaydb/commandline/CommandLineArguments;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.isWorkingDirectorySet:()Z
ifeq 1
aload 1
invokevirtual org.flywaydb.commandline.CommandLineArguments.getWorkingDirectory:()Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: invokestatic org.flywaydb.commandline.Main.getInstallationDir:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: astore 2
start local 2 3: aload 0
ldc "flyway.locations"
new java.lang.StringBuilder
dup
ldc "filesystem:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
new java.io.File
dup
aload 2
ldc "sql"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
ldc "flyway.jarDirs"
new java.io.File
dup
aload 2
ldc "jars"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 6 1 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
3 6 2 workingDirectory Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Lorg/flywaydb/commandline/CommandLineArguments;)V
MethodParameters:
Name Flags
config
commandLineArguments
private static void filterProperties(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "flyway.jarDirs"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
ldc "flyway.configFiles"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
ldc "flyway.configFileEncoding"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
config
private static void printVersion();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokestatic org.flywaydb.core.internal.license.VersionPrinter.printVersionOnly:()V
1: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
2: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "Java "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "java.vendor"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
3: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "os.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "os.arch"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
4: return
LocalVariableTable:
Start End Slot Name Signature
private static void printUsage();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Usage"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
1: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "====="
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
2: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
3: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "flyway [options] command"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
4: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
5: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "By default, the configuration will be read from conf/flyway.conf."
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
6: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Options passed from the command-line override the configuration."
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
7: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
8: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Commands"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
9: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "--------"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
10: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "migrate : Migrates the database"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
11: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "clean : Drops all objects in the configured schemas"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
12: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "info : Prints the information about applied, current and pending migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
13: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "validate : Validates the applied migrations against the ones on the classpath"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
14: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "undo : [pro] Undoes the most recently applied versioned migration"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
15: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "baseline : Baselines an existing database at the baselineVersion"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
16: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "repair : Repairs the schema history table"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
17: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
18: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Options (Format: -key=value)"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
19: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-------"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
20: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "driver : Fully qualified classname of the JDBC driver"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
21: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "url : Jdbc url to use to connect to the database"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
22: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "user : User to use to connect to the database"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
23: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "password : Password to use to connect to the database"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
24: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "connectRetries : Maximum number of retries when attempting to connect to the database"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
25: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "initSql : SQL statements to run to initialize a new database connection"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
26: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "schemas : Comma-separated list of the schemas managed by Flyway"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
27: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "table : Name of Flyway's schema history table"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
28: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "locations : Classpath locations to scan recursively for migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
29: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "resolvers : Comma-separated list of custom MigrationResolvers"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
30: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "skipDefaultResolvers : Skips default resolvers (jdbc, sql and Spring-jdbc)"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
31: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "sqlMigrationPrefix : File name prefix for versioned SQL migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
32: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "undoSqlMigrationPrefix : [pro] File name prefix for undo SQL migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
33: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "repeatableSqlMigrationPrefix : File name prefix for repeatable SQL migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
34: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "sqlMigrationSeparator : File name separator for SQL migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
35: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "sqlMigrationSuffixes : Comma-separated list of file name suffixes for SQL migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
36: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "stream : [pro] Stream SQL migrations when executing them"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
37: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "batch : [pro] Batch SQL statements when executing them"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
38: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "mixed : Allow mixing transactional and non-transactional statements"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
39: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "encoding : Encoding of SQL migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
40: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "placeholderReplacement : Whether placeholders should be replaced"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
41: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "placeholders : Placeholders to replace in sql migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
42: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "placeholderPrefix : Prefix of every placeholder"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
43: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "placeholderSuffix : Suffix of every placeholder"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
44: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "installedBy : Username that will be recorded in the schema history table"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
45: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "target : Target version up to which Flyway should use migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
46: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "outOfOrder : Allows migrations to be run \"out of order\""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
47: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "callbacks : Comma-separated list of FlywayCallback classes"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
48: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "skipDefaultCallbacks : Skips default callbacks (sql)"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
49: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "validateOnMigrate : Validate when running migrate"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
50: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "validateMigrationNaming : Validate file names of SQL migrations (including callbacks)"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
51: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "ignoreMissingMigrations : Allow missing migrations when validating"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
52: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "ignoreIgnoredMigrations : Allow ignored migrations when validating"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
53: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "ignorePendingMigrations : Allow pending migrations when validating"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
54: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "ignoreFutureMigrations : Allow future migrations when validating"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
55: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "cleanOnValidationError : Automatically clean on a validation error"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
56: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "cleanDisabled : Whether to disable clean"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
57: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "baselineVersion : Version to tag schema with when executing baseline"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
58: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "baselineDescription : Description to tag schema with when executing baseline"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
59: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "baselineOnMigrate : Baseline on migrate against uninitialized non-empty schema"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
60: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "configFiles : Comma-separated list of config files to use"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
61: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "configFileEncoding : Encoding to use when loading the config files"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
62: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "jarDirs : Comma-separated list of dirs for Jdbc drivers & Java migrations"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
63: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "dryRunOutput : [pro] File where to output the SQL statements of a migration dry run"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
64: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "errorOverrides : [pro] Rules to override specific SQL states and errors codes"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
65: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "oracle.sqlplus : [pro] Enable Oracle SQL*Plus command support"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
66: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "licenseKey : [pro] Your Flyway license key"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
67: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "color : Whether to colorize output. Values: always, never, or auto (default)"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
68: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "outputFile : Send output to the specified file alongside the console"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
69: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
70: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Flags"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
71: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-----"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
72: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-X : Print debug output"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
73: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-q : Suppress all output, except for errors and warnings"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
74: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-n : Suppress prompting for a user and password"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
75: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-v : Print the Flyway version and exit"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
76: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-? : Print this usage info and exit"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
77: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-json : Print the output in JSON format"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
78: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-community : Run the Flyway Community Edition (default)"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
79: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-pro : Run the Flyway Pro Edition"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
80: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-enterprise : Run the Flyway Enterprise Edition"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
81: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
82: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Example"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
83: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "-------"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
84: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "flyway -user=myuser -password=s3cr3t -url=jdbc:h2:mem -placeholders.abc=def migrate"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
85: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc ""
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
86: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "More info at https://flywaydb.org/documentation/commandline"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
87: return
LocalVariableTable:
Start End Slot Name Signature
private static java.util.List<java.io.File> getJdbcDriverJarFiles();
descriptor: ()Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: new java.io.File
dup
invokestatic org.flywaydb.commandline.Main.getInstallationDir:()Ljava/lang/String;
ldc "drivers"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 0
start local 0 1: aload 0
new org.flywaydb.commandline.Main$1
dup
invokespecial org.flywaydb.commandline.Main$1.<init>:()V
invokevirtual java.io.File.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
astore 1
start local 1 2: aload 1
ifnonnull 5
3: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "Directory for Jdbc Drivers not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
4: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
5: StackMap locals: java.io.File java.io.File[]
StackMap stack:
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 driversDir Ljava/io/File;
2 6 1 files [Ljava/io/File;
Signature: ()Ljava/util/List<Ljava/io/File;>;
private static java.util.List<java.io.File> getJavaMigrationJarFiles(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=10, args_size=1
start local 0 0: aload 0
ldc "flyway.jarDirs"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 1: aload 1
invokestatic org.flywaydb.core.internal.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifne 3
2: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
getstatic java.io.File.pathSeparator:Ljava/lang/String;
ldc ","
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 1
4: aload 1
ldc ","
invokestatic org.flywaydb.core.internal.util.StringUtils.tokenizeToStringArray:(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 5: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 6: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 15
StackMap locals: java.util.Map java.lang.String java.lang.String[] java.util.List top int int java.lang.String[]
StackMap stack:
7: aload 7
iload 5
aaload
astore 4
start local 4 8: new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 8
start local 8 9: aload 8
new org.flywaydb.commandline.Main$2
dup
invokespecial org.flywaydb.commandline.Main$2.<init>:()V
invokevirtual java.io.File.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
astore 9
start local 9 10: aload 9
ifnonnull 13
11: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "Directory for Java Migrations not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.error:(Ljava/lang/String;)V
12: iconst_1
invokestatic java.lang.System.exit:(I)V
13: StackMap locals: java.util.Map java.lang.String java.lang.String[] java.util.List java.lang.String int int java.lang.String[] java.io.File java.io.File[]
StackMap stack:
aload 3
aload 9
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 9 end local 8 end local 4 14: iinc 5 1
StackMap locals: java.util.Map java.lang.String java.lang.String[] java.util.List top int int java.lang.String[]
StackMap stack:
15: iload 5
iload 6
if_icmplt 7
16: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 17 1 jarDirs Ljava/lang/String;
5 17 2 dirs [Ljava/lang/String;
6 17 3 jarFiles Ljava/util/List<Ljava/io/File;>;
8 14 4 dirName Ljava/lang/String;
9 14 8 dir Ljava/io/File;
10 14 9 files [Ljava/io/File;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/List<Ljava/io/File;>;
MethodParameters:
Name Flags
config
static void loadConfigurationFromConfigFiles(java.util.Map<java.lang.String, java.lang.String>, org.flywaydb.commandline.CommandLineArguments, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.flywaydb.commandline.Main.determineConfigurationFileEncoding:(Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)Ljava/lang/String;
astore 3
start local 3 1: new java.io.File
dup
invokestatic org.flywaydb.commandline.Main.getInstallationDir:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 2: aload 0
aload 4
aload 3
invokestatic org.flywaydb.core.internal.configuration.ConfigUtils.loadDefaultConfigurationFiles:(Ljava/io/File;Ljava/lang/String;)Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 1
aload 2
invokestatic org.flywaydb.commandline.Main.determineConfigFilesFromArgs:(Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 6
StackMap locals: java.util.Map org.flywaydb.commandline.CommandLineArguments java.util.Map java.lang.String java.io.File top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.File
astore 5
start local 5 5: aload 0
aload 5
aload 3
iconst_1
invokestatic org.flywaydb.core.internal.configuration.ConfigUtils.loadConfigurationFile:(Ljava/io/File;Ljava/lang/String;Z)Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 5 6: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 0
getstatic java.lang.System.in:Ljava/io/InputStream;
invokestatic org.flywaydb.commandline.Main.readConfigFromInputStream:(Ljava/io/InputStream;)Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 9 1 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
0 9 2 envVars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 9 3 encoding Ljava/lang/String;
2 9 4 installationDir Ljava/io/File;
5 6 5 configFile Ljava/io/File;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
config
commandLineArguments
envVars
private static java.util.Map<java.lang.String, java.lang.String> readConfigFromInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
ifnull 16
aload 0
invokevirtual java.io.InputStream.available:()I
ifle 16
2: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 0
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
start local 2 3: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Attempting to load configuration from standard input"
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
4: aload 2
invokevirtual java.io.BufferedReader.ready:()Z
ifeq 12
5: aload 2
invokestatic org.flywaydb.core.internal.configuration.ConfigUtils.readConfiguration:(Ljava/io/Reader;)Ljava/util/Map;
astore 3
start local 3 6: aload 3
invokeinterface java.util.Map.isEmpty:()Z
ifeq 9
7: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Empty configuration provided from standard input"
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
8: goto 16
9: StackMap locals: java.util.Map java.io.BufferedReader java.util.Map
StackMap stack:
getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Loaded configuration from standard input"
invokeinterface org.flywaydb.core.api.logging.Log.info:(Ljava/lang/String;)V
10: aload 1
aload 3
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
end local 3 11: goto 16
12: StackMap locals:
StackMap stack:
getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
ldc "Could not load configuration from standard input"
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
end local 2 13: goto 16
StackMap locals: java.io.InputStream java.util.Map
StackMap stack: java.lang.Exception
14: astore 2
start local 2 15: getstatic org.flywaydb.commandline.Main.LOG:Lorg/flywaydb/core/api/logging/Log;
new java.lang.StringBuilder
dup
ldc "Could not load configuration from standard input "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.flywaydb.core.api.logging.Log.debug:(Ljava/lang/String;)V
end local 2 16: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 inputStream Ljava/io/InputStream;
1 17 1 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 13 2 bufferedReader Ljava/io/BufferedReader;
6 11 3 configurationFromStandardInput Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
15 16 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 13 14 Class java.lang.Exception
Signature: (Ljava/io/InputStream;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
inputStream
private static void promptForCredentialsIfMissing(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.console:()Ljava/io/Console;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: return
3: StackMap locals: java.io.Console
StackMap stack:
aload 0
ldc "flyway.url"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 5
4: return
5: StackMap locals:
StackMap stack:
aload 0
ldc "flyway.url"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 6: aload 0
ldc "flyway.user"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 8
aload 2
invokestatic org.flywaydb.commandline.Main.needsUser:(Ljava/lang/String;)Z
ifeq 8
7: aload 0
ldc "flyway.user"
aload 1
ldc "Database user: "
iconst_0
anewarray java.lang.Object
invokevirtual java.io.Console.readLine:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "flyway.password"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 13
aload 2
invokestatic org.flywaydb.commandline.Main.needsPassword:(Ljava/lang/String;)Z
ifeq 13
9: aload 1
ldc "Database password: "
iconst_0
anewarray java.lang.Object
invokevirtual java.io.Console.readPassword:(Ljava/lang/String;[Ljava/lang/Object;)[C
astore 3
start local 3 10: aload 0
ldc "flyway.password"
aload 3
ifnonnull 11
ldc ""
goto 12
StackMap locals: java.util.Map java.io.Console java.lang.String char[]
StackMap stack: java.util.Map java.lang.String
11: aload 3
invokestatic java.lang.String.valueOf:([C)Ljava/lang/String;
StackMap locals: java.util.Map java.io.Console java.lang.String char[]
StackMap stack: java.util.Map java.lang.String java.lang.String
12: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 13: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 14 1 console Ljava/io/Console;
6 14 2 url Ljava/lang/String;
10 13 3 password [C
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
config
private static boolean needsUser(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.flywaydb.core.internal.jdbc.DriverDataSource.detectUserRequiredByUrl:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/lang/String;
MethodParameters:
Name Flags
url
private static boolean needsPassword(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.flywaydb.core.internal.jdbc.DriverDataSource.detectPasswordRequiredByUrl:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/lang/String;
MethodParameters:
Name Flags
url
private static java.util.List<java.io.File> determineConfigFilesFromArgs(org.flywaydb.commandline.CommandLineArguments, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.isWorkingDirectorySet:()Z
ifeq 2
aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.getWorkingDirectory:()Ljava/lang/String;
goto 3
StackMap locals: java.util.List
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.lang.String
3: astore 3
start local 3 4: aload 1
ldc "flyway.configFiles"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 11
5: aload 1
ldc "flyway.configFiles"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
ldc ","
invokestatic org.flywaydb.core.internal.util.StringUtils.tokenizeToStringArray:(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 9
StackMap locals: org.flywaydb.commandline.CommandLineArguments java.util.Map java.util.List java.lang.String top int int java.lang.String[]
StackMap stack:
6: aload 7
iload 5
aaload
astore 4
start local 4 7: aload 2
new java.io.File
dup
aload 3
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 6
if_icmplt 6
10: aload 2
areturn
11: StackMap locals: org.flywaydb.commandline.CommandLineArguments java.util.Map java.util.List java.lang.String
StackMap stack:
aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.getConfigFiles:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.flywaydb.commandline.CommandLineArguments java.util.Map java.util.List java.lang.String top java.util.Iterator
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 13: aload 2
new java.io.File
dup
aload 3
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 14: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
0 16 1 envVars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 16 2 configFiles Ljava/util/List<Ljava/io/File;>;
4 16 3 workingDirectory Ljava/lang/String;
7 8 4 file Ljava/lang/String;
13 14 4 file Ljava/lang/String;
Signature: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/List<Ljava/io/File;>;
MethodParameters:
Name Flags
commandLineArguments
envVars
private static java.lang.String getInstallationDir();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc Lorg/flywaydb/commandline/Main;
invokestatic org.flywaydb.core.internal.util.ClassUtils.getLocationOnDisk:(Ljava/lang/Class;)Ljava/lang/String;
astore 0
start local 0 1: new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
2: invokevirtual java.io.File.getParentFile:()Ljava/io/File;
3: invokevirtual java.io.File.getParentFile:()Ljava/io/File;
4: invokevirtual java.io.File.getParentFile:()Ljava/io/File;
5: invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
6: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 path Ljava/lang/String;
private static java.lang.String determineConfigurationFileEncoding(org.flywaydb.commandline.CommandLineArguments, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "flyway.configFileEncoding"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
1: aload 1
ldc "flyway.configFileEncoding"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.isConfigFileEncodingSet:()Z
ifeq 4
3: aload 0
invokevirtual org.flywaydb.commandline.CommandLineArguments.getConfigFileEncoding:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
ldc "UTF-8"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 commandLineArguments Lorg/flywaydb/commandline/CommandLineArguments;
0 5 1 envVars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Lorg/flywaydb/commandline/CommandLineArguments;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/lang/String;
MethodParameters:
Name Flags
commandLineArguments
envVars
}
SourceFile: "Main.java"
NestMembers:
org.flywaydb.commandline.Main$1 org.flywaydb.commandline.Main$2
InnerClasses:
public final Level = org.flywaydb.commandline.ConsoleLog$Level of org.flywaydb.commandline.ConsoleLog
org.flywaydb.commandline.Main$1
org.flywaydb.commandline.Main$2