|
||||||||||
| 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 String |
BNDCNF
|
static String |
BNDFILE
|
| Fields inherited from class aQute.lib.osgi.Processor |
|---|
DEFAULT_PLUGINS, LIST_SPLITTER |
| Constructor Summary | |
|---|---|
Project(Workspace workspace,
File buildDir)
|
|
Project(Workspace workspace,
File projectDir,
File buildFile)
|
|
| Method Summary | |
|---|---|
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)
|
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(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 |
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. |
Collection<Container> |
getBuildpath()
|
Container |
getBundle(String bsn,
String range,
int strategy,
Map<String,String> attrs)
Get a bundle from one of the plugin repositories. |
List<Container> |
getBundles(int strategy,
String spec)
Analyze the header and return a list of files that should be on the build, test or some other path. |
int |
getChanged()
|
Collection<Project> |
getDependson()
|
protected Object[] |
getMacroDomains()
This should be overridden by subclasses to add extra macro command domains on the search list. |
String |
getName()
|
File |
getOutput()
|
Collection<Container> |
getRunbundles()
|
Collection<Container> |
getRunpath()
|
Collection<File> |
getSourcepath()
|
File |
getSrc()
|
File |
getTarget()
|
static Project |
getUnparented(File propertiesFile)
|
Jar |
getValidJar(File f)
This methods attempts to turn any jar into a valid jar. |
Workspace |
getWorkspace()
|
boolean |
isCnf()
|
boolean |
isValid()
|
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 |
script(String type,
String script)
|
void |
setChanged()
|
boolean |
test()
|
boolean |
test(File f)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String BNDFILE
public static final String BNDCNF
| Constructor Detail |
|---|
public Project(Workspace workspace,
File projectDir,
File buildFile)
throws Exception
Exception
public Project(Workspace workspace,
File buildDir)
throws Exception
Exception| Method Detail |
|---|
public 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 null
Exceptionpublic int getChanged()
public void setChanged()
public Workspace getWorkspace()
public String toString()
toString in class Object
public void prepare()
throws Exception
Exceptionpublic File getSrc()
public List<Container> getBundles(int strategy,
String spec)
throws Exception
strategy - STRATEGY_LOWEST or STRATEGY_HIGHESTspec - The header
Exception
public Collection<Project> getDependson()
throws Exception
Exception
public Collection<Container> getBuildpath()
throws Exception
Exception
public Collection<Container> getRunpath()
throws Exception
Exception
public Collection<Container> getRunbundles()
throws Exception
Exception
public Collection<File> getSourcepath()
throws Exception
Exception
public Collection<File> getAllsourcepath()
throws Exception
Exception
public Collection<Container> getBootclasspath()
throws Exception
Exception
public File getOutput()
throws Exception
Exception
public String _p_dependson(String[] args)
throws Exception
Exception
public String _p_buildpath(String[] args)
throws Exception
Exception
public String _p_testpath(String[] args)
throws Exception
Exception
public String _p_sourcepath(String[] args)
throws Exception
Exception
public String _p_allsourcepath(String[] args)
throws Exception
Exception
public String _p_bootclasspath(String[] args)
throws Exception
Exception
public String _p_output(String[] args)
throws Exception
Exceptionprotected Object[] getMacroDomains()
Processor
getMacroDomains in class Processor
public File release(Jar jar)
throws Exception
Exception
public File release(String name,
Jar jar)
throws Exception
name - The repository namejar -
Exception
public void release(boolean test)
throws Exception
Exception
public void release(String name,
boolean test)
throws Exception
name - The respository nametest - Run testcases
Exception
public Container getBundle(String bsn,
String range,
int strategy,
Map<String,String> attrs)
throws Exception
bsn - The bundle symbolic namerange - The version rangelowest - set to LOWEST or HIGHEST
Exception - when something goes wrong
public void deploy(String name,
File file)
throws Exception
name - The repository namefile - bundle
Exception
public void deploy(File file)
throws Exception
file - bundle
Exception
public String _repo(String[] args)
throws Exception
Exception
public File getTarget()
throws Exception
Exception
public File[] build(boolean underTest)
throws Exception
underTest -
Exception
public File[] getBuildFiles()
throws Exception
Exception
public File[] buildLocal(boolean underTest)
throws Exception
underTest -
Exceptionpublic boolean refresh()
refresh in class Processorpublic boolean isCnf()
public void propertiesChanged()
propertiesChanged in class Processorpublic String getName()
public Map<String,Action> getActions()
public void fillActions(Map<String,Action> all)
public void release()
throws Exception
Exception
public void release(String name)
throws Exception
name - The repository name
Exception
public void clean()
throws Exception
Exception
public File[] build()
throws Exception
Exception
public boolean test()
throws Exception
Exception
public boolean test(File f)
throws Exception
Exception
public Jar getValidJar(File f)
throws Exception
name - in -
Exceptionpublic String _project(String[] args)
public void bump(String mask)
throws IOException
IOException
public void bump()
throws IOException
IOException
public void action(String command)
throws Exception
Exceptionpublic String _findfile(String[] args)
public void refreshAll()
public void script(String type,
String script)
throws Exception
Exception
public String _repos(String[] args)
throws Exception
Exception
public String _help(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||