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()
RemoteWorkspaceAbout.CURRENT
value.getBndVersion in interface RemoteWorkspacepublic RunSpecification getRun(java.lang.String pathToBndOrBndrun)
RemoteWorkspacegetRun in interface RemoteWorkspacepathToBndOrBndrun - 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)
RemoteWorkspacegetLatestBundles in interface RemoteWorkspaceprojectDir - 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)
RemoteWorkspaceanalyzeTestSetup in interface RemoteWorkspaceprojectDir - the absolute path inpublic byte[] build(java.lang.String projectPath,
BuilderSpecification spec)
RemoteWorkspacebuild in interface RemoteWorkspaceprojectPath - 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()
RemoteWorkspacegetProjects in interface RemoteWorkspacepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException