Skip to content

Commit

Permalink
Address comment from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Nov 8, 2023
1 parent 8a45e91 commit b6eba5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ public void doGenerate(List<FederateInstance> federates, RtiConfig rtiConfig) {
}
}

// Write the launcher file.
File file = fileConfig.binPath.resolve(fileConfig.name).toFile();
messageReporter
.nowhere()
.info("##### Generating launcher for federation " + " in directory " + fileConfig.binPath);
.info("Script for launching the federation: " + file);

// Write the launcher file.
// Delete file previously produced, if any.
File file = fileConfig.binPath.resolve(fileConfig.name).toFile();
if (file.exists()) {
if (!file.delete())
messageReporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class TSGenerator(
val jsPath = fileConfig.srcGenPath.resolve("dist").resolve("${fileConfig.name}.js")
FileUtil.writeToFile("#!/bin/sh\nnode $jsPath", shScriptPath)
shScriptPath.toFile().setExecutable(true)
messageReporter.nowhere().info("Script for executing the compiled program is $shScriptPath.")
messageReporter.nowhere().info("Script for executing the compiled program: $shScriptPath.")
}
}

Expand Down

0 comments on commit b6eba5f

Please sign in to comment.