use of ch.ivyteam.ivy.maven.engine.EngineMojoContext 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.EngineMojoContext 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.EngineMojoContext 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.EngineMojoContext 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;
}
Aggregations