@CheckReturnValue private Project createProject(Path[] files) { final Project project = new Project(); project.setProjectName(getClass().getSimpleName()); if (PLUGIN_JAR != null) { try { String pluginId = Plugin.addCustomPlugin(PLUGIN_JAR.toURI()).getPluginId(); project.setPluginStatusTrinary(pluginId, Boolean.TRUE); } catch (PluginException e) { throw new AssertionError("Failed to load plugin", e); } } for (Path file : files) { project.addFile(file.toAbsolutePath().toString()); } for (Path auxClasspathEntry : auxClasspathEntries) { project.addAuxClasspathEntry(auxClasspathEntry.toAbsolutePath().toString()); } return project; }
origCollection.getProject().setProjectName(commandLine.projectName);
project.setProjectName(projectName);
this.engine = new FindBugs2(); Project project = new Project(); project.setProjectName("spotbugsTestCases"); this.engine.setProject(project);
PluginException, NoSuchFieldException, IllegalAccessException, URISyntaxException { Project project = new Project(); project.setProjectName("automate-test-project"); for (String file : classFiles) { project.addFile(file);
/** * Configure the BugCollection (if the BugReporter being used is * constructing one). * * @param findBugs * the IFindBugsEngine */ public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }
List<Project> userProjects = u.getProjectses(); for(int i = 0 ; i < userProjects.size() ; i++){ Project p = userProjects.get(i); entityManager.getTransaction().begin(); p.setProjectName("test"); entityManager.merge(p); entityManager.getTransaction().commit(); }
origCollection.getProject().setProjectName(commandLine.projectName);
project.setProjectName(projectName);
p.addSourceDir(sourceModel.get(i)); p.setProjectName(projectName.getText()); CloudPlugin cloudPlugin = (CloudPlugin) cloudSelector.getSelectedItem(); String newCloudId;
/** * Configure the BugCollection (if the BugReporter being used is * constructing one). * * @param findBugs * the IFindBugsEngine */ public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }