no message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
||||
@@ -91,19 +91,19 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
int other_project_files = 0;
|
||||
//---
|
||||
if (dir.getName().equalsIgnoreCase(Constants.data)) {
|
||||
Log.Writeln_("Папка " + CommonUtils.Brackets(dir) + " является служебной папкой визуализатора.");
|
||||
Log.Writeln_("Папка " + Utils_.Brackets(dir) + " является служебной папкой визуализатора.");
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
if (CommonUtils.ContainsCyrillic(dir.getName()) || CommonUtils.ContainsForbiddenName(dir.getName())) {
|
||||
Log.Writeln_("Имя папки " + CommonUtils.Brackets(dir.getName())
|
||||
if (Utils_.ContainsCyrillic(dir.getName()) || Utils_.ContainsForbiddenName(dir.getName())) {
|
||||
Log.Writeln_("Имя папки " + Utils_.Brackets(dir.getName())
|
||||
+ " содержит запрещённые символы "
|
||||
+ CommonUtils.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
+ Utils_.printAllForbiddenCharacters() + ", или кириллицу.");
|
||||
return false;
|
||||
}
|
||||
//--
|
||||
if (files == null) {
|
||||
Log.Writeln_("Не удалось получить список файлов для папки " + CommonUtils.Brackets(dir) + ".");
|
||||
Log.Writeln_("Не удалось получить список файлов для папки " + Utils_.Brackets(dir) + ".");
|
||||
return false;
|
||||
}
|
||||
//---
|
||||
@@ -117,7 +117,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
!Utils.isVersion(file)) {
|
||||
subdirs++;
|
||||
}
|
||||
} else if (file.isFile() && !CommonUtils.ContainsCyrillic(file.getName()) && !CommonUtils.ContainsForbiddenName(file.getName())) {
|
||||
} else if (file.isFile() && !Utils_.ContainsCyrillic(file.getName()) && !Utils_.ContainsForbiddenName(file.getName())) {
|
||||
//если файл. все недопустимые файлы просто игнорируются.
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
if (isNotExcluded(projectFile)) {
|
||||
@@ -146,7 +146,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
}
|
||||
//--
|
||||
if (subdirs > 0) {
|
||||
Log.Writeln_("Папка " + CommonUtils.Brackets(dir) + " содержит вложенные подпапки,\n" +
|
||||
Log.Writeln_("Папка " + Utils_.Brackets(dir) + " содержит вложенные подпапки,\n" +
|
||||
"не являющиеся версиями или данными визуализатора");
|
||||
return false;
|
||||
}
|
||||
@@ -174,7 +174,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
}
|
||||
//-
|
||||
public File packTestCode() throws Exception {
|
||||
target.temp_project_name = CommonUtils.getDateName("test");
|
||||
target.temp_project_name = Utils_.getDateName("test");
|
||||
//-
|
||||
File tempProject = target.getTempProject();
|
||||
File tempArchive = target.getTempArchive();
|
||||
@@ -190,7 +190,7 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
||||
//--
|
||||
ZipFolderPass zip = new ZipFolderPass();
|
||||
if (zip.Do(tempProject.getAbsolutePath(), tempArchive.getAbsolutePath())) {
|
||||
target.project_archive_bytes = CommonUtils.fileToBytes(tempArchive);
|
||||
target.project_archive_bytes = Utils_.fileToBytes(tempArchive);
|
||||
} else throw new PassException("Не удалось создать архив папки с кодом.");
|
||||
return tempProject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user