Project project = core.createProject();
project.setName(I18n.get("general.newProject.name"));
project.setDescription(I18n.get("general.newProject.description", new Date()));
+ project.setBasePath("");
mainWindow.addProject(project, true);
} catch (JSiteException nne1) {
/* TODO - add i18n */
String projectDescription = projectProperties.getProperty(projectPrefix + ".description");
String projectPrivateKey = projectProperties.getProperty(projectPrefix + ".privateKey");
String projectPublicKey = projectProperties.getProperty(projectPrefix + ".publicKey");
+ String projectBasePath = projectProperties.getProperty(projectPrefix + ".basePath");
Project project = new Project();
project.setId(projectId);
project.setName(projectName);
project.setDescription(projectDescription);
project.setPrivateKey(projectPrivateKey);
project.setPublicKey(projectPublicKey);
+ project.setBasePath(projectBasePath);
+ project.rescanBasePath();
projects.add(project);
logger.fine("loaded project “" + project.getName() + "”.");
projectIndex++;
projectProperties.setProperty(projectPrefix + ".description", project.getDescription());
projectProperties.setProperty(projectPrefix + ".privateKey", project.getPrivateKey());
projectProperties.setProperty(projectPrefix + ".publicKey", project.getPublicKey());
+ projectProperties.setProperty(projectPrefix + ".basePath", project.getBasePath());
projectIndex++;
}
File projectFile = new File(directoryFile, "projects.properties");