private Session jcrSession;
private String artifactBasePath = RepoConstants.ARTIFACTS_BASE_PATH;
- private String distributionsBasePath = "/slc/repo/distributions";
+ private String distributionsBasePath = RepoConstants.DISTRIBUTIONS_BASE_PATH;
private String distributionName;
private ArtifactIndexer artifactIndexer = new ArtifactIndexer();
}
try {
- String parentPath = artifactBasePath + '/'
+ String parentPath = artifactBasePath
+ + (artifactBasePath.endsWith("/") ? "" : "/")
+ artifactParentPath(artifact);
Node parentNode;
if (!jcrSession.itemExists(parentPath)) {