Class Project
java.lang.Object
aQute.bnd.osgi.Domain
aQute.bnd.osgi.Processor
aQute.bnd.build.Project
- All Implemented Interfaces:
Constants, Registry, aQute.service.reporter.Report, aQute.service.reporter.Reporter, Closeable, AutoCloseable, Iterable<String>
- Direct Known Subclasses:
Run
This class is NOT threadsafe
-
Nested Class Summary
Nested classes/interfaces inherited from class Processor
Processor.CL, Processor.FileLineNested classes/interfaces inherited from interface aQute.service.reporter.Report
aQute.service.reporter.Report.LocationNested classes/interfaces inherited from interface aQute.service.reporter.Reporter
aQute.service.reporter.Reporter.SetLocation -
Field Summary
FieldsFields inherited from class Processor
LIST_SPLITTER, logFields inherited from interface Constants
ACCESS_ATTRIBUTE, AUGMENT, AUGMENT_CAPABILITY_DIRECTIVE, AUGMENT_RANGE_ATTRIBUTE, AUGMENT_REQUIREMENT_DIRECTIVE, AUTOMATIC_MODULE_NAME, BASELINE, BASELINEREPO, BLUEPRINT_TIMEOUT_ATTRIBUTE, BLUEPRINT_WAIT_FOR_DEPENDENCIES_ATTRIBUTE, BND_ADDXMLTOTEST, BND_LASTMODIFIED, BND_USE_ATTRIBUTES, BNDDRIVER, BNDDRIVER_ANT, BNDDRIVER_BND, BNDDRIVER_ECLIPSE, BNDDRIVER_GRADLE, BNDDRIVER_GRADLE_NATIVE, BNDDRIVER_INTELLIJ, BNDDRIVER_MAVEN, BNDDRIVER_OSMORC, BNDDRIVER_SBT, BSN_SOURCE_SUFFIX, BUILDERIGNORE, BUILDFILES, BUILDPATH, BUILDREPO, BUMPPOLICY, BUNDLE_ACTIVATIONPOLICY, BUNDLE_ACTIVATOR, BUNDLE_BLUEPRINT, BUNDLE_CATEGORY, BUNDLE_CLASSPATH, BUNDLE_CONTACTADDRESS, BUNDLE_CONTRIBUTORS, BUNDLE_COPYRIGHT, BUNDLE_DESCRIPTION, BUNDLE_DEVELOPERS, BUNDLE_DOCURL, BUNDLE_ICON, BUNDLE_LICENSE, BUNDLE_LOCALIZATION, BUNDLE_MANIFESTVERSION, BUNDLE_NAME, BUNDLE_NATIVECODE, BUNDLE_REQUIREDEXECUTIONENVIRONMENT, BUNDLE_SCM, BUNDLE_SPECIFIC_HEADERS, BUNDLE_SYMBOLIC_NAME_ATTRIBUTE, BUNDLE_SYMBOLICNAME, BUNDLE_UPDATELOCATION, BUNDLE_VENDOR, BUNDLE_VERSION, BUNDLE_VERSION_ATTRIBUTE, BUNDLEANNOTATIONS, CARDINALITY_DIRECTIVE, CDIANNOTATIONS, CHECK, CLASS_ATTRIBUTE, CLASSPATH, COMMAND_DIRECTIVE, COMPONENT_ACTIVATE, COMPONENT_CONFIGURATION_POLICY, COMPONENT_DEACTIVATE, COMPONENT_DESCRIPTORS, COMPONENT_DESIGNATE, COMPONENT_DESIGNATEFACTORY, COMPONENT_DIRECTIVES, COMPONENT_DIRECTIVES_1_1, COMPONENT_DIRECTIVES_1_2, 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, COMPRESSION, CONDITIONAL_PACKAGE, CONDITIONALPACKAGE, CONDUIT, CONNECTION_LOG, CONNECTION_SETTINGS, CONSUMER_POLICY, CONTRACT, CREATED_BY, CURRENT_BUNDLESYMBOLICNAME, CURRENT_BUNDLEVERSION, CURRENT_PACKAGE, CURRENT_USES, CURRENT_VERSION, DEFAULT_BAR_EXTENSION, DEFAULT_BND_EXTENSION, DEFAULT_BNDRUN_EXTENSION, DEFAULT_CHARSET, DEFAULT_DO_NOT_COPY, DEFAULT_JAR_EXTENSION, DEFAULT_LAUNCHER_BSN, DEFAULT_PREPROCESSS_MATCHERS, DEFAULT_PROP_BIN_DIR, DEFAULT_PROP_SRC_DIR, DEFAULT_PROP_TARGET_DIR, DEFAULT_PROP_TESTBIN_DIR, DEFAULT_PROP_TESTSRC_DIR, DEFAULT_TESTER_BSN, DEFINE_CONTRACT, DEPENDSON, DEPLOY, DEPLOYREPO, DESCRIPTION_ATTRIBUTE, DIFFIGNORE, DIFFPACKAGES, DIGESTS, directives, DISTRO, DONOTCOPY, DSANNOTATIONS, DSANNOTATIONS_OPTIONS, DUPLICATE_MARKER, DYNAMICIMPORT_PACKAGE, EE_ATTRIBUTE, EEPROFILE, EEPROFILE_AUTO_ATTRIBUTE, EFFECTIVE_DIRECTIVE, EMBEDDED_REPO, EMPTY_HEADER, EXCLUDE_DIRECTIVE, EXECUTABLE, EXPORT, EXPORT_APIGUARDIAN, EXPORT_BSN, EXPORT_CONTENTS, EXPORT_NAME, EXPORT_PACKAGE, EXPORT_SERVICE, EXPORT_TYPE, EXPORT_VERSION, EXPORTS_ATTRIBUTE, EXPORTTYPE, EXTENSION, EXTENSION_DIRECTIVE, FAIL_OK, FILTER_DIRECTIVE, FIXUPMESSAGES, FIXUPMESSAGES_IS_DIRECTIVE, FIXUPMESSAGES_IS_ERROR, FIXUPMESSAGES_IS_IGNORE, FIXUPMESSAGES_IS_WARNING, FIXUPMESSAGES_REPLACE_DIRECTIVE, FIXUPMESSAGES_RESTRICT_DIRECTIVE, FRAGMENT_ATTACHMENT_DIRECTIVE, FRAGMENT_HOST, FROM_DIRECTIVE, GENERATE, GESTALT, GESTALT_BATCH, GESTALT_CI, GESTALT_INTERACTIVE, GESTALT_OFFLINE, GESTALT_SHELL, GROUPID, headers, IDENTITY_INITIAL_RESOURCE, IDENTITY_SYSTEM_RESOURCE, IGNORE_ATTRIBUTE, IGNORE_PACKAGE, IGNORE_STANDALONE, IMPORT_DIRECTIVE, IMPORT_PACKAGE, IMPORT_PRIVATE, IMPORT_REFERENCE, IMPORT_SERVICE, importDirectives, INCLUDE, INCLUDE_DIRECTIVE, INCLUDE_RESOURCE, INCLUDEPACKAGE, INCLUDERESOURCE, INIT, INTERNAL_BUNDLESYMBOLICNAME_DIRECTIVE, INTERNAL_BUNDLEVERSION_DIRECTIVE, INTERNAL_EXPORT_TO_MODULES_DIRECTIVE, INTERNAL_EXPORTED_DIRECTIVE, INTERNAL_MODULE_DIRECTIVE, INTERNAL_MODULE_VERSION_DIRECTIVE, INTERNAL_OPEN_TO_MODULES_DIRECTIVE, INTERNAL_PREFIX, INTERNAL_SOURCE_DIRECTIVE, INVALIDFILENAMES, JAVA, JAVA_DEBUG, JAVAAGENT, JAVAC, JAVAC_ENCODING, JAVAC_PROFILE, JAVAC_SOURCE, JAVAC_TARGET, JIDENTIFIER, JPMS_MODULE_INFO, JPMS_MODULE_INFO_OPTIONS, KEYSTORE_LOCATION_DIRECTIVE, KEYSTORE_PASSWORD_DIRECTIVE, KEYSTORE_PROVIDER_DIRECTIVE, LANGUAGE_ATTRIBUTE, LAUNCH_ACTIVATION_EAGER, LAUNCH_ACTIVATORS, LAUNCH_RUNBUNDLES_ATTRS, LAUNCH_STARTLEVEL_DEFAULT, LAUNCH_TRACE, LAUNCHER_PLUGIN, LIB_DIRECTIVE, LIBRARY, LINK_ATTRIBUTE, LITERAL_ATTRIBUTE, MAIN_CLASS, MAKE, MANDATORY_DIRECTIVE, MANIFEST, MANIFEST_NAME, MAVEN_DEPENDENCIES, MAVEN_RELEASE, MAVEN_SCOPE, META_PERSISTENCE, METAPACKAGES, METATYPE, METATYPE_ANNOTATIONS, METATYPE_ANNOTATIONS_OPTIONS, MIME_TYPE_BUNDLE, MIME_TYPE_JAR, MODULE_INFO_CLASS, MODULES_ATTRIBUTE, NAME_ATTRIBUTE, NAMESECTION, NAMESPACE_STEM, NO_IMPORT_DIRECTIVE, NOANNOTATIONS, NOBUILDINCACHE, NOBUNDLES, NOCLASSFORNAME, NODEFAULTVERSION, NOEE, NOEXTRAHEADERS, NOIMPORTJAVA, NOJUNIT, NOJUNITOSGI, NOMANIFEST, NONE, NOT_A_BUNDLE_S, NOUSES, OPTIONAL, options, OSGI_SYNTAX_HEADERS, OSNAME_ATTRIBUTE, OSVERSION_ATTRIBUTE, OUTPUT, OUTPUTMASK, PACKAGEINFOTYPE, PATH_DIRECTIVE, PEDANTIC, PLUGIN, PLUGINPATH, PLUGINPATH_SHA1_ATTR, PLUGINPATH_URL_ATTR, POM, PREPROCESSMATCHERS, PRESENCE_DIRECTIVE, PRIVATE_DIRECTIVE, PRIVATE_PACKAGE, PRIVATEPACKAGE, PROCESSOR_ATTRIBUTE, PROFILE, PROVIDE_CAPABILITY, PROVIDE_DIRECTIVE, PROVIDER_POLICY, PROVIDER_TYPE_DIRECTIVE, RELEASEREPO, REMOTEWORKSPACE, REMOVE_ATTRIBUTE_DIRECTIVE, REMOVEHEADERS, REPORTNEWER, REPOSITORIES, REPRODUCIBLE, REQUIRE_BND, REQUIRE_BUNDLE, REQUIRE_CAPABILITY, RESOLUTION, RESOLUTION_DIRECTIVE, RESOLUTION_DYNAMIC, RESOLVE, RESOLVE_EFFECTIVE, RESOLVE_EXCLUDESYSTEM, RESOLVE_PREFERENCES, RESOLVEDEBUG, RESOURCEONLY, RUNBLACKLIST, RUNBUILDS, RUNBUNDLES, RUNBUNDLES_STARTLEVEL_ATTRIBUTE, RUNEE, RUNENV, RUNFRAMEWORK, RUNFRAMEWORK_NONE, RUNFRAMEWORK_SERVICES, RUNFRAMEWORKRESTART, RUNFW, RUNJDB, RUNKEEP, RUNNOREFERENCES, RUNOPTIONS, RUNOPTIONS_EAGER, RUNPATH, RUNPROGRAMARGS, RUNPROPERTIES, RUNPROVIDEDCAPABILITIES, RUNREMOTE, RUNREPOS, RUNREQUIRES, RUNSTARTLEVEL, RUNSTARTLEVEL_BEGIN, RUNSTARTLEVEL_ORDER, RUNSTARTLEVEL_STEP, RUNSTORAGE, RUNSYSTEMCAPABILITIES, RUNSYSTEMPACKAGES, RUNTIMEOUT, RUNTRACE, RUNVM, SAVEMANIFEST, SELECTION_FILTER_ATTRIBUTE, SERVICE_COMPONENT, SERVICELOADER_NAMESPACE, SERVICELOADER_REGISTER_DIRECTIVE, SIGN, SIGN_PASSWORD_DIRECTIVE, SIGNATURE_TEST, SINGLETON_DIRECTIVE, SIZE_ATTRIBUTE, SNAPSHOT, SOURCEPATH, SOURCES, SPECIFICATION_VERSION, SPLIT_PACKAGE_DIRECTIVE, STALECHECK, STANDALONE, STATIC_ATTRIBUTE, STRICT, SUB, SUBSTITUTE_ATTRIBUTE, SYSTEMPROPERTIES, TESTCASES, TESTCONTINUOUS, TESTER, TESTER_PLUGIN, TESTPACKAGES, TESTPATH, TESTSOURCES, TESTTERMINATE, TESTUNRESOLVED, TOOL, TRANSITIVE_ATTRIBUTE, TSTAMP, UNDERTEST, UPTO, USES_DIRECTIVE, USES_USES, VALID_PROPERTY_TYPES, VERSION_ATTR_HASH, VERSION_ATTR_LATEST, VERSION_ATTR_PROJECT, VERSION_ATTR_SNAPSHOT, VERSION_ATTRIBUTE, VERSION_FILTER, VERSIONDEFAULTS, VISIBILITY_DIRECTIVE, WAB, WABLIB, WORKINGSET, WORKINGSET_MEMBER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_p_allsourcepath(String[] args) _p_bootclasspath(String[] args) _p_buildpath(String[] args) _p_dependson(String[] args) _p_sourcepath(String[] args) _p_testpath(String[] args) voidvoidvoidaddClasspath(File f) bnd maintains a class path that is set by the environment, i.e.voidbaseline()Do a baseline for this projectFile[]build()File[]build(boolean underTest) This is the external method that will pre-build any dependencies if it is out of date.File[]buildLocal(boolean underTest) Build without doing any dependency checking.voidbump()voidBump the version of this project.voidclean()voidvoidcompile(boolean test) voidcopy(RepositoryPlugin source, Instructions filter, RepositoryPlugin destination) voidcopy(RepositoryPlugin source, String filter, RepositoryPlugin destination) Copy a repository to another repositoryvoiddeploy()Deploy the current project to a repositoryvoidDeploy the file (which must be a bundle) into the repository.voidDeploy the file (which must be a bundle) into the repository.voiddoMavenPom(Strategy strategyx, List<Container> result, String action) The user selected pom in a path.voidDeprecated.Export this project via the exporters.voidexportRunbundles(String runFilePath, File outputDir) voidfillActions(Map<String, Action> all) getBsns()Return the direct build dependencies of this project.getBuilder(ProjectBuilder parent) Return a new builder that is nicely setup for this project.File[]This method must only be called when it is sure that the project has been build before in the same session.File[]getBuildFiles(boolean buildIfAbsent) Get a bundle from one of the plugin repositories.getBundle(org.osgi.resource.Resource r) getBundles(Strategy strategyx, String spec, String source) Analyze the header and return a list of files that should be on the build, test or some other path.Get all bundles matching a wildcard expression.intA checksum based on the values of the propertiesGet the contained packages calculated from all builders from the last buildgetDeliverable(String bsn, Map<String, String> attrs) Answer the container associated with a given bsn.Returns containers for the deliverables of this project.Return the full transitive dependents of this project.Return the full transitive dependencies of this project.Get the exported packages form all builders calculated from the last buildFile[]getFiles()Return the filesGet the object responsible for source code generation.Get the imported packages from all builders calculated from the last buildprotected Object[]This should be overridden by subclasses to add extra macro command domains on the search list.getName()getOutputFile(String bsn) getOutputFile(String bsn, String version) Calculate the file for a JAR.getPackageInfo(String packageName) Get a launcher.List<org.osgi.resource.Resource> booleangetRunFw()Return the run frameworkbooleangetRunVM()Return a basic type only specification of the run aspect of this projectgetSrc()Deprecated.getSubBuilder(File bndFile) Return a builder associated with the give bnd file or null.getSubBuilder(String string) Return a build that maps to the sub file.Return the direct test dependencies of this project.static ProjectgetUnparented(File propertiesFile) getValidJar(Jar jar, String id) getValidJar(File f) This methods attempts to turn any jar into a valid jar.getValidJar(URL url) getVersion(String bsn) booleanisCnf()booleanReturn if this is an interactive environment like Eclipse or runs in batch mode.booleanAnswer if this project does not have any outputbooleanbooleanisStale()Check if this project needs building.booleanbooleanisValid()voidjunit()Run JUnitprotected StrategyoverrideStrategy(Map<String, String> attrs, Strategy useStrategy) Pack the project (could be a bndrun file) and save it on disk.protected aQute.bnd.build.Project.RepoFilterparseRepoFilter(Map<String, String> attrs) parseRunbundles(String spec) voidActions to perform after a full workspace release.protected voidCheck prebuild things.voidprepare()Set up all the pathsvoidActions to perform before a full workspace release.voidbooleanrefresh()Refresh if we are based on stale data.voidvoidrelease()voidrelease(boolean test) voidRelease.voidReleaserelease(String jarName, InputStream jarStream) release(String name, String jarName, InputStream jarStream) ReleasereleaseURI(String jarName, InputStream jarStream) releaseURI(String name, String jarName, InputStream jarStream) voidremove()voidReport detailed info from this projectprotected voidvoidrun()voidrunLocal()voidvoidvoidvoidsetDelayRunDependencies(boolean x) Make this project delay the calculation of the run dependencies.voidsetPackageInfo(String packageName, Version newVersion) voidtest()voidvoidprotected ContainertoContainer(String bsn, String range, Map<String, String> attrs, File result, DownloadBlocker db) toString()Printout of the status of this processor for toString()voidverifyDependencies(boolean test) Method to verify that the paths are correct, ie no missing dependenciesMethods inherited from class Processor
_basedir, _fileuri, _findfile, _frange, _native_capability, _propertiesdir, _propertiesname, _random, _thisfile, _uri, addBasicPlugin, addClose, addExtensions, addIncluded, addProperties, addProperties, append, appendPath, begin, beginHandleErrors, check, clear, close, concat, customize, decorated, decorated, doAttrbutes, doIncludeFile, doIncludeFile, endHandleErrors, error, error, exception, exists, findHeader, findHeader, findHeader, forceRefresh, formatArrays, get, get, getBase, getBaseURI, getClass, getDuration, getErrors, getExecutor, getFile, getFile, getFlattenedProperties, getFlattenedProperties, getHeader, getHeader, getHeader, getHeader, getIncluded, getInfo, getInfo, getInstructions, getJarFromName, getJavaExecutable, getLine, getLoader, getLocation, getLogger, getManifestAsProperties, getMergedParameters, getParameters, getParent, getPlugin, getPlugins, getPlugins, getProfile, getPromiseFactory, getProperties, getPropertiesFile, getProperty, getProperty, getProperty, getPropertyKeys, getReplacer, getScheduledExecutor, getSelfAndAncestors, getSettings, getTop, getUnexpandedProperty, getUnprocessedProperty, getWarnings, is, isDuplicate, isExceptions, isFailOk, isMissingPlugin, isOk, isPedantic, isPerfect, isTrace, isTrue, iterator, join, join, join, join, join, join, keySet, lastModified, loadProperties, makePrintable, merge, mergeLocalProperties, mergeProperties, mergeProperties, mergeProperties, mergeProperties, newHashMap, newList, newList, newMap, newMap, newSet, newSet, normalize, normalize, parseHeader, parseHeader, printClause, printClauses, printClauses, printExceptionSummary, printStackTrace, progress, progress, quote, read, removeBasicPlugin, removeClose, removeDuplicateMarker, replaceAll, replaceExtension, report, set, setBase, setExceptions, setFileMustExist, setForceLocal, setLocation, setParent, setPedantic, setProperties, setProperties, setProperties, setProperties, setPropertiesFile, setProperty, setTrace, setTypeSpecificPlugins, signal, since, split, split, split, spliterator, system, system, toFullHeaderPattern, trace, unsetProperty, updateModified, use, warningMethods inherited from class Domain
copyFrom, domain, domain, domain, domain, domain, domain, domain, getBundleActivator, getBundleCategory, getBundleClasspath, getBundleClassPath, getBundleContactAddress, getBundleCopyright, getBundleDescription, getBundleDocURL, getBundleName, getBundleNative, getBundleRequiredExecutionEnvironment, getBundleSymbolicName, getBundleVendor, getBundleVersion, getDynamicImportPackage, getExportContents, getExportPackage, getFragmentHost, getIcon, getImportPackage, getIncludeResource, getParameters, getParameters, getParameters, getParameters, getPrivatePackage, getProvideCapability, getRequireBundle, getRequireCapability, getRunblacklist, getRunee, isSources, normalizeKey, setAugment, setBundleActivator, setBundleClasspath, setBundleRequiredExecutionEnvironment, setBundleSymbolicName, setBundleVersion, setBundleVersion, setConditionalPackage, setExportContents, setExportPackage, setFailOk, setImportPackage, setIncludePackage, setIncludeResource, setPrivatePackage, setRunblacklist, setRunee, setRunfw, setRunRequires, setSources, setTranslation, translate, translate
-
Field Details
-
BNDFILE
- See Also:
-
BNDCNF
- See Also:
-
SHA_256
- See Also:
-
unreferencedClasspathEntries
-
instructions
-
-
Constructor Details
-
Project
-
Project
-
-
Method Details
-
getUnparented
-
isValid
public boolean isValid() -
getBuilder
Return a new builder that is nicely setup for this project. Please close this builder after use.- Parameters:
parent- The project builder to use as parent, use this project if null- Throws:
Exception
-
getChanged
public int getChanged() -
setChanged
public void setChanged() -
getWorkspace
-
toString
-
prepare
-
getSrc
Deprecated.This method is deprecated because this can handle only one source dir. Use getSourcePath. For backward compatibility we will return the first entry on the source path.- Returns:
- first entry on the
getSourcePath() - Throws:
Exception
-
getSrcOutput
-
getTestSrc
-
getTestOutput
-
getTargetDir
-
parseRunbundles
-
getBundles
Analyze the header and return a list of files that should be on the build, test or some other path. The list is assumed to be a list of bsns with a version specification. The special case of version=project indicates there is a project in the same workspace. The path to the output directory is calculated. The default directory ${bin} can be overridden with the output attribute.- Parameters:
strategyx- STRATEGY_LOWEST or STRATEGY_HIGHESTspec- The header- Throws:
Exception
-
getBundlesWildcard
public List<Container> getBundlesWildcard(String bsnPattern, String range, Strategy strategyx, Map<String, String> attrs) throws ExceptionGet all bundles matching a wildcard expression.- Parameters:
bsnPattern- A bsn wildcard, e.g. "osgi*" or just "*".range- A range to narrow the versions of bundles found, or null to return any version.strategyx- The version selection strategy, which may be 'HIGHEST' or 'LOWEST' only -- 'EXACT' is not permitted.attrs- Additional search attributes.- Throws:
Exception
-
doMavenPom
The user selected pom in a path. This will place the pom as well as its dependencies on the list- Parameters:
strategyx- the strategy to use.result- The list of result containers- Throws:
Exception- anything goes wrong
-
getDependson
Return the full transitive dependencies of this project.- Returns:
- A set of the full transitive dependencies of this project.
- Throws:
Exception
-
getBuildDependencies
-
getTestDependencies
Return the direct test dependencies of this project.The result includes the direct build dependencies of this project as well, so the result is a super set of
getBuildDependencies().- Returns:
- A set of the test build dependencies of this project.
- Throws:
Exception
-
getDependents
Return the full transitive dependents of this project.The result includes projects which have build and test dependencies on this project.
Since the full transitive dependents of this project is updated during the computation of other project dependencies, until all projects are prepared, the dependents result may be partial.
- Returns:
- A set of the transitive set of projects which depend on this project.
- Throws:
Exception
-
getBuildpath
- Throws:
Exception
-
getTestpath
- Throws:
Exception
-
getRunpath
- Throws:
Exception
-
getRunbundles
- Throws:
Exception
-
getRunFw
-
getRunStorage
-
getRunBuilds
public boolean getRunBuilds() -
getSourcePath
- Throws:
Exception
-
getAllsourcepath
- Throws:
Exception
-
getBootclasspath
- Throws:
Exception
-
getOutput
-
_p_dependson
-
_p_buildpath
-
_p_testpath
-
_p_sourcepath
-
_p_allsourcepath
-
_p_bootclasspath
-
_p_output
-
getMacroDomains
Description copied from class:ProcessorThis should be overridden by subclasses to add extra macro command domains on the search list.- Overrides:
getMacroDomainsin classProcessor
-
release
- Throws:
Exception
-
releaseURI
- Throws:
Exception
-
release
-
releaseURI
-
release
-
release
-
getBundle
public Container getBundle(String bsn, String range, Strategy strategy, Map<String, String> attrs) throws ExceptionGet a bundle from one of the plugin repositories. If an exact version is required we just return the first repository found (in declaration order in the build.bnd file).- Parameters:
bsn- The bundle symbolic namerange- The version rangestrategy- set to LOWEST or HIGHEST- Returns:
- the file object that points to the bundle or null if not found
- Throws:
Exception- when something goes wrong
-
overrideStrategy
-
parseRepoFilter
-
toContainer
-
deploy
-
deploy
-
deploy
-
_repo
-
getTarget
-
build
-
getInstallRepositories
-
getFiles
Return the files -
isStale
-
getBuildFiles
This method must only be called when it is sure that the project has been build before in the same session. It is a bit yucky, but ant creates different class spaces which makes it hard to detect we already build it. This method remembers the files in the appropriate instance vars.- Throws:
Exception
-
getBuildFiles
-
buildLocal
-
isNoBundles
public boolean isNoBundles()Answer if this project does not have any output -
saveBuild
-
getOutputFile
-
getOutputFile
-
refresh
-
isCnf
public boolean isCnf() -
propertiesChanged
public void propertiesChanged()- Overrides:
propertiesChangedin classProcessor
-
getName
-
getActions
-
fillActions
-
release
-
export
Export this project via the exporters. The return is the calculated name (can be overridden with the option `name`, which must be the basename since the extension is defined by the exporter)- Parameters:
type- an exporter type like `bnd.executablejar` or null as default `bnd.executablejar.pack`, the original export functionoptions- parameters to the exporters- Returns:
- and entry with the name and resource for the export
- Throws:
Exception
-
export
Deprecated.The keep flag is really awkward since it overrides the -runkeep flag in the file. Use doExport instead- Throws:
Exception
-
exportRunbundles
-
release
-
clean
-
build
-
run
-
isRunTrace
public boolean isRunTrace() -
runLocal
-
test
-
test
-
test
-
junit
-
getValidJar
-
getValidJar
-
getValidJar
-
_project
-
bump
Bump the version of this project. First check the main bnd file. If this does not contain a version, check the include files. If they still do not contain a version, then check ALL the sub builders. If not, add a version to the main bnd file.- Parameters:
mask- the mask for bumping, seeMacro._version(String[])- Throws:
Exception
-
bump
-
action
-
action
-
refreshAll
public void refreshAll() -
script
-
script
-
_repos
-
_help
-
getDeliverables
Returns containers for the deliverables of this project. The deliverables is the project builder for this project if no -sub is specified. Otherwise it contains all the sub bnd files.- Returns:
- A collection of containers
- Throws:
Exception
-
getSubBuilder
Return a builder associated with the give bnd file or null. The bnd.bnd file can contain -sub option. This option allows specifying files in the same directory that should drive the generation of multiple deliverables. This method figures out if the bndFile is actually one of the bnd files of a deliverable.- Parameters:
bndFile- A file pointing to a bnd file.- Returns:
- null or a builder for a sub file, the caller must close this builder
- Throws:
Exception
-
getSubBuilder
Return a build that maps to the sub file.- Parameters:
string-- Throws:
Exception
-
getDeliverable
-
getRunVM
-
getRunProgramArgs
-
getRunProperties
-
getProjectLauncher
-
getProjectTester
- Throws:
Exception
-
setDelayRunDependencies
public void setDelayRunDependencies(boolean x) Make this project delay the calculation of the run dependencies. The run dependencies calculation can be done in prepare or until the dependencies are actually needed. -
addClasspath
bnd maintains a class path that is set by the environment, i.e. bnd is not in charge of it. -
clearClasspath
public void clearClasspath() -
getClasspath
-
pack
-
baseline
-
verifyDependencies
-
report
-
report
-
compile
-
_ide
- Throws:
IOException
-
getVersions
-
getBsns
- Throws:
Exception
-
getVersion
-
getExports
Get the exported packages form all builders calculated from the last build -
getImports
Get the imported packages from all builders calculated from the last build -
getContained
Get the contained packages calculated from all builders from the last build -
remove
-
getRunKeep
public boolean getRunKeep() -
setPackageInfo
-
getPackageInfo
-
preRelease
public void preRelease()Actions to perform before a full workspace release. This is executed for projects that describe the distribution -
postRelease
public void postRelease()Actions to perform after a full workspace release. This is executed for projects that describe the distribution -
copy
public void copy(RepositoryPlugin source, String filter, RepositoryPlugin destination) throws Exception Copy a repository to another repository- Throws:
Exception
-
copy
public void copy(RepositoryPlugin source, Instructions filter, RepositoryPlugin destination) throws Exception - Throws:
Exception
-
isInteractive
public boolean isInteractive()Description copied from class:ProcessorReturn if this is an interactive environment like Eclipse or runs in batch mode. If interactive, things can get refreshed.- Overrides:
isInteractivein classProcessor
-
getSpecification
Return a basic type only specification of the run aspect of this project -
getRunSystemPackages
-
getRunSystemCapabilities
-
preBuildChecks
protected void preBuildChecks()Check prebuild things. -
getBundle
-
isStandalone
public boolean isStandalone() -
getChecksum
Description copied from class:ProcessorA checksum based on the values of the properties- Overrides:
getChecksumin classProcessor- Returns:
- A checksum based on the values of the properties
-
getGenerate
Get the object responsible for source code generation. This object should not be stored, a new one is created if the properties of this project change.- Returns:
- a fresh ProjectGenerate object
-
getResources
-