Skip to content

Commit 2bf1fb5

Browse files
committed
Print implicit JVM configuration on verbose
1 parent 0c5b88e commit 2bf1fb5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/go/args/java_execution.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,20 @@ func (options *Options) JavaExecution(daemonize bool) ([]string, []string, error
9696
command := []string{javaBin, "-cp", classpath}
9797
command = append(command, options.JvmConfig...)
9898

99-
if perJdkConfigs, exists := jvmSpecificConfig[GetMajorJavaVersion(jdkVersion)]; exists {
99+
majorJavaVersion := GetMajorJavaVersion(jdkVersion);
100+
if perJdkConfigs, exists := jvmSpecificConfig[majorJavaVersion]; exists {
100101
for _, perJdkConfig := range perJdkConfigs {
101102
if perJdkConfig != "" {
102103
command = append(command, perJdkConfig)
103104
}
104105
}
106+
107+
if options.Verbose {
108+
fmt.Printf("Implicit JVM %s config: %v\n", majorJavaVersion, perJdkConfigs)
109+
}
105110
}
106111

112+
107113
if len(options.JvmOptions) != 0 {
108114
command = append(command, strings.Join(options.JvmOptions, " "))
109115
}

0 commit comments

Comments
 (0)