Skip to content

Commit d29ba4a

Browse files
CBiasuzzisylvlecl
authored andcommitted
overwrite outputs, if existing
1 parent 083271d commit d29ba4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eurostag-integration/src/main/java/eu/itesla_project/eurostag/EurostagExportTool.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void run(CommandLine line, ToolRunningContext context) throws Exception {
110110
ContingenciesProvider contingenciesProvider = new FilterValidContingenciesProvider(defaultConfig.newFactoryImpl(ContingenciesProviderFactory.class).create());
111111

112112
scenario.writeFaultSeqArchive(contingenciesProvider.getContingencies(network), network, dictionary, faultNum -> FAULT_SEQ_FILE_NAME.replace(com.powsybl.computation.CommandConstants.EXECUTION_NUMBER_PATTERN, Integer.toString(faultNum)))
113-
.as(ZipExporter.class).exportTo(outputDir.resolve(ALL_SCENARIOS_ZIP_FILE_NAME).toFile());
113+
.as(ZipExporter.class).exportTo(outputDir.resolve(ALL_SCENARIOS_ZIP_FILE_NAME).toFile(), true);
114114

115115
// export limits
116116
try (OutputStream os = Files.newOutputStream(outputDir.resolve(LIMITS_ZIP_FILE_NAME))) {

0 commit comments

Comments
 (0)