no message
This commit is contained in:
@@ -1014,7 +1014,7 @@ public class db_project_info extends DBObject {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public void migrateFilesSettings(db_project_info target, boolean migrate_arrays, boolean migrate_headers, boolean sapforStyle) throws Exception {
|
||||
public void migrateFilesSettings(db_project_info target, boolean migrate_arrays, boolean sapforStyle) throws Exception {
|
||||
Pair<LinkedHashMap<String, DBProjectFile>, LinkedHashMap<String, DBProjectFile>> sortedFiles = sortFiles();
|
||||
//--
|
||||
LinkedHashMap<String, DBProjectFile> programs = sortedFiles.getKey();
|
||||
@@ -1040,16 +1040,13 @@ public class db_project_info extends DBObject {
|
||||
version_file.importSettings(file, sapforStyle);
|
||||
target.db.Update(version_file);
|
||||
} else {
|
||||
if (//!file.state.equals(FileState.Excluded)&&
|
||||
(!file.fileType.equals(FileType.header) || migrate_headers)) {
|
||||
File toCopy = Paths.get(target.Home.getAbsolutePath(), file.name).toFile();
|
||||
if (!toCopy.exists())
|
||||
Files.copy(file.file.toPath(), toCopy.toPath());
|
||||
//--
|
||||
DBProjectFile new_version_file = new DBProjectFile(toCopy, target);
|
||||
new_version_file.importSettings(file, sapforStyle);
|
||||
target.db.Insert(new_version_file);
|
||||
}
|
||||
File toCopy = Paths.get(target.Home.getAbsolutePath(), file.name).toFile();
|
||||
if (!toCopy.exists())
|
||||
Files.copy(file.file.toPath(), toCopy.toPath());
|
||||
//--
|
||||
DBProjectFile new_version_file = new DBProjectFile(toCopy, target);
|
||||
new_version_file.importSettings(file, sapforStyle);
|
||||
target.db.Insert(new_version_file);
|
||||
}
|
||||
}
|
||||
//---
|
||||
@@ -1098,7 +1095,7 @@ public class db_project_info extends DBObject {
|
||||
//теперь копируем инфу по файлам.
|
||||
if (cloneData) {
|
||||
db_project_info res = new db_project_info(dst);
|
||||
migrateFilesSettings(res, false, true, false);
|
||||
migrateFilesSettings(res, true, false);
|
||||
}
|
||||
}
|
||||
public void Clone(File dst) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user