Package org.sonar.api.batch.bootstrap.internal

Examples of org.sonar.api.batch.bootstrap.internal.ProjectBuilderContext


    this(exclusions, reactor, new ProjectBuilder[0], validator);
  }

  public void start() {
    // 1 Apply project builders
    ProjectBuilderContext context = new ProjectBuilderContext(reactor);

    for (ProjectBuilder projectBuilder : projectBuilders) {
      projectBuilder.build(context);
    }
View Full Code Here


  public void shouldChangeProject() {
    // this reactor is created and provided by Sonar
    final ProjectReactor projectReactor = new ProjectReactor(ProjectDefinition.create());

    ProjectBuilder builder = new ProjectBuilderSample(new Settings());
    builder.build(new ProjectBuilderContext(projectReactor));

    assertThat(projectReactor.getProjects().size(), is(2));
    ProjectDefinition root = projectReactor.getRoot();
    assertThat(root.getName(), is("Name changed by plugin"));
    assertThat(root.getSubProjects().size(), is(1));
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.bootstrap.internal.ProjectBuilderContext

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.