public static FileQuery on(FileType... types) {
FileQuery query = new FileQuery();
for (FileType type : types) {
- query.on(InputFile.ATTRIBUTE_TYPE, type.name());
+ query.on(InputFile.ATTRIBUTE_TYPE, type.typeValue());
}
return query;
}
*/
@Deprecated
public enum FileType {
- SOURCE, TEST
+ SOURCE(InputFile.TYPE_MAIN), TEST(InputFile.TYPE_TEST);
+
+ private String typeValue;
+
+ private FileType(String typeValue) {
+ this.typeValue = typeValue;
+ }
+
+ String typeValue() {
+ return typeValue;
+ }
}