org.apache.commons.jelly.tags.ant
Class GrantProject

java.lang.Object
  extended byorg.apache.tools.ant.Project
      extended byorg.apache.commons.jelly.tags.ant.GrantProject

public class GrantProject
extends org.apache.tools.ant.Project

A subclass of an ant Project which allows installation of delegators for particular functions.

Current delegation points include:

Author:
bob mcwhirter

Field Summary
 
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, addOrReplaceTarget, addOrReplaceTarget, addReference, addTarget, addTarget, addTaskDefinition, checkTaskClass, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, createClassLoader, createDataType, createTask, defaultInput, demuxFlush, demuxInput, demuxOutput, executeSortedTargets, executeTarget, executeTargets, fireBuildFinished, fireBuildStarted, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireSubBuildFinished, fireSubBuildStarted, fireTargetFinished, fireTargetStarted, fireTaskFinished, fireTaskStarted, getBaseDir, getBuildListeners, getCoreLoader, getDataTypeDefinitions, getDefaultInputStream, getDefaultTarget, getDescription, getElementName, getExecutor, getFilters, getGlobalFilterSet, getInputHandler, getJavaVersion, getName, getReference, getReferences, getTargets, getTaskDefinitions, getThreadTask, init, initSubProject, isKeepGoingMode, 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
 

Constructor Detail

GrantProject

public GrantProject()
Construct a new, empty 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

setPropsHandler

public void setPropsHandler(PropsHandler propsHandler)
Install a PropsHandler delegate.

Parameters:
propsHandler - The PropsHandler to install, or null to remove any currently installed PropsHandler.

getPropsHandler

public PropsHandler getPropsHandler()
Retrieve the currently installed PropsHandler.

Returns:
The currently installed PropsHandler, or null if no PropsHandler had yet to be installed.

replaceProperties

public java.lang.String replaceProperties(java.lang.String value)
                                   throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

setUserProperty

public void setUserProperty(java.lang.String key,
                            java.lang.String value)

setNewProperty

public void setNewProperty(java.lang.String key,
                           java.lang.String value)

setInheritedProperty

public void setInheritedProperty(java.lang.String key,
                                 java.lang.String value)

getProperty

public java.lang.String getProperty(java.lang.String key)

getUserProperty

public java.lang.String getUserProperty(java.lang.String key)

getUserProperties

public java.util.Hashtable getUserProperties()

getProperties

public java.util.Hashtable getProperties()

copyUserProperties

public void copyUserProperties(org.apache.tools.ant.Project other)

copyInheritedProperties

public void copyInheritedProperties(org.apache.tools.ant.Project other)

setSystemProperties

public void setSystemProperties()

setJavaVersionProperty

public void setJavaVersionProperty()
                            throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

setBaseDir

public void setBaseDir(java.io.File baseDir)
                throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.