RunProcessCommand Class — spring-boot Architecture
Architecture documentation for the RunProcessCommand class in RunProcessCommand.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/RunProcessCommand.java lines 38–72
class RunProcessCommand extends AbstractCommand {
private final String[] command;
private volatile @Nullable RunProcess process;
RunProcessCommand(String... command) {
super("", "");
this.command = command;
}
@Override
public ExitStatus run(String... args) throws Exception {
return run(Arrays.asList(args));
}
protected ExitStatus run(Collection<String> args) throws IOException {
RunProcess process = new RunProcess(this.command);
this.process = process;
int code = process.run(true, StringUtils.toStringArray(args));
if (code == 0) {
return ExitStatus.OK;
}
else {
return new ExitStatus(code, "EXTERNAL_ERROR");
}
}
boolean handleSigInt() {
RunProcess process = this.process;
Assert.state(process != null, "'process' must not be null");
return process.handleSigInt();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free