Make sure parent directory exists
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 22 Mar 2023 16:07:33 +0000 (17:07 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 22 Mar 2023 16:07:33 +0000 (17:07 +0100)
src/org/argeo/build/Repackage.java

index 0eec4fad7d7b57d5b6d30838e711771cadc3397c..9b847bab8d78ef5f6bb82ec877d9be1d683a5e24 100644 (file)
@@ -708,6 +708,7 @@ public class Repackage {
                // When releasing (with separate sources), we just copy it
                Path unmodifiedTarget = targetCategoryBase
                                .resolve(fileProps.getProperty(BUNDLE_SYMBOLICNAME.toString()) + "." + artifact.getBranch() + ".jar");
+               Files.createDirectories(unmodifiedTarget.getParent());
                Files.copy(downloaded, unmodifiedTarget, StandardCopyOption.REPLACE_EXISTING);
                Path bundleDir = targetCategoryBase
                                .resolve(fileProps.getProperty(BUNDLE_SYMBOLICNAME.toString()) + "." + artifact.getBranch());