|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.freecompany.imp.Index
public class Index
Models the index structure for an individual project.
Field Summary | |
---|---|
protected java.util.List<Dependency> |
dependencies
|
protected java.lang.String |
format
|
protected java.lang.String |
group
|
protected java.lang.String |
name
|
protected java.util.List<Repository> |
repositories
|
protected java.io.File |
src
|
protected java.util.List<AntOverride> |
subprojects
|
protected java.util.List<java.lang.String> |
types
|
protected java.lang.String |
version
|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Index()
|
Method Summary | |
---|---|
void |
addAnt(AntOverride ant)
|
void |
addDependency(Dependency dependency)
|
void |
addRepository(Repository repository)
|
protected void |
buildFileset(java.lang.String name,
java.util.Collection<Dependency> list)
This is an inoptimal solution to building filesets for use in the build system. |
protected void |
buildPath(java.lang.String name,
java.util.Collection<Dependency> list)
For the given list of dependencies ths method builds a corresponding Ant path element which is inserted by reference into the project. |
void |
execute()
Configures this index structure using the values and objects set on this index during the build initialization. |
protected java.lang.String |
getAllowedIndexTypes()
Generates a comma separated list of possible index types. |
java.lang.String |
getGroup()
|
java.lang.String |
getName()
|
java.util.List<AntOverride> |
getSubprojects()
|
java.util.List<java.lang.String> |
getTypes()
|
protected void |
include(java.lang.String name)
|
void |
setFormat(java.lang.String format)
|
void |
setGroup(java.lang.String group)
|
void |
setProject(org.apache.tools.ant.Project project)
|
void |
setSrc(java.io.File src)
|
void |
setTypes(java.lang.String types)
|
protected void |
setupDependencies()
|
protected void |
setupIndexFile()
If this index specifies a source document with the src attribute it will be parsed
according to the format specified. |
protected void |
setupReferences()
Takes the local object sets that have been built up by defining dependencies, resolution tasks and index file parsing and publishes them to the build project context. |
protected void |
setupRepositories()
Sets up any locally defined repositories in the index element. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String version
protected java.util.List<Dependency> dependencies
protected java.util.List<Repository> repositories
protected java.util.List<AntOverride> subprojects
protected java.lang.String name
protected java.lang.String group
protected java.util.List<java.lang.String> types
protected java.lang.String format
protected java.io.File src
Constructor Detail |
---|
public Index()
Method Detail |
---|
public void setProject(org.apache.tools.ant.Project project)
setProject
in class org.apache.tools.ant.ProjectComponent
protected void include(java.lang.String name)
public void execute() throws org.apache.tools.ant.BuildException
type
attribute, a check is made to see if a target for that type is already regsitered in the project. If not,
then the index code will automatically attempt to resolve a template corresponding to the type against the
base module. For example, providing the index type war
will cause the index to search for
any locally definined target named war
or one in any imports in the build file. If none is
found the index will attempt to import the uri #war.template
. This fragment is resolved against
the core module which, if the template is provided with Imp, will maintain an alias mapping that common name to
the specific template version and URI.
After setting up the complete environment for building, this method will finally iterate through the
Imp specific property types to execute them.
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void setupRepositories()
protected void setupIndexFile()
src
attribute it will be parsed
according to the format specified. The information gathered from parsing the index file is added
to that which is specified directly in the index element, except where it is contradictory, in which
case the index file takes presidence.
protected void setupDependencies()
protected void setupReferences()
protected void buildPath(java.lang.String name, java.util.Collection<Dependency> list) throws java.lang.Exception
java.lang.Exception
protected void buildFileset(java.lang.String name, java.util.Collection<Dependency> list) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getAllowedIndexTypes()
public void setGroup(java.lang.String group)
public void setTypes(java.lang.String types)
public void setFormat(java.lang.String format)
public void setSrc(java.io.File src)
public void addAnt(AntOverride ant)
public void addRepository(Repository repository)
public void addDependency(Dependency dependency)
public java.lang.String getName()
public java.lang.String getGroup()
public java.util.List<java.lang.String> getTypes()
public java.util.List<AntOverride> getSubprojects()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |