|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.ow2.jonas.ant.BootstrapTask org.ow2.jonas.ant.jonasbase.JTask org.ow2.jonas.ant.jonasbase.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.ant.jonasbase.JTask |
---|
SEPARATORS |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
PropertyTask()
Default constructor. |
Method Summary | |
---|---|
void |
addPropertyStatement(String fileName,
PropertyStatement statement)
Add a property statement. |
void |
addPropertyStatement(String fileName,
String propertyName,
String propertyValue,
boolean add)
Add a property statement. |
void |
addPropertyStatements(String fileName,
List<PropertyStatement> vstatements)
Add properties statements. |
void |
execute()
Executes this task. |
Methods inherited from class org.ow2.jonas.ant.jonasbase.JTask |
---|
changeValueForKey, changeValueForKey, getConfigurationFile, getDestDir, getLogInfo, setConfigurationFile, setDestDir, setLogInfo, writePropsToFile |
Methods inherited from class org.ow2.jonas.ant.BootstrapTask |
---|
createClasspath, 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 |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, 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 |
Methods inherited from interface org.ow2.jonas.ant.jonasbase.BaseTaskItf |
---|
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo |
Constructor Detail |
---|
public PropertyTask()
Method Detail |
---|
public void addPropertyStatement(String fileName, String propertyName, 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(String fileName, PropertyStatement statement)
fileName
- The file where the property is located.statement
- the property statement to add or replace.public void addPropertyStatements(String fileName, 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 BaseTaskItf
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |