use of de.dagere.peass.analysis.properties.VersionChangeProperties in project peass by DaGeRe.
the class GetAllChanges method getChangesForMeasurementfolder.
public static void getChangesForMeasurementfolder(final RepoFolders folders, final String project, final File cleanFolder, final StaticTestSelection dependencies) throws JAXBException, FileNotFoundException {
ResultsFolders resultsFolders = new ResultsFolders(folders.getProjectStatisticsFolder(project), project);
final ChangeReader reader = new ChangeReader(resultsFolders, project, dependencies);
final ProjectChanges changes = reader.readFile(cleanFolder);
if (changes != null) {
final File allPropertyFile = new File(folders.getPropertiesFolder(), project + File.separator + "properties_alltests.json");
if (allPropertyFile.exists()) {
final VersionChangeProperties properties = ReadProperties.readVersionProperties(changes, allPropertyFile);
try {
// final ProjectChanges oldKnowledge = ProjectChanges.getOldChanges();
// ProjectChanges.mergeKnowledge(oldKnowledge, knowledge);
// ReadProperties.writeOnlySource(properties, oldKnowledge);
Constants.OBJECTMAPPER.writeValue(folders.getProjectPropertyFile(project), properties);
} catch (final IOException e) {
e.printStackTrace();
}
}
}
}
Aggregations