|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectaQute.lib.osgi.Processor
aQute.bnd.build.Project
public class Project
This class is NOT threadsafe
| Field Summary | |
|---|---|
static java.lang.String |
BNDCNF
|
static java.lang.String |
BNDFILE
|
| Fields inherited from class aQute.lib.osgi.Processor |
|---|
DEFAULT_PLUGINS, LIST_SPLITTER |
| Constructor Summary | |
|---|---|
Project(Workspace workspace,
java.io.File buildDir)
|
|
Project(Workspace workspace,
java.io.File projectDir,
java.io.File buildFile)
|
|
| Method Summary | |
|---|---|
java.lang.String |
_findfile(java.lang.String[] args)
|
java.lang.String |
_help(java.lang.String[] args)
|
java.lang.String |
_p_allsourcepath(java.lang.String[] args)
|
java.lang.String |
_p_bootclasspath(java.lang.String[] args)
|
java.lang.String |
_p_buildpath(java.lang.String[] args)
|
java.lang.String |
_p_dependson(java.lang.String[] args)
|
java.lang.String |
_p_output(java.lang.String[] args)
|
java.lang.String |
_p_sourcepath(java.lang.String[] args)
|
java.lang.String |
_p_testpath(java.lang.String[] args)
|
java.lang.String |
_project(java.lang.String[] args)
|
java.lang.String |
_repo(java.lang.String[] args)
Macro access to the repository ${repo; |
java.lang.String |
_repos(java.lang.String[] args)
|
void |
action(java.lang.String command)
|
java.io.File[] |
build()
|
java.io.File[] |
build(boolean underTest)
This is the external method that will pre-build any dependencies if it is out of date. |
java.io.File[] |
buildLocal(boolean underTest)
Build without doing any dependency checking. |
void |
bump()
|
void |
bump(java.lang.String mask)
|
void |
clean()
|
void |
deploy()
Deploy the current project to a repository |
void |
deploy(java.io.File file)
Deploy the file (which must be a bundle) into the repository. |
void |
deploy(java.lang.String name,
java.io.File file)
Deploy the file (which must be a bundle) into the repository. |
void |
fillActions(java.util.Map<java.lang.String,Action> all)
|
java.util.Map<java.lang.String,Action> |
getActions()
|
java.util.Collection<java.io.File> |
getAllsourcepath()
|
java.util.Collection<Container> |
getBootclasspath()
|
ProjectBuilder |
getBuilder(ProjectBuilder parent)
Return a new builder that is nicely setup for this project. |
java.io.File[] |
getBuildFiles()
This method must only be called when it is sure that the project has been build before in the same session. |
java.io.File[] |
getBuildFiles(boolean buildIfAbsent)
|
java.util.Collection<Container> |
getBuildpath()
|
long |
getBuildTime()
|
Container |
getBundle(java.lang.String bsn,
java.lang.String range,
int strategyx,
java.util.Map<java.lang.String,java.lang.String> attrs)
Get a bundle from one of the plugin repositories. |
java.util.List<Container> |
getBundles(int strategyx,
java.lang.String spec)
Analyze the header and return a list of files that should be on the build, test or some other path. |
int |
getChanged()
|
Container |
getDeliverable(java.lang.String bsn,
java.util.Map<java.lang.String,java.lang.String> attrs)
Answer the container associated with a given bsn. |
java.util.Collection<Container> |
getDeliverables()
Returns containers for the deliverables of this project. |
java.util.Collection<Project> |
getDependson()
|
protected java.lang.Object[] |
getMacroDomains()
This should be overridden by subclasses to add extra macro command domains on the search list. |
java.lang.String |
getName()
|
java.io.File |
getOutput()
|
ProjectLauncher |
getProjectLauncher()
Get a launcher. |
ProjectTester |
getProjectTester()
|
java.util.Collection<Container> |
getRunbundles()
|
java.util.Collection<Container> |
getRunpath()
|
java.util.Map<java.lang.String,java.lang.String> |
getRunProperties()
|
java.util.Collection<java.lang.String> |
getRunVM()
|
java.util.Collection<java.io.File> |
getSourcePath()
|
java.io.File |
getSrc()
|
Builder |
getSubBuilder(java.io.File bndFile)
Return the builder associated with the give bnd file or null. |
java.util.Collection<? extends Builder> |
getSubBuilders()
Get a list of the sub builders. |
java.io.File |
getTarget()
|
java.util.Collection<Container> |
getTestpath()
|
static Project |
getUnparented(java.io.File propertiesFile)
|
Jar |
getValidJar(java.io.File f)
This methods attempts to turn any jar into a valid jar. |
Jar |
getValidJar(Jar jar,
java.lang.String id)
|
Jar |
getValidJar(java.net.URL url)
|
Workspace |
getWorkspace()
|
boolean |
isCnf()
|
boolean |
isValid()
|
boolean |
lock(java.lang.String reason)
|
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)
|
java.io.File |
release(Jar jar)
|
void |
release(java.lang.String name)
Release. |
void |
release(java.lang.String name,
boolean test)
Release |
java.io.File |
release(java.lang.String name,
Jar jar)
Release |
void |
run()
|
java.io.File |
saveBuild(Jar jar)
|
void |
script(java.lang.String type,
java.lang.String script)
|
void |
setChanged()
|
void |
setDelayRunDependencies(boolean x)
Make this project delay the calculation of the run dependencies. |
void |
test()
|
java.lang.String |
toString()
|
void |
unlock()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BNDFILE
public static final java.lang.String BNDCNF
| Constructor Detail |
|---|
public Project(Workspace workspace,
java.io.File projectDir,
java.io.File buildFile)
throws java.lang.Exception
java.lang.Exception
public Project(Workspace workspace,
java.io.File buildDir)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public static Project getUnparented(java.io.File propertiesFile)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isValid()
public ProjectBuilder getBuilder(ProjectBuilder parent)
throws java.lang.Exception
parent - The project builder to use as parent, use this project if null
java.lang.Exceptionpublic int getChanged()
public void setChanged()
public Workspace getWorkspace()
public java.lang.String toString()
toString in class java.lang.Object
public void prepare()
throws java.lang.Exception
java.lang.Exceptionpublic java.io.File getSrc()
public java.util.List<Container> getBundles(int strategyx,
java.lang.String spec)
throws java.lang.Exception
strategy - STRATEGY_LOWEST or STRATEGY_HIGHESTspec - The header
java.lang.Exception
public java.util.Collection<Project> getDependson()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<Container> getBuildpath()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<Container> getTestpath()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<Container> getRunpath()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<Container> getRunbundles()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<java.io.File> getSourcePath()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<java.io.File> getAllsourcepath()
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<Container> getBootclasspath()
throws java.lang.Exception
java.lang.Exception
public java.io.File getOutput()
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_dependson(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_buildpath(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_testpath(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_sourcepath(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_allsourcepath(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_bootclasspath(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _p_output(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object[] getMacroDomains()
Processor
getMacroDomains in class Processor
public java.io.File release(Jar jar)
throws java.lang.Exception
java.lang.Exception
public java.io.File release(java.lang.String name,
Jar jar)
throws java.lang.Exception
name - The repository namejar -
java.lang.Exception
public void release(boolean test)
throws java.lang.Exception
java.lang.Exception
public void release(java.lang.String name,
boolean test)
throws java.lang.Exception
name - The respository nametest - Run testcases
java.lang.Exception
public Container getBundle(java.lang.String bsn,
java.lang.String range,
int strategyx,
java.util.Map<java.lang.String,java.lang.String> attrs)
throws java.lang.Exception
bsn - The bundle symbolic namerange - The version rangelowest - set to LOWEST or HIGHEST
java.lang.Exception - when something goes wrong
public void deploy(java.lang.String name,
java.io.File file)
throws java.lang.Exception
name - The repository namefile - bundle
java.lang.Exception
public void deploy(java.io.File file)
throws java.lang.Exception
file - bundle
java.lang.Exception
public void deploy()
throws java.lang.Exception
java.lang.Exception
public java.lang.String _repo(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.io.File getTarget()
throws java.lang.Exception
java.lang.Exception
public java.io.File[] build(boolean underTest)
throws java.lang.Exception
underTest -
java.lang.Exception
public java.io.File[] getBuildFiles()
throws java.lang.Exception
java.lang.Exception
public java.io.File[] getBuildFiles(boolean buildIfAbsent)
throws java.lang.Exception
java.lang.Exception
public java.io.File[] buildLocal(boolean underTest)
throws java.lang.Exception
underTest -
java.lang.Exception
public java.io.File saveBuild(Jar jar)
throws java.lang.Exception
java.lang.Exceptionpublic boolean refresh()
refresh in class Processorpublic boolean isCnf()
public void propertiesChanged()
propertiesChanged in class Processorpublic java.lang.String getName()
public java.util.Map<java.lang.String,Action> getActions()
public void fillActions(java.util.Map<java.lang.String,Action> all)
public void release()
throws java.lang.Exception
java.lang.Exception
public void release(java.lang.String name)
throws java.lang.Exception
name - The repository name
java.lang.Exception
public void clean()
throws java.lang.Exception
java.lang.Exception
public java.io.File[] build()
throws java.lang.Exception
java.lang.Exception
public void run()
throws java.lang.Exception
java.lang.Exception
public void test()
throws java.lang.Exception
java.lang.Exception
public Jar getValidJar(java.io.File f)
throws java.lang.Exception
descriptor - in -
java.lang.Exception
public Jar getValidJar(java.net.URL url)
throws java.lang.Exception
java.lang.Exception
public Jar getValidJar(Jar jar,
java.lang.String id)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String _project(java.lang.String[] args)
public void bump(java.lang.String mask)
throws java.io.IOException
java.io.IOException
public void bump()
throws java.io.IOException
java.io.IOException
public void action(java.lang.String command)
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String _findfile(java.lang.String[] args)
public void refreshAll()
public void script(java.lang.String type,
java.lang.String script)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _repos(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.lang.String _help(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public java.util.Collection<Container> getDeliverables()
throws java.lang.Exception
java.lang.Exception
public Builder getSubBuilder(java.io.File bndFile)
throws java.lang.Exception
bndFile - A file pointing to a bnd file.
java.lang.Exception
public Container getDeliverable(java.lang.String bsn,
java.util.Map<java.lang.String,java.lang.String> attrs)
throws java.lang.Exception
bndFile - A file pointing to a bnd file.
java.lang.Exception
public java.util.Collection<? extends Builder> getSubBuilders()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<java.lang.String> getRunVM()
public java.util.Map<java.lang.String,java.lang.String> getRunProperties()
public ProjectLauncher getProjectLauncher()
throws java.lang.Exception
java.lang.Exception
public ProjectTester getProjectTester()
throws java.lang.Exception
java.lang.Exception
public boolean lock(java.lang.String reason)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void unlock()
public long getBuildTime()
throws java.lang.Exception
java.lang.Exceptionpublic void setDelayRunDependencies(boolean x)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||