| Modifier and Type | Field and Description |
|---|---|
static String |
BNDCNF |
static String |
BNDFILE |
LIST_SPLITTERBLUEPRINT_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_IMMEDIATE, COMPONENT_IMPLEMENTATION, COMPONENT_MODIFIED, COMPONENT_MULTIPLE, COMPONENT_NAME, 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, directives, DONOTCOPY, DUPLICATE_MARKER, DYNAMICIMPORT_PACKAGE, EMBEDDED_REPO, EMPTY, EMPTY_HEADER, EXCLUDE_DIRECTIVE, 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, MAKE, MANDATORY_DIRECTIVE, MANIFEST, METAPACKAGES, METATYPE, NAME_ATTRIBUTE, NAMESECTION, NAMESPACE_STEM, NO_IMPORT_DIRECTIVE, NOANNOTATIONS, NOBUNDLES, NODEFAULTVERSION, NOEXTRAHEADERS, NOMANIFEST, NONE, NOPE, NOUSES, options, OSNAME_ATTRIBUTE, OSVERSION_ATTRIBUTE, PATH_DIRECTIVE, PEDANTIC, PLUGIN, POM, PRESENCE_DIRECTIVE, PRIVATE_DIRECTIVE, PRIVATE_PACKAGE, PROCESSOR_ATTRIBUTE, PROVIDE_DIRECTIVE, PROVIDER_POLICY, RELEASEREPO, REMOVE_ATTRIBUTE_DIRECTIVE, REMOVEHEADERS, REPORTNEWER, REQUIRE_BND, REQUIRE_BUNDLE, RESOLUTION_DIRECTIVE, RESOURCEONLY, RUNBUILDS, RUNBUNDLES, RUNFRAMEWORK, RUNFRAMEWORK_NONE, RUNFRAMEWORK_SERVICES, RUNPATH, RUNPATH_LAUNCHER_DIRECTIVE, RUNPATH_MAIN_DIRECTIVE, RUNPROPERTIES, RUNSTORAGE, RUNSYSTEMPACKAGES, RUNTIMEOUT, RUNTRACE, RUNVM, SAVEMANIFEST, SELECTION_FILTER_ATTRIBUTE, SERVICE_COMPONENT, SET_COMPONENT_DIRECTIVES, SET_COMPONENT_DIRECTIVES_1_1, 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, TOOL, UNDERTEST, USES_DIRECTIVE, USES_USES, VALID_PROPERTY_TYPES, VERBOSE, VERSION_ATTRIBUTE, VERSION_FILTER, VERSIONPOLICY, VERSIONPOLICY_IMPL, VERSIONPOLICY_USES, VISIBILITY_DIRECTIVE, WAB, WABLIB| Constructor and Description |
|---|
Project(Workspace workspace,
File buildDir) |
Project(Workspace workspace,
File projectDir,
File buildFile) |
| Modifier and Type | Method and Description |
|---|---|
String |
_findfile(String[] args) |
String |
_help(String[] args) |
String |
_p_allsourcepath(String[] args) |
String |
_p_bootclasspath(String[] args) |
String |
_p_buildpath(String[] args) |
String |
_p_dependson(String[] args) |
String |
_p_output(String[] args) |
String |
_p_sourcepath(String[] args) |
String |
_p_testpath(String[] args) |
String |
_project(String[] args) |
String |
_repo(String[] args)
Macro access to the repository
${repo;
|
String |
_repos(String[] args) |
void |
action(String command) |
void |
appendPackages(RepositoryPlugin.Strategy strategyx,
String spec,
List<Container> resolvedBundles,
ResolverMode mode)
Calculates the containers required to fulfil the
-buildpackages
instruction, and appends them to the existing list of containers. |
File[] |
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.
|
void |
bump() |
void |
bump(String mask) |
void |
clean() |
void |
deploy()
Deploy the current project to a repository
|
void |
deploy(File file)
Deploy the file (which must be a bundle) into the repository.
|
void |
deploy(String name,
File file)
Deploy the file (which must be a bundle) into the repository.
|
void |
doMavenPom(RepositoryPlugin.Strategy strategyx,
List<Container> result,
String action)
The user selected pom in a path.
|
void |
fillActions(Map<String,Action> all) |
Map<String,Action> |
getActions() |
Collection<File> |
getAllsourcepath() |
Collection<Container> |
getBootclasspath() |
ProjectBuilder |
getBuilder(ProjectBuilder parent)
Return a new builder that is nicely setup for this project.
|
File[] |
getBuildFiles()
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) |
Collection<Container> |
getBuildpath() |
Container |
getBundle(String bsn,
String range,
RepositoryPlugin.Strategy strategy,
Map<String,String> attrs)
Get a bundle from one of the plugin repositories.
|
List<Container> |
getBundles(RepositoryPlugin.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.
|
int |
getChanged() |
Container |
getDeliverable(String bsn,
Map<String,String> attrs)
Answer the container associated with a given bsn.
|
Collection<Container> |
getDeliverables()
Returns containers for the deliverables of this project.
|
Collection<Project> |
getDependson() |
File[] |
getFiles()
Return the files
|
protected Object[] |
getMacroDomains()
This should be overridden by subclasses to add extra macro command
domains on the search list.
|
String |
getName() |
File |
getOutput() |
File |
getOutputFile(String bsn) |
Container |
getPackage(String packageName,
String range,
RepositoryPlugin.Strategy strategyx,
Map<String,String> attrs,
ResolverMode mode)
Find a container to fulfil a package requirement
|
ProjectLauncher |
getProjectLauncher()
Get a launcher.
|
ProjectTester |
getProjectTester() |
boolean |
getRunBuilds() |
Collection<Container> |
getRunbundles() |
Collection<Container> |
getRunpath() |
Map<String,String> |
getRunProperties() |
File |
getRunStorage() |
Collection<String> |
getRunVM() |
Collection<File> |
getSourcePath() |
File |
getSrc() |
Builder |
getSubBuilder(File bndFile)
Return the builder associated with the give bnd file or null.
|
Collection<? extends Builder> |
getSubBuilders()
Get a list of the sub builders.
|
File |
getTarget() |
Collection<Container> |
getTestpath() |
static Project |
getUnparented(File propertiesFile) |
Jar |
getValidJar(File f)
This methods attempts to turn any jar into a valid jar.
|
Jar |
getValidJar(Jar jar,
String id) |
Jar |
getValidJar(URL url) |
Workspace |
getWorkspace() |
boolean |
isCnf() |
boolean |
isNoBundles()
Answer if this project does not have any output
|
boolean |
isStale()
Check if this project needs building.
|
boolean |
isValid() |
boolean |
lock(String reason) |
protected RepositoryPlugin.Strategy |
overrideStrategy(Map<String,String> attrs,
RepositoryPlugin.Strategy useStrategy) |
void |
prepare()
Set up all the paths
|
void |
propertiesChanged() |
boolean |
refresh()
Refresh if we are based on stale data.
|
void |
refreshAll() |
void |
release() |
void |
release(boolean test) |
File |
release(Jar jar) |
void |
release(String name)
Release.
|
void |
release(String name,
boolean test)
Release
|
File |
release(String name,
Jar jar)
Release
|
void |
run() |
File |
saveBuild(Jar jar) |
void |
script(String type,
String script) |
void |
setChanged() |
void |
setDelayRunDependencies(boolean x)
Make this project delay the calculation of the run dependencies.
|
void |
test() |
protected Container |
toContainer(String bsn,
String range,
Map<String,String> attrs,
File result) |
String |
toString() |
void |
unlock() |
_basedir, _random, addBasicPlugin, addClose, addIncluded, addProperties, append, appendPath, begin, beginHandleErrors, clear, close, customize, doAttrbutes, doIncludeFile, endHandleErrors, error, error, exists, forceRefresh, formatArrays, getBase, getClass, getDuration, getErrors, getExecutor, getFile, getFile, getFlattenedProperties, getInfo, getInfo, getManifestAsProperties, getParent, getPlugin, getPlugins, getPlugins, getProperties, getPropertiesFile, getProperty, getProperty, getReplacer, getTop, getWarnings, isDuplicate, isExceptions, isFailOk, isMissingPlugin, isOk, isPedantic, isPerfect, isTrace, isTrue, join, join, join, join, join, lastModified, loadPlugins, loadProperties, makePrintable, merge, merge, mergeProperties, mergeProperties, newHashMap, newList, newList, newMap, newMap, newSet, newSet, normalize, normalize, parseHeader, parseHeader, printClause, printClauses, printClauses, progress, read, removeBasicPlugin, removeDuplicateMarker, replaceAll, setBase, setExceptions, setFileMustExist, setForceLocal, setParent, setPedantic, setProperties, setProperties, setProperties, setProperty, setTrace, setTypeSpecificPlugins, signal, split, split, split, trace, unsetProperty, updateModified, warningpublic static final String BNDFILE
public static final String BNDCNF
public Project(Workspace workspace, File projectDir, File buildFile) throws Exception
Exceptionpublic static Project getUnparented(File propertiesFile) throws Exception
Exceptionpublic boolean isValid()
public ProjectBuilder getBuilder(ProjectBuilder parent) throws Exception
parent - The project builder to use as parent, use this project if nullExceptionpublic int getChanged()
public void setChanged()
public Workspace getWorkspace()
public File getSrc()
public List<Container> getBundles(RepositoryPlugin.Strategy strategyx, String spec, String source) throws Exception
strategy - STRATEGY_LOWEST or STRATEGY_HIGHESTspec - The headerExceptionpublic void appendPackages(RepositoryPlugin.Strategy strategyx, String spec, List<Container> resolvedBundles, ResolverMode mode) throws Exception
-buildpackages
instruction, and appends them to the existing list of containers.strategyx - The package-version disambiguation strategy.spec - The value of the @{code -buildpackages} instruction.Exceptionpublic Container getPackage(String packageName, String range, RepositoryPlugin.Strategy strategyx, Map<String,String> attrs, ResolverMode mode) throws Exception
packageName - The package requiredrange - The package version range requiredstrategyx - The package-version disambiguation strategyattrs - Other attributes specified by the search.Exceptionpublic void doMavenPom(RepositoryPlugin.Strategy strategyx, List<Container> result, String action) throws Exception
strategyx - the strategy to use.result - The list of result containersattrs - The attributesException - anything goes wrongpublic Collection<Project> getDependson() throws Exception
Exceptionpublic Collection<Container> getBuildpath() throws Exception
Exceptionpublic Collection<Container> getTestpath() throws Exception
Exceptionpublic Collection<Container> getRunpath() throws Exception
Exceptionpublic Collection<Container> getRunbundles() throws Exception
Exceptionpublic boolean getRunBuilds()
public Collection<File> getSourcePath() throws Exception
Exceptionpublic Collection<File> getAllsourcepath() throws Exception
Exceptionpublic Collection<Container> getBootclasspath() throws Exception
Exceptionprotected Object[] getMacroDomains()
ProcessorgetMacroDomains in class Processorpublic File release(String name, Jar jar) throws Exception
name - The repository namejar - Exceptionpublic void release(String name, boolean test) throws Exception
name - The respository nametest - Run testcasesExceptionpublic Container getBundle(String bsn, String range, RepositoryPlugin.Strategy strategy, Map<String,String> attrs) throws Exception
bsn - The bundle symbolic namerange - The version rangelowest - set to LOWEST or HIGHESTException - when something goes wrongprotected RepositoryPlugin.Strategy overrideStrategy(Map<String,String> attrs, RepositoryPlugin.Strategy useStrategy)
attrs - useStrategy - protected Container toContainer(String bsn, String range, Map<String,String> attrs, File result)
bsn - range - attrs - result - public void deploy(String name, File file) throws Exception
name - The repository namefile - bundleExceptionpublic void deploy(File file) throws Exception
file - bundleExceptionpublic void deploy()
throws Exception
Exceptionpublic String _repo(String[] args) throws Exception
Exceptionpublic File[] build(boolean underTest) throws Exception
underTest - Exceptionpublic File[] getFiles()
public boolean isStale()
throws Exception
Exceptionpublic File[] getBuildFiles() throws Exception
Exceptionpublic File[] buildLocal(boolean underTest) throws Exception
underTest - Exceptionpublic boolean isNoBundles()
public boolean refresh()
public boolean isCnf()
public void propertiesChanged()
propertiesChanged in class Processorpublic String getName()
public void release(String name) throws Exception
name - The repository nameExceptionpublic Jar getValidJar(File f) throws Exception
descriptor - in - Exceptionpublic void bump(String mask) throws IOException
IOExceptionpublic void bump()
throws IOException
IOExceptionpublic void refreshAll()
public Collection<Container> getDeliverables() throws Exception
Exceptionpublic Builder getSubBuilder(File bndFile) throws Exception
bndFile - A file pointing to a bnd file.Exceptionpublic Container getDeliverable(String bsn, Map<String,String> attrs) throws Exception
bndFile - A file pointing to a bnd file.Exceptionpublic Collection<? extends Builder> getSubBuilders() throws Exception
Exceptionpublic Collection<String> getRunVM()
public ProjectLauncher getProjectLauncher() throws Exception
Exceptionpublic ProjectTester getProjectTester() throws Exception
Exceptionpublic boolean lock(String reason) throws InterruptedException
InterruptedExceptionpublic void unlock()
public void setDelayRunDependencies(boolean x)
Copyright © 2015 aQute SARL. All Rights Reserved.