addedFiles.add(new ExplodedContent(path, in)); slaveAddedfiles.add(path);
copyRecursively(contentPath, contentDir, overwrite); for (ExplodedContent newContent : addFiles) { Path targetFile = resolveSecurely(contentDir, newContent.getRelativePath()); if (!Files.exists(targetFile)) { Files.createDirectories(targetFile.getParent()); try (InputStream in = newContent.getContent()) { if(in == null) { Files.createDirectory(targetFile);
if (operation.hasDefined(DeploymentAttributes.UPDATED_PATHS.getName())) { for (ModelNode addedFile : DeploymentAttributes.UPDATED_PATHS.resolveModelAttribute(context, operation).asList()) { addedFiles.add(new ExplodedContent(addedFile.asString())); addedFiles.add(new ExplodedContent(path, in)); String relativePath = addedFile.getRelativePath(); relativePaths.add(relativePath);
if (operation.hasDefined(DeploymentAttributes.UPDATED_PATHS.getName())) { for (ModelNode addedFile : DeploymentAttributes.UPDATED_PATHS.resolveModelAttribute(context, operation).asList()) { addedFiles.add(new ExplodedContent(addedFile.asString())); addedFiles.add(new ExplodedContent(path, in)); String relativePath = addedFile.getRelativePath(); relativePaths.add(relativePath);
addedFiles.add(new ExplodedContent(path, in)); slaveAddedfiles.add(path);