|
|||||||||||
| 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.tigris.scarab.util.build.AntPropertyFileGenerator
This class is used as ant task backend for the generation of a property file by use of a template file.
| Field Summary |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
AntPropertyFileGenerator()
|
|
| Method Summary | |
void |
execute()
Read the templateFile and behave according to following rule set: rule 1: Copy every line, which does NOT contain a property verbatim to the customFile. |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object def)
This is the method by which the generator can retrieve property values. |
void |
setCustom(java.lang.String theCustomPath)
Setter: set the path to the final property file. |
void |
setProperties(java.lang.String thePropertyFilePathes)
Setter: set the path to the final property file. |
void |
setTemplate(java.lang.String theTemplatePath)
|
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AntPropertyFileGenerator()
| Method Detail |
public void setTemplate(java.lang.String theTemplatePath)
public void setCustom(java.lang.String theCustomPath)
theCustomPath - public void setProperties(java.lang.String thePropertyFilePathes)
public void execute()
public java.lang.Object getProperty(java.lang.String name,
java.lang.Object def)
getProperty in interface PropertyGettername -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||