Skip to content

Commit

Permalink
not throwing ex when ignore file exists (#17501)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Jan 3, 2024
1 parent 8b5b5a7 commit 218dccd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ private void generateOpenAPIGeneratorIgnoreFile() {
LOGGER.info("Writing file " + ignoreFileNameTarget + " (which is always overwritten when the option `openapiGeneratorIgnoreFile` is enabled.)");
new File(config.outputFolder()).mkdirs();
if (!ignoreFile.createNewFile()) {
throw new RuntimeException("Failed to create the file .openapi-generator-ignore: " + ignoreFileNameTarget);
// file may already exist, do nothing
}

String header = String.join("\n",
Expand Down

0 comments on commit 218dccd

Please sign in to comment.