|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.Project
org.apache.commons.jelly.tags.ant.GrantProject
public class GrantProject
A subclass of an ant Project
which allows
installation of delegators for particular functions.
Current delegation points include:
Field Summary | |
---|---|
private PropsHandler |
propsHandler
Properties delegate. |
Fields inherited from class org.apache.tools.ant.Project |
---|
JAVA_1_0, JAVA_1_1, JAVA_1_2, JAVA_1_3, JAVA_1_4, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, TOKEN_END, TOKEN_START |
Constructor Summary | |
---|---|
GrantProject()
Construct a new, empty GrantProject . |
Method Summary | |
---|---|
void |
copyInheritedProperties(org.apache.tools.ant.Project other)
|
void |
copyUserProperties(org.apache.tools.ant.Project other)
|
java.util.Hashtable |
getProperties()
|
java.lang.String |
getProperty(java.lang.String key)
|
PropsHandler |
getPropsHandler()
Retrieve the currently installed PropsHandler . |
java.util.Hashtable |
getUserProperties()
|
java.lang.String |
getUserProperty(java.lang.String key)
|
java.lang.String |
replaceProperties(java.lang.String value)
|
void |
setBaseDir(java.io.File baseDir)
|
void |
setInheritedProperty(java.lang.String key,
java.lang.String value)
|
void |
setJavaVersionProperty()
|
void |
setNewProperty(java.lang.String key,
java.lang.String value)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
|
void |
setPropsHandler(PropsHandler propsHandler)
Install a PropsHandler delegate. |
void |
setSystemProperties()
|
void |
setUserProperty(java.lang.String key,
java.lang.String value)
|
Methods inherited from class org.apache.tools.ant.Project |
---|
addBuildListener, addDataTypeDefinition, addFilter, addIdReference, addOrReplaceTarget, addOrReplaceTarget, addReference, addTarget, addTarget, addTaskDefinition, checkTaskClass, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, createClassLoader, createClassLoader, createDataType, createSubProject, createTask, defaultInput, demuxFlush, demuxInput, demuxOutput, executeSortedTargets, executeTarget, executeTargets, fireBuildFinished, fireBuildStarted, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireSubBuildFinished, fireSubBuildStarted, fireTargetFinished, fireTargetStarted, fireTaskFinished, fireTaskStarted, getBaseDir, getBuildListeners, getCoreLoader, getDataTypeDefinitions, getDefaultInputStream, getDefaultTarget, getDescription, getElementName, getExecutor, getFilters, getGlobalFilterSet, getInputHandler, getJavaVersion, getName, getProject, getReference, getReferences, getResource, getTargets, getTaskDefinitions, getThreadTask, inheritIDReferences, init, initProperties, initSubProject, isKeepGoingMode, log, log, log, log, log, log, log, registerThreadTask, removeBuildListener, resolveFile, resolveFile, setBasedir, setCoreLoader, setDefault, setDefaultInputStream, setDefaultTarget, setDescription, setExecutor, setFileLastModified, setInputHandler, setKeepGoingMode, setName, setProjectReference, toBoolean, topoSort, topoSort, topoSort, translatePath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PropsHandler propsHandler
Constructor Detail |
---|
public GrantProject()
GrantProject
.
Immediately after initialization, a GrantProject
delegates all calls to the normal ant Project
super class. Only after installing delegators will custom
behavious be acheived.
Method Detail |
---|
public void setPropsHandler(PropsHandler propsHandler)
PropsHandler
delegate.
propsHandler
- The PropsHandler
to install,
or null
to remove any currently installed
PropsHandler
.public PropsHandler getPropsHandler()
PropsHandler
.
PropsHandler
,
or null
if no PropsHandler
had yet to be installed.public java.lang.String replaceProperties(java.lang.String value) throws org.apache.tools.ant.BuildException
replaceProperties
in class org.apache.tools.ant.Project
org.apache.tools.ant.BuildException
public void setProperty(java.lang.String key, java.lang.String value)
setProperty
in class org.apache.tools.ant.Project
public void setUserProperty(java.lang.String key, java.lang.String value)
setUserProperty
in class org.apache.tools.ant.Project
public void setNewProperty(java.lang.String key, java.lang.String value)
setNewProperty
in class org.apache.tools.ant.Project
public void setInheritedProperty(java.lang.String key, java.lang.String value)
setInheritedProperty
in class org.apache.tools.ant.Project
public java.lang.String getProperty(java.lang.String key)
getProperty
in class org.apache.tools.ant.Project
public java.lang.String getUserProperty(java.lang.String key)
getUserProperty
in class org.apache.tools.ant.Project
public java.util.Hashtable getUserProperties()
getUserProperties
in class org.apache.tools.ant.Project
public java.util.Hashtable getProperties()
getProperties
in class org.apache.tools.ant.Project
public void copyUserProperties(org.apache.tools.ant.Project other)
copyUserProperties
in class org.apache.tools.ant.Project
public void copyInheritedProperties(org.apache.tools.ant.Project other)
copyInheritedProperties
in class org.apache.tools.ant.Project
public void setSystemProperties()
setSystemProperties
in class org.apache.tools.ant.Project
public void setJavaVersionProperty() throws org.apache.tools.ant.BuildException
setJavaVersionProperty
in class org.apache.tools.ant.Project
org.apache.tools.ant.BuildException
public void setBaseDir(java.io.File baseDir) throws org.apache.tools.ant.BuildException
setBaseDir
in class org.apache.tools.ant.Project
org.apache.tools.ant.BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |