fix: set default codegen language to java (#320)

This commit is contained in:
Yury Semikhatsky 2021-03-04 22:33:49 -08:00 committed by GitHub
parent 9b568ab4ae
commit 9fe7496261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,9 @@ public class CLI {
Path driver = Driver.ensureDriverInstalled();
ProcessBuilder pb = new ProcessBuilder(driver.toString());
pb.command().addAll(asList(args));
if (!pb.environment().containsKey("PW_CLI_TARGET_LANG")) {
pb.environment().put("PW_CLI_TARGET_LANG", "java");
}
pb.inheritIO();
Process process = pb.start();
System.exit(process.waitFor());