package com.github.zhanhb.judge.common;

import java.nio.file.Path;
import lombok.Builder;
import lombok.Getter;
import lombok.Value;

@Builder(builderClassName = "Builder")
@Getter
@Value
@SuppressWarnings("FinalClass")
public class Options {

    private Path inputFile;
    private Path errFile;
    private Path outputFile; // 提交程序的输出文件
    private Path standardOutput; // 标程输出的文件
    private long timeLimit;
    private long memoryLimit;
    private long outputLimit;
    private boolean redirectErrorStream;
    private String command;
    private Path workDirectory;

}

@@ -568,10 +568,249 @@
 ctory;%0A%0A
+    @SuppressWarnings(%22PublicInnerClass%22)%0A    public static class Builder %7B%0A%0A        Builder() %7B%0A            timeLimit = Long.MAX_VALUE;%0A            memoryLimit = Long.MAX_VALUE;%0A            outputLimit = Long.MAX_VALUE;%0A        %7D%0A%0A    %7D%0A%0A
 %7D%0A

Add default option builder limits