forked from loafle/openapi-generator-original
updated to overwrite files
This commit is contained in:
parent
02fd96a24a
commit
9c75304832
@ -258,7 +258,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
|||||||
in = this.getClass().getClassLoader().getResourceAsStream(config.templateDir() + File.separator + support.templateFile);
|
in = this.getClass().getClassLoader().getResourceAsStream(config.templateDir() + File.separator + support.templateFile);
|
||||||
}
|
}
|
||||||
File outputFile = new File(outputFilename);
|
File outputFile = new File(outputFilename);
|
||||||
OutputStream out = new FileOutputStream(outputFile, true);
|
OutputStream out = new FileOutputStream(outputFile, false);
|
||||||
if(in != null && out != null)
|
if(in != null && out != null)
|
||||||
IOUtils.copy(in,out);
|
IOUtils.copy(in,out);
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user