io.linguarobot.aws.cdk.maven.process.ProcessContext Maven / Gradle / Ivy
package io.linguarobot.aws.cdk.maven.process;
import com.google.common.collect.ImmutableMap;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.File;
import java.io.OutputStream;
import java.util.Map;
import java.util.Optional;
public class ProcessContext {
public static final ProcessContext DEFAULT = ProcessContext.builder().build();
private final File workingDirectory;
private final Map environment;
private final OutputStream output;
private ProcessContext(@Nullable File workingDirectory,
@Nullable Map environment,
@Nullable OutputStream output) {
this.workingDirectory = workingDirectory;
this.environment = environment;
this.output = output;
}
public Optional getWorkingDirectory() {
return Optional.ofNullable(workingDirectory);
}
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy