Package org.eclipse.core.resources

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


  {
    String name = commandLine.getValue(Options.PROJECT_OPTION);

    IProject project = ProjectUtils.getProject(name, true);
    ProjectManagement.refresh(project, commandLine);
    project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());

    return Services.getMessage("project.built", name);
  }
}
View Full Code Here


            problem.isWarning()
        ));
      }

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

  public void testM2eWtpGroupNameMappingFileSupport() throws Exception {
    IProject p = importProject("projects/p2/pom.xml");
    waitForJobsToComplete();

    p.build(IncrementalProjectBuilder.AUTO_BUILD, monitor);
    waitForJobsToComplete();

    IFile css = p
        .getFile("target/m2e-wtp/web-resources/resources/testCase.css");
    assertTrue("testCase.css is missing", css.exists());
View Full Code Here

      description.setAutoBuilding(true);
      workspace.setDescription(description);
   
    IProject p = importProject("projects/p3/pom.xml");
    waitForJobsToComplete();
    p.build(IncrementalProjectBuilder.AUTO_BUILD, monitor);
    waitForJobsToComplete();
   
    IFile js = p.getFile("target/m2e-wtp/web-resources/resources/testCase.js");
    assertTrue("testCase.js is missing", js.exists());
View Full Code Here

  public void testDisableM2eWtpIntegration() throws Exception {
    IProject p = importProject("projects/p7/pom.xml");
    waitForJobsToComplete();

    p.build(IncrementalProjectBuilder.AUTO_BUILD, monitor);
    waitForJobsToComplete();

    IFile js = p
        .getFile("target/m2e-wtp/web-resources/resources/testCase.js");
    assertFalse(js + " should be missing", js.exists());
View Full Code Here

  public void testShouldNotUnpackArtifact() throws Exception {
    // given
    final IProject project = importProject("projects/smoketest/pom.xml");
    waitForJobsToComplete();
    project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    waitForJobsToComplete();
    // make sure target/generated-resources is empty
    final IResource targetResourcesFolder = project.findMember(new Path("target").append("generated-resources"));
    if(targetResourcesFolder != null) {
      targetResourcesFolder.delete(true, new NullProgressMonitor());
View Full Code Here

    final IResource targetResourcesFolder = project.findMember(new Path("target").append("generated-resources"));
    if(targetResourcesFolder != null) {
      targetResourcesFolder.delete(true, new NullProgressMonitor());
    }
    // when further auto build is performed
    project.build(IncrementalProjectBuilder.AUTO_BUILD, monitor);
    waitForJobsToComplete();
    // then
    final IFile testResource = project
        .getFile("target/generated-resources/LICENSE.txt");
    assertFalse(testResource.getName() + " is missing", testResource.exists());
View Full Code Here

  public void testShouldUnpackArtifact() throws Exception {
    // given
    final IProject project = importProject("projects/smoketest/pom.xml");
    waitForJobsToComplete();
    // when
    project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    waitForJobsToComplete();
    // then
    final IFile testResource = project
        .getFile("target/generated-resources/LICENSE.txt");
    assertTrue(testResource.getName() + " is missing", testResource.exists());
View Full Code Here

  public void testShouldUnpackDependencies() throws Exception {
    // given
    final IProject project = importProject("projects/unpackdeps/pom.xml");
    waitForJobsToComplete();
    // when
    project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    waitForJobsToComplete();
    // then
    final IFile junitResource = project
        .getFile("target/generated-resources/junit/framework/Assert.class");
    assertTrue(junitResource.getName() + " is missing", junitResource.exists());
View Full Code Here

  public void testShouldCopyDependencies() throws Exception {
    // given
    final IProject project = importProject("projects/copydeps/pom.xml");
    waitForJobsToComplete();
    // when
    project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    waitForJobsToComplete();
    // then
    final IFile junitJar = project
        .getFile("target/generated-resources/junit-4.10.jar");
    assertTrue(junitJar.getName() + " is missing", junitJar.exists());
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.