Search in sources :

Example 1 with EngineMojoContext

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();
}
Also used : EngineMojoContext(ch.ivyteam.ivy.maven.engine.EngineMojoContext) EngineVmOptions(ch.ivyteam.ivy.maven.engine.EngineVmOptions) EngineControl(ch.ivyteam.ivy.maven.engine.EngineControl)

Example 2 with EngineMojoContext

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();
}
Also used : EngineMojoContext(ch.ivyteam.ivy.maven.engine.EngineMojoContext) EngineVmOptions(ch.ivyteam.ivy.maven.engine.EngineVmOptions) EngineControl(ch.ivyteam.ivy.maven.engine.EngineControl) File(java.io.File)

Example 3 with EngineMojoContext

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;
}
Also used : EngineMojoContext(ch.ivyteam.ivy.maven.engine.EngineMojoContext) EngineVmOptions(ch.ivyteam.ivy.maven.engine.EngineVmOptions) EngineControl(ch.ivyteam.ivy.maven.engine.EngineControl)

Example 4 with EngineMojoContext

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;
}
Also used : EngineMojoContext(ch.ivyteam.ivy.maven.engine.EngineMojoContext) EngineVmOptions(ch.ivyteam.ivy.maven.engine.EngineVmOptions) EngineControl(ch.ivyteam.ivy.maven.engine.EngineControl) File(java.io.File)

Aggregations

EngineControl (ch.ivyteam.ivy.maven.engine.EngineControl)4 EngineMojoContext (ch.ivyteam.ivy.maven.engine.EngineMojoContext)4 EngineVmOptions (ch.ivyteam.ivy.maven.engine.EngineVmOptions)4 File (java.io.File)2