Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ListResourceBundle;
import java.util.ResourceBundle;

import static com.google.inject.util.Modules.EMPTY_MODULE;
import static io.trino.tests.product.launcher.cli.Launcher.EnvironmentCommand;
Expand Down Expand Up @@ -58,17 +59,18 @@ public class Launcher
public static void main(String[] args)
{
Launcher launcher = new Launcher();
run(launcher, args);
run(launcher, new LauncherBundle(), args);
}

public static void run(Launcher launcher, String[] args)
public static void run(Launcher launcher, ResourceBundle bundle, String[] args)
{
IFactory factory = createFactory(launcher.getExtensions());
System.exit(new CommandLine(launcher, factory)
.setCaseInsensitiveEnumValuesAllowed(true)
.registerConverter(Duration.class, Duration::valueOf)
.registerConverter(Path.class, Paths::get)
.setResourceBundle(new LauncherBundle()).execute(args));
.setResourceBundle(bundle)
.execute(args));
}

private static IFactory createFactory(Extensions extensions)
Expand Down