aQute.bnd.build
Class Workspace

java.lang.Object
  extended by aQute.bnd.osgi.Domain
      extended by aQute.bnd.osgi.Processor
          extended by aQute.bnd.build.Workspace
All Implemented Interfaces:
Constants, Registry, Report, Reporter, Closeable, Iterable<String>

public class Workspace
extends Processor


Nested Class Summary
 
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
           
 
Fields inherited from class aQute.bnd.osgi.Processor
LIST_SPLITTER
 
Fields inherited from interface aQute.bnd.osgi.Constants
BASELINE, BASELINEREPO, BLUEPRINT_TIMEOUT_ATTRIBUTE, BLUEPRINT_WAIT_FOR_DEPENDENCIES_ATTRIBUTE, BND_ADDXMLTOTEST, BND_LASTMODIFIED, BUILDFILES, BUILDPACKAGES, BUILDPATH, BUMPPOLICY, BUNDLE_ACTIVATIONPOLICY, BUNDLE_ACTIVATOR, BUNDLE_BLUEPRINT, BUNDLE_CATEGORY, BUNDLE_CLASSPATH, BUNDLE_CONTACTADDRESS, BUNDLE_COPYRIGHT, BUNDLE_DESCRIPTION, BUNDLE_DOCURL, BUNDLE_ICON, BUNDLE_LICENSE, BUNDLE_LOCALIZATION, BUNDLE_MANIFESTVERSION, BUNDLE_NAME, BUNDLE_NATIVECODE, BUNDLE_REQUIREDEXECUTIONENVIRONMENT, BUNDLE_SPECIFIC_HEADERS, BUNDLE_SYMBOLIC_NAME_ATTRIBUTE, BUNDLE_SYMBOLICNAME, BUNDLE_UPDATELOCATION, BUNDLE_VENDOR, BUNDLE_VERSION, BUNDLE_VERSION_ATTRIBUTE, CLASSPATH, COMMAND_DIRECTIVE, COMPILER_SOURCE, COMPILER_TARGET, COMPONENT_ACTIVATE, COMPONENT_CONFIGURATION_POLICY, COMPONENT_DEACTIVATE, COMPONENT_DESCRIPTORS, COMPONENT_DESIGNATE, COMPONENT_DESIGNATEFACTORY, COMPONENT_DYNAMIC, COMPONENT_ENABLED, COMPONENT_FACTORY, COMPONENT_GREEDY, COMPONENT_IMMEDIATE, COMPONENT_IMPLEMENTATION, COMPONENT_MODIFIED, COMPONENT_MULTIPLE, COMPONENT_NAME, COMPONENT_NAMESPACE, COMPONENT_OPTIONAL, COMPONENT_PROPERTIES, COMPONENT_PROVIDE, COMPONENT_SERVICEFACTORY, COMPONENT_VERSION, componentDirectives, CONDITIONAL_PACKAGE, CONDUIT, CONSUMER_POLICY, CREATED_BY, CURRENT_PACKAGE, CURRENT_USES, CURRENT_VERSION, DEBUG, DEFAULT_BAR_EXTENSION, DEFAULT_BND_EXTENSION, DEFAULT_BNDRUN_EXTENSION, DEFAULT_CHARSET, DEFAULT_DO_NOT_COPY, DEFAULT_JAR_EXTENSION, DEFAULT_LAUNCHER_BSN, DEFAULT_TESTER_BSN, DEPENDSON, DEPLOY, DEPLOYREPO, DESCRIPTION_ATTRIBUTE, DIGESTS, directives, DONOTCOPY, DSANNOTATIONS, DUPLICATE_MARKER, DYNAMICIMPORT_PACKAGE, EMBEDDED_REPO, EMPTY, EMPTY_HEADER, EXCLUDE_DIRECTIVE, EXPERIMENTS, EXPORT_CONTENTS, EXPORT_PACKAGE, EXPORT_SERVICE, EXTENSION_DIRECTIVE, FAIL_OK, FRAGMENT_ATTACHMENT_DIRECTIVE, FRAGMENT_HOST, FROM_DIRECTIVE, headers, IGNORE_PACKAGE, IMPORT_DIRECTIVE, IMPORT_PACKAGE, IMPORT_PRIVATE, IMPORT_REFERENCE, IMPORT_SERVICE, importDirectives, INCLUDE, INCLUDE_DIRECTIVE, INCLUDE_RESOURCE, INCLUDERESOURCE, JIDENTIFIER, KEYSTORE_LOCATION_DIRECTIVE, KEYSTORE_PASSWORD_DIRECTIVE, KEYSTORE_PROVIDER_DIRECTIVE, LANGUAGE_ATTRIBUTE, LAUNCHER_PLUGIN, LIB_DIRECTIVE, LINK_ATTRIBUTE, LITERAL_ATTRIBUTE, MAKE, MANDATORY_DIRECTIVE, MANIFEST, METAPACKAGES, METATYPE, NAME_ATTRIBUTE, NAMESECTION, NAMESPACE_STEM, NO_IMPORT_DIRECTIVE, NOANNOTATIONS, NOBUNDLES, NODEFAULTVERSION, NOEXTRAHEADERS, NOMANIFEST, NONE, NOUSES, options, OSNAME_ATTRIBUTE, OSVERSION_ATTRIBUTE, OUTPUT, PATH_DIRECTIVE, PEDANTIC, PLUGIN, PLUGINPATH, POM, PRESENCE_DIRECTIVE, PRIVATE_DIRECTIVE, PRIVATE_PACKAGE, PROCESSOR_ATTRIBUTE, PROFILE, PROVIDE_CAPABILITY, PROVIDE_DIRECTIVE, PROVIDER_POLICY, PROVIDER_TYPE_DIRECTIVE, RELEASEREPO, REMOVE_ATTRIBUTE_DIRECTIVE, REMOVEHEADERS, REPORTNEWER, REQUIRE_BND, REQUIRE_BUNDLE, REQUIRE_CAPABILITY, RESOLUTION_DIRECTIVE, RESOURCEONLY, RUNBUILDS, RUNBUNDLES, RUNEE, RUNFRAMEWORK, RUNFRAMEWORK_NONE, RUNFRAMEWORK_SERVICES, RUNFW, RUNPATH, RUNPATH_LAUNCHER_DIRECTIVE, RUNPATH_MAIN_DIRECTIVE, RUNPROGRAMARGS, RUNPROPERTIES, RUNREPOS, RUNREQUIRE, RUNREQUIRES, RUNSTORAGE, RUNSYSTEMCAPABILITIES, RUNSYSTEMPACKAGES, RUNTIMEOUT, RUNTRACE, RUNVM, SAVEMANIFEST, SELECTION_FILTER_ATTRIBUTE, SERVICE_COMPONENT, SET_COMPONENT_DIRECTIVES, SET_COMPONENT_DIRECTIVES_1_1, SET_COMPONENT_DIRECTIVES_1_2, SIGN, SIGN_PASSWORD_DIRECTIVE, SIGNATURE_TEST, SINGLETON_DIRECTIVE, SIZE_ATTRIBUTE, SNAPSHOT, SOURCEPATH, SOURCES, SPECIFICATION_VERSION, SPLIT_PACKAGE_DIRECTIVE, SUB, TESTCASES, TESTCONTINUOUS, TESTER_PLUGIN, TESTPACKAGES, TESTPATH, TESTREPORT, TESTSUITES, TOOL, UNDERTEST, USES_DIRECTIVE, USES_USES, VALID_PROPERTY_TYPES, VERBOSE, VERSION_ATTRIBUTE, VERSION_FILTER, VISIBILITY_DIRECTIVE, WAB, WABLIB
 
Constructor Summary
Workspace(File dir)
           
 
Method Summary
 String _global(String[] args)
          Provide access to the global settings of this machine.
 String _workspace(String[] args)
           
 void addCommand(String menu, Action action)
           
 void bracket(boolean begin)
           
 void changedFile(File f)
          Inform any listeners that we changed a file (created/deleted/changed).
 void fillActions(Map<String,Action> all)
           
 Collection<Project> getAllProjects()
           
 Collection<Project> getBuildOrder()
           
 Collection<Project> getCurrentProjects()
           
 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()
           
static Workspace getWorkspace(File parent)
           
static Workspace getWorkspace(String path)
           
 boolean isOffline()
          Return if we're in offline mode.
 boolean isPresent(String name)
           
 void propertiesChanged()
           
 boolean refresh()
           
 void removeCommand(String menu)
           
 Workspace setOffline(boolean on)
           
protected  void setTypeSpecificPlugins(Set<Object> list)
           
 void signal()
           
 void signal(Reporter reporter)
           
 
Methods inherited from class aQute.bnd.osgi.Processor
_basedir, _native_capability, _random, addBasicPlugin, addClose, addIncluded, addProperties, addProperties, append, appendPath, begin, beginHandleErrors, check, clear, close, customize, doAttrbutes, doIncludeFile, doIncludeFile, endHandleErrors, error, error, exception, exists, forceRefresh, formatArrays, get, get, getBase, getClass, getDuration, getErrors, getExecutor, getFile, getFile, getFlattenedProperties, getIncluded, getInfo, getInfo, getLocation, getMacroDomains, getManifestAsProperties, getParent, getPlugin, getPlugins, getPlugins, getProperties, getPropertiesFile, getProperty, getProperty, getPropertyKeys, getReplacer, getTop, getUnprocessedProperty, getWarnings, isDuplicate, isExceptions, isFailOk, isMissingPlugin, isOk, isPedantic, isPerfect, isTrace, isTrue, iterator, join, join, join, join, join, keySet, lastModified, loadPlugins, loadProperties, makePrintable, merge, mergeProperties, mergeProperties, newHashMap, newList, newList, newMap, newMap, newSet, newSet, normalize, normalize, parseHeader, parseHeader, printClause, printClauses, printClauses, progress, progress, quote, read, removeBasicPlugin, removeClose, removeDuplicateMarker, replaceAll, replaceExtension, report, set, setBase, setExceptions, setFileMustExist, setForceLocal, setParent, setPedantic, setProperties, setProperties, setProperties, setProperty, setTrace, split, split, split, toString, trace, unsetProperty, updateModified, use, warning
 
Methods inherited from class aQute.bnd.osgi.Domain
domain, domain, domain, domain, getBundleActivator, getBundleClasspath, getBundleClassPath, getBundleRequiredExecutionEnvironment, getBundleSymbolicName, getBundleVersion, getDynamicImportPackage, getExportContents, getExportPackage, getFragmentHost, getIcon, getImportPackage, getIncludeResource, getParameters, getParameters, getParameters, getParameters, getPrivatePackage, getProvideCapability, getRequireBundle, getRequireCapability, isSources, setBundleActivator, setBundleClasspath, setBundleRequiredExecutionEnvironment, setBundleSymbolicName, setBundleVersion, setBundleVersion, setConditionalPackage, setExportPackage, setFailOk, setImportPackage, setIncludeResource, setPrivatePackage, setSources, setTranslation, translate, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUILDFILE

public static final String BUILDFILE
See Also:
Constant Field Values

CNFDIR

public static final String CNFDIR
See Also:
Constant Field Values

BNDDIR

public static final String BNDDIR
See Also:
Constant Field Values

CACHEDIR

public static final String CACHEDIR
See Also:
Constant Field Values
Constructor Detail

Workspace

public Workspace(File dir)
          throws Exception
Throws:
Exception
Method Detail

getProject

public static Project getProject(File projectDir)
                          throws Exception
This static method finds the workspace and creates a project (or returns an existing project)

Parameters:
projectDir -
Returns:
Throws:
Exception

getWorkspace

public static Workspace getWorkspace(File parent)
                              throws Exception
Throws:
Exception

getProject

public Project getProject(String bsn)
                   throws Exception
Throws:
Exception

isPresent

public boolean isPresent(String name)

getCurrentProjects

public Collection<Project> getCurrentProjects()

refresh

public boolean refresh()
Overrides:
refresh in class Processor

propertiesChanged

public void propertiesChanged()
Overrides:
propertiesChanged in class Processor

_workspace

public String _workspace(String[] args)

addCommand

public void addCommand(String menu,
                       Action action)

removeCommand

public void removeCommand(String menu)

fillActions

public void fillActions(Map<String,Action> all)

getAllProjects

public Collection<Project> getAllProjects()
                                   throws Exception
Throws:
Exception

changedFile

public void changedFile(File f)
Inform any listeners that we changed a file (created/deleted/changed).

Parameters:
f - The changed file

bracket

public void bracket(boolean begin)

signal

public void signal(Reporter reporter)

signal

public void signal()
Overrides:
signal in class Processor

getRepositories

public List<RepositoryPlugin> getRepositories()

getBuildOrder

public Collection<Project> getBuildOrder()
                                  throws Exception
Throws:
Exception

getWorkspace

public static Workspace getWorkspace(String path)
                              throws Exception
Throws:
Exception

getMaven

public Maven getMaven()

setTypeSpecificPlugins

protected void setTypeSpecificPlugins(Set<Object> list)
Overrides:
setTypeSpecificPlugins in class Processor

isOffline

public boolean isOffline()
Return if we're in offline mode. Offline mode is defined as an environment where nobody tells us the resources are out of date (refresh or changed). This is currently defined as having bndlisteners.

Returns:

setOffline

public Workspace setOffline(boolean on)

_global

public String _global(String[] args)
               throws Exception
Provide access to the global settings of this machine.

Throws:
Exception
UnknownHostException


Copyright © 2013 aQute SARL. All Rights Reserved.