if (PathUtils.isFilePath(url) && PathUtils.isAbsolutePath(url)) {
folder = new File(url).getParent();
}
if (project.save(folder) != SaveStatus.SUCCESS) {
UISupport
.showErrorMessage("Project was not saved, paths will not be stored relatively until configured.");
} else {
project.setResourceRoot("${projectDir}");
}