mirror of
https://github.com/microsoft/playwright-java.git
synced 2025-12-28 18:30:43 +00:00
fix: set default codegen language to java (#320)
This commit is contained in:
parent
9b568ab4ae
commit
9fe7496261
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user