use of ch.ivyteam.ivy.maven.engine.EngineControl in project project-build-plugin by axonivy.
the class StartTestEngineMojo method startEngine.
Executor startEngine() throws Exception {
EngineVmOptions vmOptions = new EngineVmOptions(maxmem, additionalClasspath, additionalVmOptions);
EngineControl engineControl = new EngineControl(new EngineMojoContext(identifyAndGetEngineDirectory(), project, getLog(), engineLogFile, vmOptions, startTimeoutInSeconds));
return engineControl.start();
}
use of ch.ivyteam.ivy.maven.engine.EngineControl in project project-build-plugin by axonivy.
the class StartTestEngineMojo method startEngine.
public Executor startEngine() throws Exception {
File engineDir = identifyAndGetEngineDirectory();
if (engineToTarget()) {
engineDir = copyEngineToTarget(engineDir);
}
EngineVmOptions vmOptions = new EngineVmOptions(maxmem, additionalClasspath, additionalVmOptions);
EngineControl engineControl = new EngineControl(new EngineMojoContext(engineDir, project, getLog(), engineLogFile, vmOptions, startTimeoutInSeconds));
return engineControl.start();
}
use of ch.ivyteam.ivy.maven.engine.EngineControl in project project-build-plugin by axonivy.
the class StopTestEngineMojo method createEngineController.
public EngineControl createEngineController() throws MojoExecutionException {
EngineVmOptions vmOptions = new EngineVmOptions(maxmem, additionalClasspath, additionalVmOptions);
EngineControl engineControl = new EngineControl(new EngineMojoContext(identifyAndGetEngineDirectory(), project, getLog(), null, vmOptions, stopTimeoutInSeconds));
return engineControl;
}
use of ch.ivyteam.ivy.maven.engine.EngineControl in project project-build-plugin by axonivy.
the class StopTestEngineMojo method createEngineController.
public EngineControl createEngineController() throws MojoExecutionException {
File engineDir = getEngineDir(project);
if (engineDir == null || !engineDir.exists()) {
engineDir = identifyAndGetEngineDirectory();
}
EngineVmOptions vmOptions = new EngineVmOptions(maxmem, additionalClasspath, additionalVmOptions);
EngineControl engineControl = new EngineControl(new EngineMojoContext(engineDir, project, getLog(), null, vmOptions, stopTimeoutInSeconds));
return engineControl;
}
use of ch.ivyteam.ivy.maven.engine.EngineControl in project project-build-plugin by axonivy.
the class TestEngineControlEngineDirectory method engineControl_engineDir_doesNotExist.
@Test
public void engineControl_engineDir_doesNotExist() throws Exception {
LogCollector log = new LogCollector();
StopTestEngineMojo mojo = rule.getMojo();
mojo.setLog(log);
mojo.testEngine = TestEngineLocation.MODIFY_EXISTING;
EngineControl controller = mojo.createEngineController();
controller.stop();
assertThat(log.getWarnings()).isEmpty();
assertThat(log.getErrors()).isEmpty();
}
Aggregations