use of org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.DefaultContextValidator in project kie-wb-common by kiegroup.
the class ProductionBuildExecutorTest method setup.
@Before
public void setup() {
super.setup();
context = getDefaultContext();
runner = spy(new BuildExecutor(buildService, buildResultsEvent, notificationEvent, buildDialog, new DefaultContextValidator()));
}
use of org.kie.workbench.common.screens.projecteditor.client.build.exec.impl.executors.validators.DefaultContextValidator in project kie-wb-common by kiegroup.
the class BuildExecutionManagerImpl method init.
@PostConstruct
protected void init() {
defaultRunners = new HashMap<>();
defaultRunners.put(BuildType.BUILD, new BuildExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, new DefaultContextValidator()));
defaultRunners.put(BuildType.DEPLOY, new ProductionBuildAndDeployExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, deploymentPopup, specManagementService, conflictingRepositoriesPopup));
defaultRunners.put(BuildType.INSTALL, new ProductionInstallExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, conflictingRepositoriesPopup));
settings.load();
snapshotRunners = new HashMap<>();
snapshotRunners.put(BuildType.BUILD, new BuildExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, new SnapshotContextValidator()));
snapshotRunners.put(BuildType.DEPLOY, new SnapshotBuildAndDeployExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, deploymentPopup, specManagementService, settings));
snapshotRunners.put(BuildType.INSTALL, new SnapshotInstallExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog));
snapshotRunners.put(BuildType.REDEPLOY, new SnapshotRedeployExecutor(buildServiceCaller, buildResultsEvent, notificationEvent, buildDialog, deploymentPopup, specManagementService, settings));
}
Aggregations