Добавление одного выбранного файла в качестве теста.
This commit is contained in:
@@ -67,7 +67,7 @@ public class CreateTestFromDirectory extends Pass_2021<Test> {
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
if (!Utils.validateProjectFile(dir, Log)) {
|
||||
if (Utils.ContainsCyrillic(dir.getName()) || Utils.ContainsForbiddenName(dir.getName())) {
|
||||
Log.Writeln_("Имя папки " + Utils.Brackets(dir.getName()) + " содержит запрещённые символы " + Constants.all_forbidden_characters_string + ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
@@ -90,16 +90,12 @@ public class CreateTestFromDirectory extends Pass_2021<Test> {
|
||||
} else if (file.isFile() && !Utils.ContainsCyrillic(file.getName()) && !Utils.ContainsForbiddenName(file.getName())) {
|
||||
//если файл. все недопустимые файлы просто игнорируются.
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
System.out.println(projectFile.file);
|
||||
System.out.println("1");
|
||||
if (isNotExcluded(projectFile)) {
|
||||
System.out.println("1.5");
|
||||
switch (projectFile.fileType) {
|
||||
case program:
|
||||
if (projectFile.languageName.equals(group.language)) {
|
||||
active_programs++;
|
||||
project_files.add(projectFile);
|
||||
System.out.println("2");
|
||||
} else
|
||||
other_project_files++;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user