|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.bnd.osgi.Domain
aQute.bnd.osgi.Processor
aQute.bnd.build.Workspace
public class Workspace
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class aQute.bnd.osgi.Processor |
|---|
Processor.CL, Processor.FileLine |
| Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter |
|---|
Reporter.SetLocation |
| Nested classes/interfaces inherited from interface aQute.service.reporter.Report |
|---|
Report.Location |
| Field Summary | |
|---|---|
static String |
BNDDIR
|
static String |
BUILDFILE
|
static String |
CACHEDIR
|
static String |
CNFDIR
|
static String |
EXT
|
| Fields inherited from class aQute.bnd.osgi.Processor |
|---|
LIST_SPLITTER |
| Constructor Summary | |
|---|---|
Workspace(File dir)
|
|
Workspace(File dir,
String bndDir)
|
|
| Method Summary | |
|---|---|
String |
_driver(String[] args)
Macro to return the driver. |
String |
_gestalt(String[] args)
The macro to access the gestalt |
String |
_global(String[] args)
Provide access to the global settings of this machine. |
Object |
_repodigests(String[] args)
Return the repository signature digests. |
String |
_user(String[] args)
|
String |
_workspace(String[] args)
|
void |
addCommand(String menu,
Action action)
|
protected void |
addExtensions(Set<Object> list)
Add any extensions listed |
static void |
addGestalt(String part,
Attrs attrs)
Add a gestalt to all workspaces. |
boolean |
addPlugin(Class<?> plugin,
String alias,
Map<String,String> parameters,
boolean force)
Add a plugin |
void |
bracket(boolean begin)
|
void |
changedFile(File f)
Inform any listeners that we changed a file (created/deleted/changed). |
void |
checkStructure()
|
void |
close()
|
Project |
createProject(String name)
Create a project in this workspace |
static Workspace |
createWorkspace(File wsdir)
Create a new Workspace |
void |
fillActions(Map<String,Action> all)
|
static Workspace |
findWorkspace(File base)
/* Return the nearest workspace |
Collection<Project> |
getAllProjects()
|
File |
getBuildDir()
|
Collection<Project> |
getBuildOrder()
|
File |
getCache(String name)
|
Collection<Project> |
getCurrentProjects()
|
static Processor |
getDefaults()
|
String |
getDriver()
Get the bnddriver, can be null if not set. |
Parameters |
getGestalt()
Get the attrs for a gestalt part |
Attrs |
getGestalt(String part)
Get the attrs for a gestalt part |
Maven |
getMaven()
|
static Project |
getProject(File projectDir)
This static method finds the workspace and creates a project (or returns an existing project) |
Project |
getProject(String bsn)
|
List<RepositoryPlugin> |
getRepositories()
|
RepositoryPlugin |
getRepository(String repo)
|
static Run |
getRun(File file)
|
static Workspace |
getWorkspace(File parent)
|
static Workspace |
getWorkspace(File parent,
String bndDir)
|
static Workspace |
getWorkspace(String path)
|
WorkspaceRepository |
getWorkspaceRepository()
Return the workspace repo |
static Workspace |
getWorkspaceWithoutException(File parent)
|
boolean |
isOffline()
Return if we're in offline mode. |
boolean |
isPresent(String name)
|
boolean |
isValid()
|
void |
propertiesChanged()
|
boolean |
refresh()
|
void |
removeCommand(String menu)
|
boolean |
removePlugin(String alias)
|
void |
report(Map<String,Object> table)
Report details of this workspace |
static void |
setDriver(String driver)
Set the driver of this environment |
Workspace |
setOffline(boolean on)
|
protected void |
setTypeSpecificPlugins(Set<Object> list)
|
void |
signal()
|
void |
signal(Reporter reporter)
|
void |
syncCache()
|
String |
toString()
Printout of the status of this processor for toString() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String EXT
public static final String BUILDFILE
public static final String CNFDIR
public static final String BNDDIR
public static final String CACHEDIR
| Constructor Detail |
|---|
public Workspace(File dir)
throws Exception
Exception
public Workspace(File dir,
String bndDir)
throws Exception
Exception| Method Detail |
|---|
public static Project getProject(File projectDir)
throws Exception
projectDir -
Exceptionpublic static Processor getDefaults()
public static Workspace getWorkspace(File parent)
throws Exception
Exception
public static Workspace getWorkspaceWithoutException(File parent)
throws Exception
Exception
public static Workspace findWorkspace(File base)
throws Exception
Exception
public static Workspace getWorkspace(File parent,
String bndDir)
throws Exception
Exception
public Project getProject(String bsn)
throws Exception
Exceptionpublic boolean isPresent(String name)
public Collection<Project> getCurrentProjects()
public boolean refresh()
refresh in class Processorpublic void propertiesChanged()
propertiesChanged in class Processorpublic String _workspace(String[] args)
public void addCommand(String menu,
Action action)
public void removeCommand(String menu)
public void fillActions(Map<String,Action> all)
public Collection<Project> getAllProjects()
throws Exception
Exceptionpublic void changedFile(File f)
f - The changed filepublic void bracket(boolean begin)
public void signal(Reporter reporter)
public void signal()
signal in class Processor
public void syncCache()
throws Exception
Exceptionpublic List<RepositoryPlugin> getRepositories()
public Collection<Project> getBuildOrder()
throws Exception
Exception
public static Workspace getWorkspace(String path)
throws Exception
Exceptionpublic Maven getMaven()
protected void setTypeSpecificPlugins(Set<Object> list)
setTypeSpecificPlugins in class Processorprotected void addExtensions(Set<Object> list)
addExtensions in class Processorlist - rri - public boolean isOffline()
public Workspace setOffline(boolean on)
public String _global(String[] args)
throws Exception
Exception
UnknownHostException
public String _user(String[] args)
throws Exception
Exception
public Object _repodigests(String[] args)
throws Exception
Exception
public static Run getRun(File file)
throws Exception
Exception
public void report(Map<String,Object> table)
throws Exception
report in class ProcessorExceptionpublic File getCache(String name)
public WorkspaceRepository getWorkspaceRepository()
public void checkStructure()
public File getBuildDir()
public boolean isValid()
public RepositoryPlugin getRepository(String repo)
public void close()
close in interface Closeableclose in class Processorpublic String getDriver()
public static void setDriver(String driver)
public String _driver(String[] args)
public static void addGestalt(String part,
Attrs attrs)
public Attrs getGestalt(String part)
public Parameters getGestalt()
public String _gestalt(String[] args)
$ gestalt;part[;key[;value]]
public String toString()
Processor
toString in class Processor
public Project createProject(String name)
throws Exception
Exception
public static Workspace createWorkspace(File wsdir)
throws Exception
opts - wsdir -
Exception
public boolean addPlugin(Class<?> plugin,
String alias,
Map<String,String> parameters,
boolean force)
throws Exception
plugin -
Exceptionpublic boolean removePlugin(String alias)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||