Make sure parent directory exists
[cc0/argeo-build.git] / 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());