This is an automated email from the ASF dual-hosted git repository.
pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new f8eb492 SLING-9670: add a new unpack extension for the feature model.
f8eb492 is described below
commit f8eb492be37e7d6b5e3347b2ebe546fa70941f7a
Author: Karl Pauls <[email protected]>
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/featuremodel-unpack-extension/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java
b/featuremodel-unpack-extension/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java
index 13bb9d2..98f6257 100644
---
a/featuremodel-unpack-extension/src/main/java/org/apache/sling/feature/extension/unpack/impl/converter/Converter.java
+++
b/featuremodel-unpack-extension/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);