mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-04-27 05:44:17 +00:00
not throwing ex when ignore file exists (#17501)
This commit is contained in:
+1
-1
@@ -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