Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* dbeaver/dbeaver-infra#128 te workspace

* dbeaver/dbeaver-infra#128 te workspace

* dbeaver/dbeaver-infra#128 suggestions from code review

* dbeaver/dbeaver-infra#128 change property call
  • Loading branch information
Destrolaric authored Dec 12, 2024
1 parent 81a9d3b commit 228325d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ private String generateLaunchConfig(Path productPath, Result result) {
}
}
config.append("\"/>\n");
Map<String, String> associatedParameters = PathsManager.INSTANCE.getAssociatedParameters(result.getProductUID());
if (associatedParameters != null) {
config.append(" <envs>").append("\n");
for (Map.Entry<String, String> parameterEntry : associatedParameters.entrySet()) {
config.append(" <env name=\"%s\" value=\"%s\" />\n".formatted(parameterEntry.getKey(), parameterEntry.getValue()));
}
config.append(" </envs>").append("\n");
}
config.append(" <option name=\"WORKING_DIRECTORY\" value=").append(result.getWorkDir() != null ? "\""
+ result.getWorkDir() + "\"" : "\"$MODULE_WORKING_DIR$\"").append("/>\n");
config.append(" <shortenClasspath name=\"ARGS_FILE\" />\n");
Expand Down

0 comments on commit 228325d

Please sign in to comment.