Skip to content

Commit

Permalink
Address comments from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jun 20, 2024
1 parent 0c15a11 commit 2121a7e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,17 @@ protected String generateCopyOfScript() {
* property from the builder to the runner.
*/
protected String generateCopyOfUserFiles() {
if (!context.getTargetConfig().isSupported(FilesProperty.INSTANCE)) {
return "";
}
var files = context.getTargetConfig().get(FilesProperty.INSTANCE);
if (files == null) {
return "# (No user-specified files to be copied.)";
return "# (No user-specified files to be copied.)";
}
var ret = new StringBuilder();
for (var file : files) {
var p = Path.of(file);
var name = p.getName(p.getNameCount() - 1);
var name = p.getFileName().toString();
ret.append(
String.format(
"COPY --from=builder \"lingua-franca/%s/src-gen/%s\" \"./%s\"",
Expand Down

0 comments on commit 2121a7e

Please sign in to comment.