++
Оптимизация анализа состояния версий пакетов сапфор
This commit is contained in:
@@ -667,53 +667,6 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
}
|
||||
}
|
||||
//--
|
||||
public void Patch() throws Exception {
|
||||
/*
|
||||
Vector<DVMCompilationOptionsSet> sets1 = new Vector<>();
|
||||
for (DVMSettings dvm_settings : dvmSettings.Data.values()) {
|
||||
OptionsSetJson optionsSetJson = Utils_.gson.fromJson(dvm_settings.packedCompilationOptionsJson, OptionsSetJson.class);
|
||||
for (OptionsJson optionsJson : optionsSetJson.values) {
|
||||
DVMCompilationOptionsSet set = new DVMCompilationOptionsSet(dvm_settings);
|
||||
set.options = new Vector<>();
|
||||
for (OptionJson optionJson : optionsJson.values) {
|
||||
set.options.add(new DVMCompilationOption(optionJson.name, optionJson.value));
|
||||
}
|
||||
sets1.add(set);
|
||||
}
|
||||
}
|
||||
BeginTransaction();
|
||||
for (DVMCompilationOptionsSet set : sets1) {
|
||||
Insert(set);
|
||||
|
||||
for (DVMCompilationOption option : set.options) {
|
||||
option.dvmcompilationoptionsset_id = set.id;
|
||||
Insert(option);
|
||||
}
|
||||
}
|
||||
Commit();
|
||||
Vector<DVMEnvironmentsSet> sets = new Vector<>();
|
||||
for (DVMSettings dvm_settings : dvmSettings.Data.values()) {
|
||||
EnvironmentsSetJson environmentsSetJson = Utils_.gson.fromJson(dvm_settings.packedRunEnvironmentValuesJson, EnvironmentsSetJson.class);
|
||||
for (EnvironmentsJson environmentsJson : environmentsSetJson.values) {
|
||||
DVMEnvironmentsSet set = new DVMEnvironmentsSet(dvm_settings);
|
||||
set.environments = new Vector<>();
|
||||
for (EnvironmentJson environmentJson : environmentsJson.values) {
|
||||
set.environments.add(new DVMEnvironment(environmentJson.name, environmentJson.value));
|
||||
}
|
||||
sets.add(set);
|
||||
}
|
||||
}
|
||||
BeginTransaction();
|
||||
for (DVMEnvironmentsSet set : sets) {
|
||||
Insert(set);
|
||||
for (DVMEnvironment option : set.environments) {
|
||||
option.dvmenvironmentsset_id = set.id;
|
||||
Insert(option);
|
||||
}
|
||||
}
|
||||
Commit();
|
||||
*/
|
||||
}
|
||||
public Vector<Pair<String, String>> getTasksParameters(DVMSettings dvmSettings_in) {
|
||||
//уравниваем количество наборов опций и окружений и сопоставляем 1 к 1
|
||||
Vector<Pair<String, String>> res = new Vector<>();
|
||||
@@ -739,4 +692,6 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
public void Patch() throws Exception {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user