mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
not throwing ex when ignore file exists (#17501)
This commit is contained in:
@@ -949,7 +949,7 @@ public class DefaultGenerator implements Generator {
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user