|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.types.DataType org.apache.avalon.tools.model.Home
A Home is an immutable data object that aggregates a suite of buildable project defintions relative to local and external dependencies.
Field Summary | |
static String |
BANNER
|
static String |
GPG_EXE_KEY
|
static String |
HOME_KEY
|
static String |
HOSTS_KEY
|
static String |
INDEX_KEY
|
static String |
KEY
|
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
protected |
Home(org.apache.tools.ant.Project project,
Magic system,
File index)
Creation of a new home using a supplied index. |
Method Summary | |
Definition |
getDefinition(ResourceRef ref)
Return a definition matching the supplied reference. |
Definition |
getDefinition(String key)
Return a definition matching the supplied key. |
Definition[] |
getDefinitions()
Return all definitions with the home. |
Repository |
getDocsRepository()
Return the immutable docs repository cache descriptor. |
String |
getGumpSignature()
Return the gump build signature. |
File |
getIndex()
Return the index file used to establish this home. |
long |
getIndexLastModified()
Return the last modification time of the index file as a long. |
Plugin |
getPlugin(ResourceRef ref)
Return a plugin matching the supplied reference. |
String |
getProperty(String key)
Return a property declared undr the project that established the root index. |
Repository |
getRepository()
Return the immutable repository descriptor for the main cache. |
Resource |
getResource(ResourceRef ref)
Return a resource matching the supplied reference. |
Resource |
getResource(String key)
Return a resource matching the supplied key. |
Resource[] |
getResources()
Return all of the resource declared within this home. |
boolean |
isaDefinition(ResourceRef ref)
Return TRUE if the suppied resource ref references a project definition. |
boolean |
isaResourceKey(String key)
Return TRUE if the supplied key is the name of a key of a resource declared within this home. |
boolean |
isGump()
Return TRUE if the runtime is initiated by gump. |
Methods inherited from class org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String BANNER
public static final String KEY
public static final String HOME_KEY
public static final String INDEX_KEY
public static final String HOSTS_KEY
public static final String GPG_EXE_KEY
Constructor Detail |
protected Home(org.apache.tools.ant.Project project, Magic system, File index)
project
- the ant project establishing the homesystem
- the magic system instanceindex
- the magic project indexMethod Detail |
public File getIndex()
public long getIndexLastModified()
public String getProperty(String key)
key
- the property key
public boolean isaResourceKey(String key)
key
- the keypublic boolean isGump()
public String getGumpSignature()
public Repository getRepository()
public Repository getDocsRepository()
public Resource[] getResources()
public boolean isaDefinition(ResourceRef ref)
public Definition[] getDefinitions() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public Resource getResource(String key) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the resource is unknownpublic Resource getResource(ResourceRef ref) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the resource is unknownpublic Definition getDefinition(String key) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the definition is unknownpublic Definition getDefinition(ResourceRef ref) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the definition is unknownpublic Plugin getPlugin(ResourceRef ref) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the plugin is unknown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |