Commit 90d7057d authored by Christopher Jan-Steffen Brix's avatar Christopher Jan-Steffen Brix
Browse files

Write hashing files to file system

parent c8eaeb92
......@@ -137,6 +137,7 @@ public class EMADLGenerator {
fileContentMap.put(f.getFileName(), f.getFileContent());
}
List<FileContent> fileContentsTrainingHashes = new HashSet<>();
for (ExpandedComponentInstanceSymbol componentInstance : allInstances) {
ComponentSymbol component = componentInstance.getComponentType().getReferencedSymbol();
Optional<ArchitectureSymbol> architecture = component.getSpannedScope().resolve("", ArchitectureSymbol.KIND);
......@@ -200,10 +201,15 @@ public class EMADLGenerator {
}else{System.out.println("Trainingfile not found.");}
}
fileContents.add(new FileContent(trainingHash, componentConfigFilename + ".training_hash"));
fileContentsTrainingHashes.add(new FileContent(trainingHash, componentConfigFilename + ".training_hash"));
}
for (FileContent fileContent : fileContentsTrainingHashes) {
emamGen.generateFile(fileContent);
}
}
private static String convertByteArrayToHexString(byte[] arrayBytes) {
StringBuffer stringBuffer = new StringBuffer();
for (int i = 0; i < arrayBytes.length; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment