|
||||||||||
| 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
public class JTask
Defines a common task.
| Field Summary | |
|---|---|
static java.lang.String |
SEPARATORS
Property separators (4 spaces). |
| 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 | |
|---|---|
JTask()
|
|
| Method Summary | |
|---|---|
void |
changeValueForKey(java.lang.String info,
java.lang.String confDir,
java.lang.String confFile,
java.lang.String property,
java.lang.String name,
boolean add)
Add a value for a specific property in a configuration file. |
void |
changeValueForKey(java.lang.String info,
java.lang.String confDir,
java.lang.String confFile,
java.lang.String property,
java.lang.String name,
java.lang.String separators,
boolean add)
Add a value for a specific property in a configuration file. |
protected java.lang.String |
getConfigurationFile()
|
java.io.File |
getDestDir()
Gets the destination directory. |
java.lang.String |
getLogInfo()
Gets logger info (to be displayed). |
void |
setConfigurationFile(java.lang.String configurationFile)
Sets the configuration file. |
void |
setDestDir(java.io.File destDir)
|
void |
setLogInfo(java.lang.String logInfo)
Set the info to be displayed by the logger. |
void |
writePropsToFile(java.lang.String info,
java.util.Properties props,
java.io.File f)
Write properties object to a file with some logging info. |
| 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, execute, 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 |
|---|
execute, setJonasRoot |
| Field Detail |
|---|
public static final java.lang.String SEPARATORS
| Constructor Detail |
|---|
public JTask()
| Method Detail |
|---|
public void setConfigurationFile(java.lang.String configurationFile)
setConfigurationFile in interface BaseTaskItfconfigurationFile - The configurationFile to set.public void setDestDir(java.io.File destDir)
setDestDir in interface BaseTaskItfdestDir - The destDir to set.public java.lang.String getLogInfo()
getLogInfo in interface BaseTaskItfant.jonasbase.BaseTaskItfpublic void setLogInfo(java.lang.String logInfo)
setLogInfo in interface BaseTaskItflogInfo - information to be displayedant.jonasbase.BaseTaskItfpublic java.io.File getDestDir()
public void writePropsToFile(java.lang.String info,
java.util.Properties props,
java.io.File f)
info - header for loggingprops - Properties to writef - file for writing
public void changeValueForKey(java.lang.String info,
java.lang.String confDir,
java.lang.String confFile,
java.lang.String property,
java.lang.String name,
boolean add)
info - text to be displayed for headerconfDir - configuration directory (can be JONAS_BASE/conf)confFile - configuration file (can be jonas.properties)property - which must be found in confFilename - value for the property to addadd - if true, add it, else replace
public void changeValueForKey(java.lang.String info,
java.lang.String confDir,
java.lang.String confFile,
java.lang.String property,
java.lang.String name,
java.lang.String separators,
boolean add)
info - text to be displayed for headerconfDir - configuration directory (can be JONAS_BASE/conf)confFile - configuration file (can be jonas.properties)property - which must be found in confFilename - value for the property to addseparators - separator using between the property name and the property valueadd - if true, add it, else replaceprotected java.lang.String getConfigurationFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||