Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProject.build()


    // modify the type system file
    project.getFile("src/main/resources/TypeSystem.xml").touch(monitor);
    Thread.sleep(1000);

    // re-run the build
    project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor);
    waitForJobsToComplete();
    assertNoErrors(project);

    // make sure all generated files were re-generated
    assertTrue(sentenceFile.getModificationStamp() > sentenceTime);
View Full Code Here


    // now modify the token descriptor which is indirectly referenced from TypeSystem.xml
    project.getFile("src/main/resources/type/Token.xml").touch(monitor);
    Thread.sleep(1000);

    // re-run the build
    project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor);
    waitForJobsToComplete();
    assertNoErrors(project);

    // make sure all generated files were re-generated
    assertTrue(sentenceFile.getModificationStamp() > sentenceTime);
View Full Code Here

            lineColumn[1],
            problem.isWarning()));
      }

      if(commandLine.hasOption(Options.BUILD_OPTION)){
        project.build(
            IncrementalProjectBuilder.INCREMENTAL_BUILD,
            new NullProgressMonitor());
      }
      return errors;
    }
View Full Code Here

            return false;
          }
        });

        if(commandLine.hasOption(Options.BUILD_OPTION)){
          project.build(
              IncrementalProjectBuilder.INCREMENTAL_BUILD,
              new NullProgressMonitor());
        }
        return errors;
      }
View Full Code Here

          ParseException.verboseExceptions = saved;
        }
      }

      if(commandLine.hasOption(Options.BUILD_OPTION)){
        project.build(
            IncrementalProjectBuilder.INCREMENTAL_BUILD,
            new NullProgressMonitor());
      }
      return errors;
    }
View Full Code Here

    int offset = getOffset(commandLine);
    boolean debug = commandLine.hasOption(Options.DEBUG_OPTION);
    boolean halt = commandLine.hasOption(Options.HALT_OPTION);

    IProject project = ProjectUtils.getProject(projectName);
    project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);

    IJavaProject javaProject = JavaUtils.getJavaProject(project);
    JUnitTask junit = createJUnitTask(javaProject, debug, halt);

    String[] vmargs =
View Full Code Here

    String mainClass = commandLine.getValue(Options.CLASSNAME_OPTION);
    boolean debug = commandLine.hasOption(Options.DEBUG_OPTION);
    String workingDir = commandLine.getValue(WORKINGDIR_OPTION);

    IProject project = ProjectUtils.getProject(projectName);
    project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);

    IJavaProject javaProject = JavaUtils.getJavaProject(project);

    Project antProject = new Project();
    BuildLogger buildLogger = new DefaultLogger();
View Full Code Here

        errors.addAll((List<Error>)
            Services.getCommand("java_checkstyle").execute(commandLine));
      }

      if(commandLine.hasOption(Options.BUILD_OPTION)){
        project.build(
            IncrementalProjectBuilder.INCREMENTAL_BUILD,
            new NullProgressMonitor());
      }
      return errors;
    }
View Full Code Here

      IProjectDescription desc = project.getDescription();
      desc.setNatureIds(new String[] { PHPNature.ID });
      project.setDescription(desc, null);
 
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
      project.build(IncrementalProjectBuilder.FULL_BUILD, null);
    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    PHPCoreTests.waitForIndexer();
View Full Code Here

      project.setDescription(desc, null);
 
      ProjectOptions.setPhpVersion(version, project);
 
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
      project.build(IncrementalProjectBuilder.FULL_BUILD, null);
    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    PHPCoreTests.waitForIndexer();
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.