All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.bnd.service.generate.BuildContext Maven / Gradle / Ivy

The newest version!
package aQute.bnd.service.generate;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;

import org.osgi.annotation.versioning.ProviderType;

import aQute.bnd.build.Project;
import aQute.bnd.osgi.Processor;

@ProviderType
public class BuildContext extends Processor {

	private final Project		project;
	private final List	arguments;
	private final InputStream	stdin;
	private final OutputStream	stdout;
	private final OutputStream	stderr;

	public BuildContext(Project project, Map localProperties, List arguments, InputStream stdin,
		OutputStream stdout, OutputStream stderr) {
		super(project);
		this.stdin = stdin;
		this.stdout = stdout;
		this.stderr = stderr;
		this.setBase(project.getBase());
		use(project);
		this.project = project;
		this.arguments = arguments;
		for (Map.Entry e : localProperties.entrySet()) {
			this.set(e.getKey(), e.getValue());
		}

	}

	public Project getProject() {
		return project;
	}

	public List getArguments() {
		return arguments;
	}

	public InputStream getStdin() {
		return stdin;
	}

	public OutputStream getStdout() {
		return stdout;
	}

	public OutputStream getStderr() {
		return stderr;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy