Skip to content

Commit

Permalink
app: The loaded cli-usage.yml is tmp file #TASK-5055
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Oct 31, 2023
1 parent 8e2d0e9 commit ccf0089
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ public static CliConfiguration getInstance() {

private CliUsage loadConfiguration() throws IOException {
// Loading the YAML file from the /conf folder
File file = new File(cliUsageFileName);
File file = new File(FileUtils.getTempDirectory()+File.separator+cliUsageFileName);

FileUtils.copyURLToFile(getClass().getClassLoader().getResource(cliUsageFileName),file);

// Mapping the config from the YAML file to the Configuration class
logger.info("Loading CLI configuration from: " + file.getAbsolutePath());
ObjectMapper yamlObjectMapper = new ObjectMapper(new YAMLFactory());
Expand Down

0 comments on commit ccf0089

Please sign in to comment.