Skip to content

Commit

Permalink
Fixed missing T/P/F/S
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrigos committed Nov 15, 2021
1 parent 1d689f5 commit 3729468
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public WebpageGenerator() {

// for comparator configuration
public static void generatePage() throws IOException, URISyntaxException {
WebpageGenerator gen = new WebpageGenerator();
configType = "comparator.yaml";
packNum = packageNames.size();
File tempfile = genTemplateHTML();
Expand All @@ -98,6 +99,7 @@ public static void generatePage() throws IOException, URISyntaxException {
for (Field field : clazz.getDeclaredFields()) {
try {
if (!skippedFields.contains(field.getName())) {
log.info("======ATTEMPTING TO REPLACE {} WITH {}", field.getName(), field.get(gen).toString());
htmlTemp = htmlTemp.replace("$" + field.getName(), field.get(gen).toString());
FileUtils.writeStringToFile(newHtml, htmlTemp, utf8);
}
Expand All @@ -122,6 +124,7 @@ public static void generatePage() throws IOException, URISyntaxException {
// for script configuration || props gets passed all the way from
// ComparatorScriptEngine
public static void generatePage(Map<String, Object> props) throws IOException {
WebpageGenerator gen = new WebpageGenerator();
configType = scriptName;
packNum = packageNames.size();
File tempfile = genTemplateHTML();
Expand Down

0 comments on commit 3729468

Please sign in to comment.