Skip to content

Commit

Permalink
Fix for webservice_all tests - the wsdl file can already exist
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 18, 2022
1 parent f93b7d9 commit c41f308
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;

import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
import static java.text.MessageFormat.format;
import static java.util.logging.Level.FINE;
import static java.util.logging.Level.SEVERE;
Expand Down Expand Up @@ -775,7 +776,7 @@ private void publishFile(File file, File publishLocation) throws IOException {
if (!publishLocation.exists()) {
mkDirs(publishLocation.getParentFile());
}
Files.copy(file.toPath(), publishLocation.toPath());
Files.copy(file.toPath(), publishLocation.toPath(), REPLACE_EXISTING);
}

private void deletePublishedFiles(Set<String> publishedFiles) {
Expand Down

0 comments on commit c41f308

Please sign in to comment.