// handle the parent's parent first, if needed
ensureParentIsPublished(maybeParent, repository, allResources, handledPaths);
// create this resource
execute(addFileCommand(repository, maybeParent));
handledPaths.add(maybeParent.getModuleRelativePath());
logger.trace("Ensured that resource at path {0} is published", parentPath);
return;
}
}
throw new IllegalArgumentException("Resource at " + moduleResource.getModuleRelativePath()