|
@@ -34,13 +34,16 @@ public class CompilerConfig extends BaseEntity {
|
|
|
@Length(max = 255, message = "编译名字的最大长度不能超过 255 个字符")
|
|
@Length(max = 255, message = "编译名字的最大长度不能超过 255 个字符")
|
|
|
@Column(nullable = false, unique = true)
|
|
@Column(nullable = false, unique = true)
|
|
|
private String name;
|
|
private String name;
|
|
|
- @NotBlank(groups = { ShellCompiler.class, MavenCompiler.class }, message = "编译器主目录不能为空")
|
|
|
|
|
- @Length(max = 255, message = "编译器主目录的最大长度不能超过 255 个字符")
|
|
|
|
|
private String homePath;
|
|
private String homePath;
|
|
|
@NotBlank(groups = { ShellCompiler.class}, message = "编译脚本不能为空")
|
|
@NotBlank(groups = { ShellCompiler.class}, message = "编译脚本不能为空")
|
|
|
@Length(max = 10_000, message = "编译脚本的最大长度不能超过 10_000 个字符")
|
|
@Length(max = 10_000, message = "编译脚本的最大长度不能超过 10_000 个字符")
|
|
|
@Column(columnDefinition="text")
|
|
@Column(columnDefinition="text")
|
|
|
|
|
+ @Deprecated
|
|
|
private String compileScript;
|
|
private String compileScript;
|
|
|
|
|
+ @Length(max = 1000, message = "编译命令长度不能超过 1000 个字符")
|
|
|
|
|
+ private String compileCmd;
|
|
|
|
|
+ @Length(max = 1000, message = "版本命令长度不能超过 1000 个字符")
|
|
|
|
|
+ private String versionCmd;
|
|
|
|
|
|
|
|
public interface NoneCompiler {
|
|
public interface NoneCompiler {
|
|
|
}
|
|
}
|