hu.blackbelt.epsilon.runtime.execution.contexts.EglExecutionContext Maven / Gradle / Ivy
package hu.blackbelt.epsilon.runtime.execution.contexts;
import hu.blackbelt.epsilon.runtime.execution.exceptions.ScriptExecutionException;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
import org.eclipse.epsilon.egl.EglFileGeneratingTemplateFactory;
import org.eclipse.epsilon.egl.EglTemplateFactory;
import org.eclipse.epsilon.egl.EglTemplateFactoryModuleAdapter;
import org.eclipse.epsilon.egl.exceptions.EglRuntimeException;
import org.eclipse.epsilon.eol.IEolModule;
import java.io.File;
import java.net.URI;
import java.util.List;
import java.util.Map;
public class EglExecutionContext extends EolExecutionContext {
public static final String ARTIFACT_ROOT = "ARTIFACT_ROOT";
@Getter
@NonNull
private String outputRoot;
@Builder(builderMethodName = "eglExecutionContextBuilder")
public EglExecutionContext(URI source, List parameters, String outputRoot) {
super(source, parameters);
this.outputRoot = outputRoot;
}
protected EglTemplateFactory getTemplateFactory(Map