|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.util.build.PropertyFileGenerator
This class is used as ant task backend for the generation of a property file by use of a template file.
| Constructor Summary | |
PropertyFileGenerator()
|
|
| Method Summary | |
void |
execute(PropertyGetter props)
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.String |
getCustom()
Return the absoute path to the customFile, or null, if no path has been set. |
java.lang.String |
getTemplate()
Return the absolute path to the templateFile, or null, if no template file has been set. |
boolean |
setCustom(java.lang.String theCustomPath)
Setter: set the path to the final property file. |
boolean |
setProperties(java.lang.String theUserPathes)
Setter: Create a Map of unresolved properties from the files defined in theUserpathes. |
boolean |
setTemplate(java.lang.String theTemplatePath)
Setter: set the path to the template file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertyFileGenerator()
| Method Detail |
public boolean setTemplate(java.lang.String theTemplatePath)
theTemplatePath -
public java.lang.String getTemplate()
public boolean setCustom(java.lang.String theCustomPath)
theCustomPath - public java.lang.String getCustom()
public boolean setProperties(java.lang.String theUserPathes)
public void execute(PropertyGetter props)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||