Examples of Ohloh


Examples of uk.ac.osswatch.simal.importData.Ohloh

 
 
  @Test
  public void testProjectImport() throws FileNotFoundException, IOException, SimalRepositoryException, DuplicateURIException, URISyntaxException {
    File file = new File(ISimalRepository.class.getClassLoader().getResource(OHLOH_TEST_DATA).toURI());
    Ohloh ohloh = new Ohloh();
    ohloh.importProjects(file);
   
    Set<IProject> allProjects = repo.getAllProjects();
    int numProjectsbefore = allProjects.size();
    Iterator<IProject> projects = allProjects.iterator();
    IProject project;
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.Ohloh

   * Import a project from Ohloh
   *
   * @param id
   */
  private static void importOhloh(String id) throws SimalException {
    Ohloh ohloh = new Ohloh();
    ohloh.addProjectToSimal(id);
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.Ohloh

   *
   * @param file
   * @throws IOException
   */
  private static void importOhloh(File file) throws SimalException, IOException {
    Ohloh ohloh = new Ohloh();
    ohloh.importProjects(file);
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.Ohloh

    protected void onSubmit() {
      super.onSubmit();

      if (!this.hasError()) {
        try {
          Ohloh importer = new Ohloh();
          importer.addProjectToSimal(inputModel.getProjectID());
        } catch (ImportException e) {
          setResponsePage(new SettingsPage(SettingsPage.SET_OHLOH_API));
        } catch (SimalException e) {
          setResponsePage(new ErrorReportPage(new UserReportableException(
              "Unable to import from Ohloh", ToolsPage.class, e)));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.