pantsExecutable.orElseThrow(
() -> new PantsException("Couldn't find pants executable for: " + project.getProjectFilePath())).getPath()
);
}
public static GeneralCommandLine defaultCommandLine(@NotNull String projectPath) throws PantsException {
<BUG>final Optional<File> pantsExecutable = findPantsExecutable(Optional.of(new File(projectPath)));
return defaultCommandLine(pantsExecutable.orElseThrow(() -> new PantsException("Couldn't find pants executable for: " + projectPath)));</BUG>
}
@NotNull
public static GeneralCommandLine defaultCommandLine(@NotNull File pantsExecutable) {

pantsExecutable.orElseThrow(
() -> new PantsException("Couldn't find pants executable for: " + project.getProjectFilePath())).getPath()
);
}
public static GeneralCommandLine defaultCommandLine(@NotNull String projectPath) throws PantsException {
final Optional<File> pantsExecutable = findPantsExecutable(new File(projectPath));
return defaultCommandLine(pantsExecutable.orElseThrow(() -> new PantsException("Couldn't find pants executable for: " + projectPath)));
}
@NotNull
public static GeneralCommandLine defaultCommandLine(@NotNull File pantsExecutable) {
