aQute.bnd.service.generate.BuildContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
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