Examples of importProjects()


Examples of eu.planets_project.pp.plato.xml.ProjectImporter.importProjects()

               
                logText = "Test plan: " + demoFile.getAbsolutePath();
                System.out.println(logText);
                log.info(logText);
               
                List<Plan> importedPlans = importer.importProjects(demoFile.getAbsolutePath());
               
                assert importedPlans.size() == 1;
               
                logText = " - organisation: "+ importedPlans.get(0).getPlanProperties().getOrganization();
               
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.ProjectImporter.importProjects()

                    InputStream in = Thread.currentThread()
                    .getContextClassLoader().getResourceAsStream(
                            xmlFileName);
                    ProjectImporter projectImporter = new ProjectImporter();
                    try {
                        for (Plan plan : projectImporter.importProjects(in)) {

                            em.persist(plan);
                            em.flush();
                        }
                    } catch (IOException e) {
View Full Code Here

Examples of eu.planets_project.pp.plato.xml.ProjectImporter.importProjects()

                    InputStream in = Thread.currentThread()
                    .getContextClassLoader().getResourceAsStream(
                            xmlFileName);
                    ProjectImporter projectImporter = new ProjectImporter();
                    try {
                        for (Plan plan : projectImporter.importProjects(in)) {
                            PlanProperties pp = plan.getPlanProperties();
                            // We set the current user as the owner of the project.
                            if (user == null) {
                                log.error("user is null! why?");
                            } else {
View Full Code Here

Examples of eu.scape_project.planning.xml.PlanParser.importProjects()

        File userDir = FileUtils.getUserDirectory();
        File outFile = new File(userDir, "statistics.csv");
        Writer writer = new FileWriter(outFile);
        PlanStatisticsGenerator statistics = new PlanStatisticsGenerator(writer, null);

        List<Plan> plans = parser.importProjects(in);
        for (Iterator<Plan> iter = plans.iterator(); iter.hasNext();) {
            statistics.writeStatistics(iter.next());
        }
        statistics.endReport();
        System.out.printf("Statistics written to : %s", outFile.getAbsolutePath());
View Full Code Here

Examples of eu.scape_project.planning.xml.PlanParser.importProjects()

        File userDir = FileUtils.getUserDirectory();
        File outFile = new File(userDir, "stage-statistics.csv");
        Writer writer = new FileWriter(outFile);
        StateChangeLogGenerator statistics = new StateChangeLogGenerator(writer, null);

        List<Plan> plans = parser.importProjects(in);
        for (Iterator<Plan> iter = plans.iterator(); iter.hasNext();) {
            statistics.writeStatistics(iter.next());
        }
        statistics.endReport();
        System.out.printf("Statistics written to : %s", outFile.getAbsolutePath());
View Full Code Here

Examples of eu.scape_project.planning.xml.PlanParser.importProjects()

public class QLDGeneratorTest {

    @Test
    public void generateQLDsBasedOnPlan() throws Exception{
        PlanParser  planParser = new PlanParser();
        List<Plan> plans = planParser.importProjects(getClass().getClassLoader().getResourceAsStream("qld/plan.xml"));
        assertNotNull(plans);
        assertEquals(1, plans.size());
       
        Plan plan = plans.get(0);
View Full Code Here

Examples of org.eclipse.m2e.core.project.IProjectConfigurationManager.importProjects()

    model.setVersion(version);
    model.setPomFile(pomFile);
    MavenProjectInfo info = new MavenProjectInfo(projectName, pomFile, model, null);
    infos.add(info);

    manager.importProjects(infos, config , monitor);
  }
 
}
View Full Code Here

Examples of org.fusesource.ide.maven.MavenFacade.importProjects()

              javaPackage);

          final IProject project = root.getProject(projectName);

          MavenFacade facade = new MavenFacade();
          facade.importProjects(monitor, pomFile, projectName,
              groupId, artifactId, version);

          return Arrays.asList(project);
        } catch (IOException e) {
          Status status = new Status(IStatus.ERROR,
View Full Code Here

Examples of uk.ac.osswatch.simal.importData.Ohloh.importProjects()

 
  @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.importProjects()

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

  /**
   * Import all the documents updated since the last time we updated from PTSW.
   *
 
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.