Package uk.ac.osswatch.simal.importData

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


   * 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

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

    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

Related Classes of uk.ac.osswatch.simal.importData.Ohloh

Copyright © 2018 www.massapicom. 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.