Package aQute.bnd.main
Class bnd
java.lang.Object
aQute.bnd.osgi.Domain
aQute.bnd.osgi.Processor
aQute.bnd.main.bnd
- All Implemented Interfaces:
Constants
,Registry
,Report
,Reporter
,Closeable
,AutoCloseable
,Iterable<String>
Utility to make bundles. @version $Revision: 1.14 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface
List actions of the repositories if they implement Actionable and allow them to be executed(package private) static interface
Add a project, workspace, or plugin(package private) static enum
(package private) static interface
(package private) static interface
start a local framework(package private) static interface
From a set of bsns, create a list of urls(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
Show the changes in the releases(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
Convert files(package private) static interface
(package private) static interface
Options for the jar create command.(package private) static interface
(package private) static interface
List all deliverables for this workspace.(package private) static interface
Show the dependencies of all projects(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
Export a bndrun file(package private) static interface
Extract a file from the JAR(package private) static interface
Find a package in the current project or a set of jars(package private) static interface
Flatten a jar(package private) static interface
(package private) static interface
Grep in jars(package private) static interface
(package private) static interface
(package private) static interface
Show some key info of the project(package private) static interface
(package private) static interface
Merge n JARs into a new JAR(package private) static interface
(package private) static interface
(package private) static interface
Patch(package private) static interface
(package private) static interface
Print out a JARstatic interface
Profiles subcmd(package private) static interface
Project command, executes actions.(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
Create a list of file names that match manifest headers bnd select -h Bundle-SymbolicName --where (...) *(package private) static interface
Handle the global settings(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
List the contents of the JAR(package private) static interface
(package private) static interface
static interface
(package private) static interface
(package private) static interface
(package private) static interface
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
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
(package private) static final String
private static final Pattern
(package private) static final String
private static final Pattern
(package private) static final int
(package private) static final int
(package private) static final int
Buildxprivate static final Pattern
private static final String
(package private) final PrintStream
private static final Pattern
(package private) Justif
private static final Pattern
private static org.slf4j.Logger
(package private) BndMessages
private static final ThreadLocal<Boolean>
final PrintStream
private char[]
(package private) Settings
private Workspace
private Workspace
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
__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
Baselinevoid
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
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
Show all the defaults in bndvoid
_deliverables
(bnd.deliverableOptions options) void
void
_diff
(DiffCommand.diffOptions opts) Diff two jar filesvoid
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 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
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
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 void
Helper for the jar create function, adds files to the jarprivate void
void
private Workspace
calcWorkspace
(bnd.ProjectWorkspaceOptions options) private void
doCoverage
(Tag report, Document doc, XPath xpath) private void
doHtmlReport
(Tag report, File file, Document doc, XPath xpath) private void
doLogging
(bnd.bndOptions options) Setup SLF4J logging level.private void
doPerReport
(Tag report, File file) Calculate the coverage if there is coverage info in the test file.private void
private static void
exitWithCode
(int code) private void
forEachLine
(String file, Consumer<String> c) (package private) Jar
Central routine to get a JAR with error checkingprivate String
getJarFileNameFrom
(String name) getProject
(String where) private File
getPropertiesFile
(File properties, File file, String stem) getWorkspace
(File workspaceDir) getWorkspace
(String where) protected bnd.HandledProjectWorkspaceOptions
handleOptions
(bnd.ProjectWorkspaceOptions options, String... defaultIncludes) private boolean
private boolean
private void
static void
(package private) static void
mainNoExit
(String[] args, Path baseExecDir) For testingvoid
patch
(bnd.patchOptions opts) void
perProject
(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run) void
perProject
(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run, boolean manageDeps) private void
private void
private void
private void
Rewrite the command line to mimic the jar commandprivate void
rewriteJarCmd
(List<String> args) private int
Help function to run the testsvoid
private File
private String
tos
(boolean hex, byte[] data) Set the private key in the settings for this machineprivate boolean
verifyDependencies
(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 Details
-
logger
private static org.slf4j.Logger logger -
ASSIGNMENT
-
settings
Settings settings -
err
-
out
-
justif
Justif justif -
messages
BndMessages messages -
ws
-
password
private char[] password -
workspace
-
noExit
-
DEFAULT_LOG_LEVEL_KEY
- See Also:
-
JARCOMMANDS
-
COMMAND
-
BND_BND
- See Also:
-
BNDRUN_ALL
- See Also:
-
BUILD_SOURCES
static final int BUILD_SOURCESBuildx- See Also:
-
BUILD_POM
static final int BUILD_POM- See Also:
-
BUILD_FORCE
static final int BUILD_FORCE- See Also:
-
BUG_P
-
BND_COMMAND_P
-
LINE_P
-
-
Constructor Details
-
bnd
-
bnd
public bnd()
-
-
Method Details
-
main
- Throws:
Exception
-
mainNoExit
For testing- Throws:
Exception
-
start
- Throws:
Exception
-
rewrite
Rewrite the command line to mimic the jar command- Parameters:
args
-- Throws:
Exception
-
rewriteJarCmd
-
_bnd
Main command. This has options the bnd base options and will then run another command.- Parameters:
options
-- Throws:
Exception
-
doLogging
Setup SLF4J logging level.- Parameters:
options
-
-
_create
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:
Exception
-
add
Helper for the jar create function, adds files to the jar- Parameters:
jar
-base
-path
-report
-- Throws:
IOException
-
_extract
- Throws:
Exception
-
_type
- Throws:
Exception
-
_do
The do command interprets files and does a default action for each file- Throws:
Exception
-
build
- Throws:
IOException
Exception
-
_project
- Throws:
Exception
-
_bump
Bump a version number- Throws:
Exception
-
perProject
- Throws:
Exception
-
perProject
public void perProject(bnd.ProjectWorkspaceOptions opts, bnd.PerProject run, boolean manageDeps) throws Exception - Throws:
Exception
-
getFilteredProjects
- Throws:
Exception
-
_build
- Throws:
Exception
-
_compile
- Throws:
Exception
-
_test
- Throws:
Exception
-
_junit
- Throws:
Exception
-
verifyDependencies
- Throws:
Exception
-
_run
- Throws:
Exception
-
doRun
- Throws:
Exception
-
_clean
- Throws:
Exception
-
_syntax
- Throws:
Exception
-
print
-
_package
Package a bnd or bndrun file for packaging.- Throws:
Exception
-
_deliverables
- Throws:
Exception
-
_macro
Show the value of a macro- Throws:
Exception
-
_release
Release the project- Throws:
Exception
-
_xref
- Throws:
IOException
Exception
-
_eclipse
- Throws:
Exception
-
_buildx
- Throws:
Exception
-
prebuild
private void prebuild(List<String> set, List<String> order, List<Builder> builders, String s) throws IOException - Throws:
IOException
-
_view
View files from JARs We parse the commandline and print each file on it.- Throws:
Exception
-
_wrap
Wrap a jar to a bundle.- Throws:
Exception
-
getPropertiesFile
-
_debug
Printout all the variables in scope.- Throws:
Exception
-
report
- Throws:
Exception
-
_repo
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:
Exception
-
_enroute
Run enroute commands- Throws:
Exception
-
_print
- Throws:
Exception
-
patch
- Throws:
Exception
-
_runtests
Run the tests from a prepared bnd file.- Throws:
Exception
-
runTest
private int runTest(File testFile, String[] tests, Workspace testws, File reportDir, Tag summary) throws Exception Help function to run the tests- Throws:
Exception
-
doPerReport
Calculate the coverage if there is coverage info in the test file.- Throws:
Exception
-
doCoverage
- Throws:
XPathExpressionException
-
doHtmlReport
- Throws:
Exception
-
_verify
Verify jars.- Throws:
Exception
-
_source
Merge a bundle with its source.- Throws:
Exception
-
_diff
Diff two jar files- Throws:
Exception
-
_baseline
Baseline- Throws:
Exception
-
_schema
Create a schema of package deltas and versions- Throws:
Exception
-
getProject
- Throws:
Exception
-
getWorkspace
- Throws:
Exception
-
getProject
- Throws:
Exception
-
getWorkspace
- Throws:
Exception
-
_convert
- Throws:
IOException
-
_select
- Throws:
Exception
-
getJar
Central routine to get a JAR with error checking- Parameters:
s
-
-
_version
Show the version of this bnd- Throws:
IOException
-
_info
- Throws:
Exception
-
_grep
- Throws:
Exception
-
_settings
- Throws:
Exception
-
tos
Set the private key in the settings for this machine- Parameters:
hex
-data
-- Throws:
Exception
-
list
-
_digest
hash a file- Throws:
Exception
NoSuchAlgorithmException
-
_maven
Maven command- Throws:
Exception
-
_bash
- Throws:
Exception
-
_action
- Throws:
Exception
-
_changes
-
_find
- Throws:
Exception
-
__merge
- Throws:
Exception
-
_ees
Show the class versions used in a JAR- Throws:
Exception
-
__par
Lets see if we can build in parallel- Throws:
Exception
-
_sync
Force a cache update of the workspace- Throws:
Exception
-
_bsn2url
- Throws:
Exception
-
_plugins
Show the loaded workspace plugins- Throws:
Exception
-
_dependencies
- Throws:
Exception
-
_bootstrap
- Throws:
Exception
-
_defaults
Show all the defaults in bnd -
_copy
- Throws:
Exception
-
isIn
-
getJarFileNameFrom
-
_add
- Throws:
Exception
-
_remove
- Throws:
Exception
-
_profile
- Throws:
Exception
-
_export
- Throws:
Exception
-
handleOptions
protected bnd.HandledProjectWorkspaceOptions handleOptions(bnd.ProjectWorkspaceOptions options, String... defaultIncludes) throws Exception - Throws:
Exception
-
calcWorkspace
- Throws:
Exception
-
_flatten
- Throws:
Exception
-
_collect
- Throws:
Exception
-
_classtoresource
- Throws:
IOException
-
_packagetoresource
- Throws:
IOException
-
forEachLine
- Throws:
IOException
-
addAll
-
exitWithCode
private static void exitWithCode(int code) -
_index
Index command- Throws:
Exception
-
_com
- Throws:
Exception
-
isWorkspaceOk
private boolean isWorkspaceOk() -
_graph
- Throws:
Exception
-
getWorkspace
-
_properties
Print out all the properties- Throws:
Exception
-
_generate
- Throws:
Exception
-
_classpath
- Throws:
Exception
-
toFile
-