You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by da...@apache.org on 2020/08/27 12:49:08 UTC
[sling-org-apache-sling-feature-extension-unpack] 18/22:
SLING-9670: add a new unpack extension for the feature model.
This is an automated email from the ASF dual-hosted git repository.
davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-extension-unpack.git
commit d5711c4a8773460fc599fc766b895dd43aa0d02d
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Thu Aug 20 15:21:08 2020 +0200
SLING-9670: add a new unpack extension for the feature model.
---
.../apache/sling/feature/extension/unpack/impl/converter/Converter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java b/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java
index 13bb9d2..98f6257 100644
--- a/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java
+++ b/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java
@@ -61,7 +61,7 @@ public class Converter {
if (!target.getParentFile().isDirectory() && !target.getParentFile().mkdirs()) {
throw new IOException("Unable to create parent dir: " + target.getParentFile());
}
- Files.move(tmp.toPath(), target.toPath());
+ Files.move(tmp.toPath(), target.toPath(), StandardCopyOption.REPLACE_EXISTING);
}
}
feature.getExtensions().add(extension);