Instances of this class are immutable and therefore are safe to be shared across multiple threads.
The serialized format of this class is not subject to any kind of backward or forward compatibility.
525354555657585960616263
private static boolean cmpTrees(NbGradleProjectTree parsed, GradleProjectTree model) { if (parsed == null) { return false; } GenericProjectProperties parsedProperties = parsed.getGenericProperties(); GenericProjectProperties modelProperties = model.getGenericProperties(); if (!cmpTrees(parsedProperties, modelProperties)) { return false; } if (parsed.getTasks().size() != model.getTasks().size()) { return false;
166167168169170171172173174175
} GradleProject gradleProject = module.getGradleProject(); String projectName = gradleProject.getName(); String projectFullName = gradleProject.getPath(); GenericProjectProperties properties = new GenericProjectProperties(projectName, projectFullName, moduleDir); return new NbGradleProjectTree(properties, getTasksOfModule(module), children); }
1112131415161718
NbGradleProject requestedProject, FetchedProjectModels project, NbGradleExtensionRef extension, Throwable issue) { GenericProjectProperties projectID = project.getProjectDef().getMainProject().getGenericProperties(); return new ModelLoadIssue(requestedProject, projectID.getProjectFullName(), extension, null, issue); }
67686970717273747576777879
for (Lookup projectInfo: allProjects.values()) { JarOutputsModel jarsModel = projectInfo.lookup(JarOutputsModel.class); if (jarsModel != null) { JavaSourcesModel sources = projectInfo.lookup(JavaSourcesModel.class); if (sources == null) { GenericProjectProperties properties = projectInfo.lookup(GenericProjectProperties.class); String projectName = properties != null ? properties.getProjectFullName() : "???"; LOGGER.log(Level.WARNING, "No sources for Java project: {0}", projectName); continue; }
2122232425262728293031323334
NbGradleProject requestedProject, FetchedProjectModels project, NbGradleExtensionRef extensionRef, BuilderIssue issue) { GenericProjectProperties projectID = project.getProjectDef().getMainProject().getGenericProperties(); return new ModelLoadIssue( requestedProject, projectID.getProjectFullName(), extensionRef, issue.getName(), issue.getException()); }
173174175176177178179180181182183
"Disabling the Java extension because there are no sources: {0}", retrievedModels.getMainProjectDir()); continue; } GenericProjectProperties properties = projectInfo.lookup(GenericProjectProperties.class); if (properties == null) { LOGGER.log(Level.WARNING, "Missing GenericProjectProperties for project {0}", retrievedModels.getMainProjectDir()); continue;