|
||||||||||
| 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.ow2.jonas.antmodular.bootstrap.BootstrapTask
org.ow2.jonas.antmodular.jonasbase.bootstrap.JTask
org.ow2.jonas.antmodular.jonasbase.bootstrap.PropertyTask
public class PropertyTask
Task that replaces or adds any property in a file located in JONAS_BASE/conf.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.JTask |
|---|
SEPARATORS |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
PropertyTask()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addPropertyStatement(java.lang.String fileName,
PropertyStatement statement)
Add a property statement. |
void |
addPropertyStatement(java.lang.String fileName,
java.lang.String propertyName,
java.lang.String propertyValue,
boolean add)
Add a property statement. |
void |
addPropertyStatements(java.lang.String fileName,
java.util.List<PropertyStatement> vstatements)
Add properties statements. |
void |
execute()
Executes this task. |
| Methods inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.JTask |
|---|
changeValueForKey, changeValueForKey, getConfigurationFile, getDestDir, getLogInfo, setConfigurationFile, setDestDir, setLogInfo, writePropsToFile |
| Methods inherited from class org.ow2.jonas.antmodular.bootstrap.BootstrapTask |
|---|
createClasspath, getBootstraptask, getBootstraptask, getBootstraptask, getDomainName, getJonasRoot, getMaven2Repository, getServerName, getTaskName, setCatalinaHome, setClasspath, setDomainName, setJettyHome, setJonasBase, setJonasRoot, setJvmopts, setServerName, setTaskName |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ow2.jonas.antmodular.jonasbase.bootstrap.BaseTaskItf |
|---|
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo |
| Constructor Detail |
|---|
public PropertyTask()
| Method Detail |
|---|
public void addPropertyStatement(java.lang.String fileName,
java.lang.String propertyName,
java.lang.String propertyValue,
boolean add)
fileName - The file where the property is located.propertyName - name of the propertypropertyValue - value of the propertyadd - if true then, add it, else replace it.
public void addPropertyStatement(java.lang.String fileName,
PropertyStatement statement)
fileName - The file where the property is located.statement - the property statement to add or replace.
public void addPropertyStatements(java.lang.String fileName,
java.util.List<PropertyStatement> vstatements)
fileName - The file where the properties are located.vstatement - the properties statements to add or replace.
public void execute()
throws org.apache.tools.ant.BuildException
execute in interface BaseTaskItfexecute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||