return project.getProjectDirectory();
}
}
private void readKeys(List<SingleNodeFactory> toPopulate) {
NbGradleModel model = project.getCurrentModel();
FileObject settingsGradle = model.tryGetSettingsFileObj();
FileObject rootBuildDir = getRootBuildDir(settingsGradle);
if (rootBuildDir != null && !model.isBuildSrc()) {
FileObject buildSrcObj = rootBuildDir.getFileObject(GradleProjectConstants.BUILD_SRC_NAME);
final File buildSrc = buildSrcObj != null
? FileUtil.toFile(buildSrcObj)
: null;
if (buildSrc != null) {
toPopulate.add(new SingleNodeFactory() {
@Override
public Node createNode() {
return new BuildSrcNode(buildSrc);
}
});
}
}
if (settingsGradle != null) {
addGradleFile(settingsGradle, toPopulate);
}
FileObject buildGradle = model.tryGetBuildFileObj();
if (buildGradle != null) {
addGradleFile(buildGradle, toPopulate);
}
FileObject homePropertiesFile = tryGetHomeGradleProperties();