class RemoteWorkspaceServer.Instance extends java.lang.Object implements RemoteWorkspace
RemoteWorkspace
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
RunSpecification |
analyzeTestSetup(java.lang.String projectDir)
Analyze the project given as a parameter and provide the setup
information.
|
byte[] |
build(java.lang.String projectPath,
BuilderSpecification spec)
Build a bundle based on a BuilderSpecification.
|
void |
close() |
(package private) void |
doPackage(Parameters extraPackages,
Descriptors.PackageRef p,
Attrs a) |
java.lang.String |
getBndVersion()
Get the bnd version of the workspace.
|
java.util.List<java.lang.String> |
getLatestBundles(java.lang.String projectDir,
java.lang.String specification)
Get the latest bundles from a specification.
|
(package private) Project |
getProject(java.lang.String projectDir) |
java.util.List<java.lang.String> |
getProjects()
Get a list of all projects.
|
RunSpecification |
getRun(java.lang.String pathToBndOrBndrun)
Parse a bndrun file (which can also a plain bnd file with -run*
instructions) and provide the resulting run specification.
|
public java.lang.String getBndVersion()
RemoteWorkspace
About.CURRENT
value.getBndVersion
in interface RemoteWorkspace
public RunSpecification getRun(java.lang.String pathToBndOrBndrun)
RemoteWorkspace
getRun
in interface RemoteWorkspace
pathToBndOrBndrun
- the path to a bnd or bndrun file, never nullpublic java.util.List<java.lang.String> getLatestBundles(java.lang.String projectDir, java.lang.String specification)
RemoteWorkspace
getLatestBundles
in interface RemoteWorkspace
projectDir
- The absolute path to the project directory where
Project.getBundles(aQute.bnd.service.Strategy, String, String)
is called.specification
- A specification for bundles/public RunSpecification analyzeTestSetup(java.lang.String projectDir)
RemoteWorkspace
analyzeTestSetup
in interface RemoteWorkspace
projectDir
- the absolute path inpublic byte[] build(java.lang.String projectPath, BuilderSpecification spec)
RemoteWorkspace
build
in interface RemoteWorkspace
projectPath
- The path to the projectspec
- the specification for a Builder, see
Builder.from(BuilderSpecification)
.void doPackage(Parameters extraPackages, Descriptors.PackageRef p, Attrs a)
Project getProject(java.lang.String projectDir)
public java.util.List<java.lang.String> getProjects()
RemoteWorkspace
getProjects
in interface RemoteWorkspace
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException