Package aQute.bnd.main
Class bnd
- java.lang.Object
-
- aQute.bnd.osgi.Domain
-
- aQute.bnd.osgi.Processor
-
- aQute.bnd.main.bnd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfacebnd.ActionOptionsList actions of the repositories if they implement Actionable and allow them to be executed(package private) static interfacebnd.AddOptionsAdd a project, workspace, or plugin(package private) static classbnd.Alg(package private) static interfacebnd.bndOptions(package private) static interfacebnd.BootstrapOptionsstart a local framework(package private) static interfacebnd.Bsn2UrlOptionsFrom a set of bsns, create a list of urls(package private) static interfacebnd.buildoptions(package private) static interfacebnd.buildxOptions(package private) static interfacebnd.bumpoptions(package private) static interfacebnd.ChangesOptionsShow the changes in the releases(package private) static interfacebnd.ClasspathOptions(package private) static interfacebnd.cleanOptions(package private) static interfacebnd.CollectOptions(package private) static interfacebnd.CompileOptions(package private) static interfacebnd.convertOptionsConvert files(package private) static interfacebnd.CopyOptions(package private) static interfacebnd.createOptionsOptions for the jar create command.(package private) static interfacebnd.debugOptions(package private) static interfacebnd.deliverableOptionsList all deliverables for this workspace.(package private) static interfacebnd.DependencyOptionsShow the dependencies of all projects(package private) static interfacebnd.dooptions(package private) static interfacebnd.eclipseOptions(package private) static interfacebnd.EEOptions(package private) static interfacebnd.excludeOptions(package private) static interfacebnd.ExportOptionsExport a bndrun file(package private) static interfacebnd.extractOptionsExtract a file from the JAR(package private) static interfacebnd.FindOptionsFind a package in the current project or a set of jars(package private) static interfacebnd.FlattenOptionsFlatten a jar(package private) static interfacebnd.GenerateOptions(package private) static interfacebnd.grepOptionsGrep in jars(package private) static interfacebnd.HandledProjectWorkspaceOptions(package private) static interfacebnd.hashOptions(package private) static interfacebnd.infoOptionsShow some key info of the project(package private) static interfacebnd.macroOptions(package private) static interfacebnd.MergeOptionsMerge n JARs into a new JAR(package private) static interfacebnd.packageOptions(package private) static interfacebnd.ParallelBuildOptions(package private) static interfacebnd.patchOptionsPatch(package private) static interfacebnd.PerProject(package private) static interfacebnd.printOptionsPrint out a JARstatic interfacebnd.ProfileOptionsProfiles subcmd(package private) static interfacebnd.projectOptionsProject command, executes actions.(package private) static interfacebnd.ProjectWorkspaceOptions(package private) static interfacebnd.PropertiesOptions(package private) static interfacebnd.releaseOptions(package private) static interfacebnd.RemoveOptions(package private) static interfacebnd.runOptions(package private) static interfacebnd.runtestsOptions(package private) static interfacebnd.selectOptionsCreate a list of file names that match manifest headers bnd select -h Bundle-SymbolicName --where (...) *(package private) static interfacebnd.settingOptionsHandle the global settings(package private) static interfacebnd.sourceOptions(package private) static interfacebnd.syntaxOptions(package private) static interfacebnd.testOptions(package private) static interfacebnd.typeOptionsList the contents of the JAR(package private) static interfacebnd.verboseOptions(package private) static interfacebnd.verifyOptionsstatic interfacebnd.versionOptions(package private) static interfacebnd.viewOptions(package private) static interfacebnd.workspaceOptions(package private) static interfacebnd.wrapOptions-
Nested classes/interfaces inherited from class aQute.bnd.osgi.Processor
Processor.CL, Processor.FileLine
-
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
-
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternASSIGNMENT(package private) static java.lang.StringBND_BNDprivate static java.util.regex.PatternBND_COMMAND_P(package private) static java.lang.StringBNDRUN_ALLprivate static java.util.regex.PatternBUG_P(package private) static intBUILD_FORCE(package private) static intBUILD_POM(package private) static intBUILD_SOURCESBuildxprivate static java.util.regex.PatternCOMMANDprivate static java.lang.StringDEFAULT_LOG_LEVEL_KEY(package private) java.io.PrintStreamerrprivate static java.util.regex.PatternJARCOMMANDS(package private) Justifjustifprivate static java.util.regex.PatternLINE_Pprivate static org.slf4j.Loggerlogger(package private) BndMessagesmessagesprivate static java.lang.ThreadLocal<java.lang.Boolean>noExitjava.io.PrintStreamoutprivate char[]password(package private) Settingssettingsprivate Workspaceworkspaceprivate Workspacews-
Fields inherited from class aQute.bnd.osgi.Processor
LIST_SPLITTER, log
-
Fields inherited from interface aQute.bnd.osgi.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, 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, BUILDPACKAGES, 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, CACHEDIR, CARDINALITY_DIRECTIVE, CDIANNOTATIONS, CHECK, CLASS_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, COMPRESSION, CONDITIONAL_PACKAGE, CONDITIONALPACKAGE, CONDUIT, CONNECTION_SETTINGS, CONSUMER_POLICY, CONTRACT, CREATED_BY, CURRENT_BUNDLESYMBOLICNAME, CURRENT_BUNDLEVERSION, 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_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, EMPTY_HEADER, EXCLUDE_DIRECTIVE, EXECUTABLE, EXPERIMENTS, 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_VERSION_DIRECTIVE, INTERNAL_OPEN_TO_MODULES_DIRECTIVE, 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, 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, PACKAGE, 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, RESOURCEONLY, RUNBLACKLIST, RUNBUILDS, RUNBUNDLES, RUNBUNDLES_STARTLEVEL_ATTRIBUTE, RUNEE, RUNENV, RUNFRAMEWORK, RUNFRAMEWORK_NONE, RUNFRAMEWORK_SERVICES, RUNFRAMEWORKRESTART, RUNFW, RUNJDB, RUNKEEP, RUNNOREFERENCES, RUNOPTIONS, RUNOPTIONS_EAGER, RUNPATH, RUNPATH_LAUNCHER_DIRECTIVE, RUNPATH_MAIN_DIRECTIVE, RUNPROGRAMARGS, RUNPROPERTIES, RUNPROVIDEDCAPABILITIES, RUNREMOTE, RUNREPOS, RUNREQUIRE, 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, 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, STALECHECK, STANDALONE, STATIC_ATTRIBUTE, STRICT, SUB, SUBSTITUTE_ATTRIBUTE, SYSTEMPROPERTIES, TESTCASES, TESTCONTINUOUS, TESTER, TESTER_PLUGIN, TESTPACKAGES, TESTPATH, TESTREPORT, TESTSOURCES, TESTSUITES, TESTUNRESOLVED, TOOL, TRANSITIVE_ATTRIBUTE, TSTAMP, UNDERTEST, UPTO, USES_DIRECTIVE, USES_USES, VALID_PROPERTY_TYPES, VERBOSE, VERSION_ATTR_HASH, VERSION_ATTR_LATEST, VERSION_ATTR_PROJECT, VERSION_ATTR_SNAPSHOT, VERSION_ATTRIBUTE, VERSION_FILTER, VISIBILITY_DIRECTIVE, WAB, WABLIB, WORKINGSET, WORKINGSET_MEMBER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void__merge(bnd.MergeOptions options)void__par(bnd.ParallelBuildOptions options)Lets see if we can build in parallelvoid_action(bnd.ActionOptions opts)void_add(bnd.AddOptions opts)void_baseline(BaselineCommands.baseLineOptions opts)Baselinevoid_bash(Options options)void_bnd(bnd.bndOptions options)Main command.void_bootstrap(bnd.BootstrapOptions options)void_bsn2url(bnd.Bsn2UrlOptions opts)void_build(bnd.buildoptions opts)void_buildx(bnd.buildxOptions options)void_bump(bnd.bumpoptions options)Bump a version numbervoid_changes(bnd.ChangesOptions options)void_classpath(bnd.ClasspathOptions options)void_classtoresource(Options options)void_clean(bnd.cleanOptions opts)void_collect(bnd.CollectOptions options)void_com(CommunicationCommands.CommunicationOptions options)void_compile(bnd.CompileOptions opts)void_convert(bnd.convertOptions opts)void_copy(bnd.CopyOptions options)void_create(bnd.createOptions options)Create jar filevoid_debug(bnd.debugOptions options)Printout all the variables in scope.void_defaults(Options o)Show all the defaults in bndvoid_deliverables(bnd.deliverableOptions options)void_dependencies(bnd.DependencyOptions opts)void_diff(DiffCommand.diffOptions opts)Diff two jar filesvoid_digest(bnd.hashOptions o)hash a filevoid_do(bnd.dooptions options)The do command interprets files and does a default action for each filevoid_eclipse(bnd.eclipseOptions options)void_ees(bnd.EEOptions options)Show the class versions used in a JARvoid_enroute(EnrouteOptions opts)Run enroute commandsvoid_export(bnd.ExportOptions options)void_extract(bnd.extractOptions opts)void_find(bnd.FindOptions options)void_flatten(bnd.FlattenOptions opts)void_generate(bnd.GenerateOptions options)void_graph(GraphCommand.GraphOptions options)void_grep(bnd.grepOptions opts)void_index(IndexCommand.indexOptions options)Index commandvoid_info(bnd.infoOptions options)void_junit(bnd.testOptions opts)void_macro(bnd.macroOptions options)Show the value of a macrovoid_maven(Options options)Maven commandvoid_package(bnd.packageOptions opts)Package a bnd or bndrun file for packaging.void_packagetoresource(Options options)void_plugins(bnd.projectOptions opts)Show the loaded workspace pluginsvoid_print(bnd.printOptions options)void_profile(bnd.ProfileOptions options)void_project(bnd.projectOptions options)void_properties(bnd.PropertiesOptions options)Print out all the propertiesvoid_release(bnd.releaseOptions options)Release the projectvoid_remove(bnd.RemoveOptions opts)void_repo(RepoCommand.repoOptions opts)Manage the repo.void_run(bnd.runOptions opts)void_runtests(bnd.runtestsOptions opts)Run the tests from a prepared bnd file.void_schema(BaselineCommands.schemaOptions opts)Create a schema of package deltas and versionsvoid_select(bnd.selectOptions opts)void_settings(bnd.settingOptions opts)void_source(bnd.sourceOptions opts)Merge a bundle with its source.void_sync(bnd.projectOptions options)Force a cache update of the workspacevoid_syntax(bnd.syntaxOptions opts)void_test(bnd.testOptions opts)void_type(bnd.typeOptions opts)void_verify(bnd.verifyOptions opts)Verify jars.void_version(bnd.versionOptions o)Show the version of this bndvoid_view(bnd.viewOptions options)View files from JARs We parse the commandline and print each file on it.void_wrap(bnd.wrapOptions options)Wrap a jar to a bundle.void_xref(XRefCommand.xrefOptions options)private voidadd(Jar jar, java.io.File base, java.lang.String path, boolean report)Helper for the jar create function, adds files to the jarprivate voidaddAll(Jar output, Jar sub, java.lang.String prefix, java.util.List<java.lang.String> bundleClassPath)voidbuild(java.lang.String dest, boolean force, java.lang.String path)private WorkspacecalcWorkspace(bnd.ProjectWorkspaceOptions options)private voiddoCoverage(Tag report, org.w3c.dom.Document doc, javax.xml.xpath.XPath xpath)private voiddoHtmlReport(Tag report, java.io.File file, org.w3c.dom.Document doc, javax.xml.xpath.XPath xpath)private voiddoLogging(bnd.bndOptions options)Setup SLF4J logging level.private voiddoPerReport(Tag report, java.io.File file)Calculate the coverage if there is coverage info in the test file.private voiddoRun(java.util.List<java.lang.String> args, boolean verify, java.lang.String project)private static voidexitWithCode(int code)private voidforEachLine(java.lang.String file, java.util.function.Consumer<java.lang.String> c)private java.util.List<Project>getFilteredProjects(bnd.ProjectWorkspaceOptions opts)(package private) JargetJar(java.lang.String s)Central routine to get a JAR with error checkingprivate java.lang.StringgetJarFileNameFrom(java.lang.String name)ProjectgetProject()ProjectgetProject(java.lang.String where)private java.io.FilegetPropertiesFile(java.io.File properties, java.io.File file, java.lang.String stem)WorkspacegetWorkspace()WorkspacegetWorkspace(java.io.File workspaceDir)WorkspacegetWorkspace(java.lang.String where)protected bnd.HandledProjectWorkspaceOptionshandleOptions(bnd.ProjectWorkspaceOptions options, java.lang.String... defaultIncludes)private booleanisIn(java.lang.String[] bundleSpecificHeaders, java.lang.String key)private booleanisWorkspaceOk()private voidlist(java.util.Collection<java.lang.String> keys, java.util.Map<java.lang.String,java.lang.String> map)static voidmain(java.lang.String[] args)(package private) static voidmainNoExit(java.lang.String[] args, java.nio.file.Path baseExecDir)For testingvoidpatch(bnd.patchOptions opts)voidperProject(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run)voidperProject(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run, boolean manageDeps)private voidprebuild(java.util.List<java.lang.String> set, java.util.List<java.lang.String> order, java.util.List<Builder> builders, java.lang.String s)private voidprint(java.util.Formatter f, Syntax sx, java.lang.String indent)private voidreport(Justif justif, java.lang.String string, Processor processor)private voidrewrite(java.util.List<java.lang.String> args)Rewrite the command line to mimic the jar commandprivate voidrewriteJarCmd(java.util.List<java.lang.String> args)private intrunTest(java.io.File testFile, java.lang.String[] tests, Workspace testws, java.io.File reportDir, Tag summary)Help function to run the testsvoidstart(java.lang.String[] args)private java.io.FiletoFile(Container c)private java.lang.Stringtos(boolean hex, byte[] data)Set the private key in the settings for this machineprivate booleanverifyDependencies(Project project, boolean implies, boolean test)-
Methods inherited from class aQute.bnd.osgi.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, getChecksum, getClass, getDuration, getErrors, getExecutor, getFile, getFile, getFlattenedProperties, getFlattenedProperties, getHeader, getHeader, getHeader, getHeader, getIncluded, getInfo, getInfo, getInstructions, getJarFromName, getJavaExecutable, getLine, getLoader, getLocation, getLogger, getMacroDomains, 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, isInteractive, isMissingPlugin, isOk, isPedantic, isPerfect, isTrace, isTrue, iterator, join, join, join, join, join, join, keySet, lastModified, loadPlugins, 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, propertiesChanged, quote, read, refresh, removeBasicPlugin, removeClose, removeDuplicateMarker, replaceAll, replaceExtension, report, report, set, setBase, setExceptions, setFileMustExist, setForceLocal, setLocation, setParent, setPedantic, setProperties, setProperties, setProperties, setProperties, setProperty, setTrace, setTypeSpecificPlugins, signal, since, split, split, split, spliterator, system, system, toFullHeaderPattern, toString, trace, unsetProperty, updateModified, use, warning
-
Methods inherited from class aQute.bnd.osgi.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 Detail
-
logger
private static org.slf4j.Logger logger
-
ASSIGNMENT
private static final java.util.regex.Pattern ASSIGNMENT
-
settings
Settings settings
-
err
final java.io.PrintStream err
-
out
public final java.io.PrintStream out
-
justif
Justif justif
-
messages
BndMessages messages
-
ws
private Workspace ws
-
password
private char[] password
-
workspace
private Workspace workspace
-
noExit
private static final java.lang.ThreadLocal<java.lang.Boolean> noExit
-
DEFAULT_LOG_LEVEL_KEY
private static final java.lang.String DEFAULT_LOG_LEVEL_KEY
- See Also:
- Constant Field Values
-
JARCOMMANDS
private static final java.util.regex.Pattern JARCOMMANDS
-
COMMAND
private static final java.util.regex.Pattern COMMAND
-
BND_BND
static final java.lang.String BND_BND
- See Also:
- Constant Field Values
-
BNDRUN_ALL
static final java.lang.String BNDRUN_ALL
- See Also:
- Constant Field Values
-
BUILD_SOURCES
static final int BUILD_SOURCES
Buildx- See Also:
- Constant Field Values
-
BUILD_POM
static final int BUILD_POM
- See Also:
- Constant Field Values
-
BUILD_FORCE
static final int BUILD_FORCE
- See Also:
- Constant Field Values
-
BUG_P
private static final java.util.regex.Pattern BUG_P
-
BND_COMMAND_P
private static final java.util.regex.Pattern BND_COMMAND_P
-
LINE_P
private static final java.util.regex.Pattern LINE_P
-
-
Constructor Detail
-
bnd
public bnd(Workspace ws)
-
bnd
public bnd()
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
mainNoExit
static void mainNoExit(java.lang.String[] args, java.nio.file.Path baseExecDir) throws java.lang.ExceptionFor testing- Throws:
java.lang.Exception
-
start
public void start(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
rewrite
private void rewrite(java.util.List<java.lang.String> args) throws java.lang.ExceptionRewrite the command line to mimic the jar command- Parameters:
args-- Throws:
java.lang.Exception
-
rewriteJarCmd
private void rewriteJarCmd(java.util.List<java.lang.String> args)
-
_bnd
public void _bnd(bnd.bndOptions options) throws java.lang.Exception
Main command. This has options the bnd base options and will then run another command.- Parameters:
options-- Throws:
java.lang.Exception
-
doLogging
private void doLogging(bnd.bndOptions options)
Setup SLF4J logging level.- Parameters:
options-
-
_create
public void _create(bnd.createOptions options) throws java.lang.Exception
Create jar filejar c[v0M]f jarfile [-C dir] inputfiles [-Joption] jar c[v0]mf manifest jarfile [-C dir] inputfiles [-Joption] jar c[v0M] [-C dir] inputfiles [-Joption] jar c[v0]m manifest [-C dir] inputfiles [-Joption]
- Parameters:
options-- Throws:
java.lang.Exception
-
add
private void add(Jar jar, java.io.File base, java.lang.String path, boolean report) throws java.io.IOException
Helper for the jar create function, adds files to the jar- Parameters:
jar-base-path-report-- Throws:
java.io.IOException
-
_extract
public void _extract(bnd.extractOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_type
public void _type(bnd.typeOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_do
public void _do(bnd.dooptions options) throws java.lang.Exception
The do command interprets files and does a default action for each file- Throws:
java.lang.Exception
-
build
public void build(java.lang.String dest, boolean force, java.lang.String path) throws java.io.IOException, java.lang.Exception- Throws:
java.io.IOExceptionjava.lang.Exception
-
_project
public void _project(bnd.projectOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_bump
public void _bump(bnd.bumpoptions options) throws java.lang.Exception
Bump a version number- Throws:
java.lang.Exception
-
perProject
public void perProject(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run) throws java.lang.Exception
- Throws:
java.lang.Exception
-
perProject
public void perProject(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run, boolean manageDeps) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getFilteredProjects
private java.util.List<Project> getFilteredProjects(bnd.ProjectWorkspaceOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_build
public void _build(bnd.buildoptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_compile
public void _compile(bnd.CompileOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_test
public void _test(bnd.testOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_junit
public void _junit(bnd.testOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
verifyDependencies
private boolean verifyDependencies(Project project, boolean implies, boolean test) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_run
public void _run(bnd.runOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
doRun
private void doRun(java.util.List<java.lang.String> args, boolean verify, java.lang.String project) throws java.lang.Exception- Throws:
java.lang.Exception
-
_clean
public void _clean(bnd.cleanOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_syntax
public void _syntax(bnd.syntaxOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
print
private void print(java.util.Formatter f, Syntax sx, java.lang.String indent)
-
_package
public void _package(bnd.packageOptions opts) throws java.lang.Exception
Package a bnd or bndrun file for packaging.- Throws:
java.lang.Exception
-
_deliverables
public void _deliverables(bnd.deliverableOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_macro
public void _macro(bnd.macroOptions options) throws java.lang.Exception
Show the value of a macro- Throws:
java.lang.Exception
-
_release
public void _release(bnd.releaseOptions options) throws java.lang.Exception
Release the project- Throws:
java.lang.Exception
-
_xref
public void _xref(XRefCommand.xrefOptions options) throws java.io.IOException, java.lang.Exception
- Throws:
java.io.IOExceptionjava.lang.Exception
-
_eclipse
public void _eclipse(bnd.eclipseOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_buildx
public void _buildx(bnd.buildxOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
prebuild
private void prebuild(java.util.List<java.lang.String> set, java.util.List<java.lang.String> order, java.util.List<Builder> builders, java.lang.String s) throws java.io.IOException- Throws:
java.io.IOException
-
_view
public void _view(bnd.viewOptions options) throws java.lang.Exception
View files from JARs We parse the commandline and print each file on it.- Throws:
java.lang.Exception
-
_wrap
public void _wrap(bnd.wrapOptions options) throws java.lang.Exception
Wrap a jar to a bundle.- Throws:
java.lang.Exception
-
getPropertiesFile
private java.io.File getPropertiesFile(java.io.File properties, java.io.File file, java.lang.String stem)
-
_debug
public void _debug(bnd.debugOptions options) throws java.lang.Exception
Printout all the variables in scope.- Throws:
java.lang.Exception
-
report
private void report(Justif justif, java.lang.String string, Processor processor) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_repo
public void _repo(RepoCommand.repoOptions opts) throws java.lang.Exception
Manage the repo.out.println(" bnd repo [--repo|-r ('maven'| <dir>)]*"); out.println(" repos # list the repositories"); out.println(" list # list all content (not always possible)"); out.println(" get <bsn> <version> <file>? # get an artifact"); out.println(" put <file>+ # put in artifacts"); out.println(" help");- Throws:
java.lang.Exception
-
_enroute
public void _enroute(EnrouteOptions opts) throws java.lang.Exception
Run enroute commands- Throws:
java.lang.Exception
-
_print
public void _print(bnd.printOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
patch
public void patch(bnd.patchOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_runtests
public void _runtests(bnd.runtestsOptions opts) throws java.lang.Exception
Run the tests from a prepared bnd file.- Throws:
java.lang.Exception
-
runTest
private int runTest(java.io.File testFile, java.lang.String[] tests, Workspace testws, java.io.File reportDir, Tag summary) throws java.lang.ExceptionHelp function to run the tests- Throws:
java.lang.Exception
-
doPerReport
private void doPerReport(Tag report, java.io.File file) throws java.lang.Exception
Calculate the coverage if there is coverage info in the test file.- Throws:
java.lang.Exception
-
doCoverage
private void doCoverage(Tag report, org.w3c.dom.Document doc, javax.xml.xpath.XPath xpath) throws javax.xml.xpath.XPathExpressionException
- Throws:
javax.xml.xpath.XPathExpressionException
-
doHtmlReport
private void doHtmlReport(Tag report, java.io.File file, org.w3c.dom.Document doc, javax.xml.xpath.XPath xpath) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_verify
public void _verify(bnd.verifyOptions opts) throws java.lang.Exception
Verify jars.- Throws:
java.lang.Exception
-
_source
public void _source(bnd.sourceOptions opts) throws java.lang.Exception
Merge a bundle with its source.- Throws:
java.lang.Exception
-
_diff
public void _diff(DiffCommand.diffOptions opts) throws java.lang.Exception
Diff two jar files- Throws:
java.lang.Exception
-
_baseline
public void _baseline(BaselineCommands.baseLineOptions opts) throws java.lang.Exception
Baseline- Throws:
java.lang.Exception
-
_schema
public void _schema(BaselineCommands.schemaOptions opts) throws java.lang.Exception
Create a schema of package deltas and versions- Throws:
java.lang.Exception
-
getProject
public Project getProject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getWorkspace
public Workspace getWorkspace(java.io.File workspaceDir) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getProject
public Project getProject(java.lang.String where) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getWorkspace
public Workspace getWorkspace(java.lang.String where) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_convert
public void _convert(bnd.convertOptions opts) throws java.io.IOException
- Throws:
java.io.IOException
-
_select
public void _select(bnd.selectOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getJar
Jar getJar(java.lang.String s)
Central routine to get a JAR with error checking- Parameters:
s-
-
_version
public void _version(bnd.versionOptions o) throws java.io.IOException
Show the version of this bnd- Throws:
java.io.IOException
-
_info
public void _info(bnd.infoOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_grep
public void _grep(bnd.grepOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_settings
public void _settings(bnd.settingOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
tos
private java.lang.String tos(boolean hex, byte[] data)Set the private key in the settings for this machine- Parameters:
hex-data-- Throws:
java.lang.Exception
-
list
private void list(java.util.Collection<java.lang.String> keys, java.util.Map<java.lang.String,java.lang.String> map)
-
_digest
public void _digest(bnd.hashOptions o) throws java.security.NoSuchAlgorithmException, java.lang.Exception
hash a file- Throws:
java.lang.Exceptionjava.security.NoSuchAlgorithmException
-
_maven
public void _maven(Options options) throws java.lang.Exception
Maven command- Throws:
java.lang.Exception
-
_bash
public void _bash(Options options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_action
public void _action(bnd.ActionOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_changes
public void _changes(bnd.ChangesOptions options)
-
_find
public void _find(bnd.FindOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
__merge
public void __merge(bnd.MergeOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_ees
public void _ees(bnd.EEOptions options) throws java.lang.Exception
Show the class versions used in a JAR- Throws:
java.lang.Exception
-
__par
public void __par(bnd.ParallelBuildOptions options) throws java.lang.Exception
Lets see if we can build in parallel- Throws:
java.lang.Exception
-
_sync
public void _sync(bnd.projectOptions options) throws java.lang.Exception
Force a cache update of the workspace- Throws:
java.lang.Exception
-
_bsn2url
public void _bsn2url(bnd.Bsn2UrlOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_plugins
public void _plugins(bnd.projectOptions opts) throws java.lang.Exception
Show the loaded workspace plugins- Throws:
java.lang.Exception
-
_dependencies
public void _dependencies(bnd.DependencyOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_bootstrap
public void _bootstrap(bnd.BootstrapOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_defaults
public void _defaults(Options o)
Show all the defaults in bnd
-
_copy
public void _copy(bnd.CopyOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isIn
private boolean isIn(java.lang.String[] bundleSpecificHeaders, java.lang.String key)
-
getJarFileNameFrom
private java.lang.String getJarFileNameFrom(java.lang.String name)
-
_add
public void _add(bnd.AddOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_remove
public void _remove(bnd.RemoveOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_profile
public void _profile(bnd.ProfileOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_export
public void _export(bnd.ExportOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
handleOptions
protected bnd.HandledProjectWorkspaceOptions handleOptions(bnd.ProjectWorkspaceOptions options, java.lang.String... defaultIncludes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
calcWorkspace
private Workspace calcWorkspace(bnd.ProjectWorkspaceOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_flatten
public void _flatten(bnd.FlattenOptions opts) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_collect
public void _collect(bnd.CollectOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_classtoresource
public void _classtoresource(Options options) throws java.io.IOException
- Throws:
java.io.IOException
-
_packagetoresource
public void _packagetoresource(Options options) throws java.io.IOException
- Throws:
java.io.IOException
-
forEachLine
private void forEachLine(java.lang.String file, java.util.function.Consumer<java.lang.String> c) throws java.io.IOException- Throws:
java.io.IOException
-
addAll
private void addAll(Jar output, Jar sub, java.lang.String prefix, java.util.List<java.lang.String> bundleClassPath)
-
exitWithCode
private static void exitWithCode(int code)
-
_index
public void _index(IndexCommand.indexOptions options) throws java.lang.Exception
Index command- Throws:
java.lang.Exception
-
_com
public void _com(CommunicationCommands.CommunicationOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isWorkspaceOk
private boolean isWorkspaceOk()
-
_graph
public void _graph(GraphCommand.GraphOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getWorkspace
public Workspace getWorkspace()
-
_properties
public void _properties(bnd.PropertiesOptions options) throws java.lang.Exception
Print out all the properties- Throws:
java.lang.Exception
-
_generate
public void _generate(bnd.GenerateOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_classpath
public void _classpath(bnd.ClasspathOptions options) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toFile
private java.io.File toFile(Container c)
-
-