|
||||||||||
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
public class JTask
Defines a common task.
Field Summary | |
---|---|
static String |
SEPARATORS
Property separators (4 spaces). |
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 | |
---|---|
JTask()
|
Method Summary | |
---|---|
protected void |
changeValueForKey(String info,
String confDir,
String confFile,
String property,
String name,
boolean add)
Add a value for a specific property in a configuration file. |
protected void |
changeValueForKey(String info,
String confDir,
String confFile,
String property,
String name,
String separators,
boolean add)
Add a value for a specific property in a configuration file. |
protected String |
getConfigurationFile()
|
File |
getDestDir()
Gets the destination directory. |
String |
getLogInfo()
Gets logger info (to be displayed). |
void |
setConfigurationFile(String configurationFile)
Sets the configuration file. |
void |
setDestDir(File destDir)
|
void |
setLogInfo(String logInfo)
Set the info to be displayed by the logger. |
protected void |
writePropsToFile(String info,
Properties props,
File f)
Write properties object to a file with some logging info. |
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 |
---|
execute, 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 |
---|
execute, setJonasRoot |
Field Detail |
---|
public static final String SEPARATORS
Constructor Detail |
---|
public JTask()
Method Detail |
---|
public void setConfigurationFile(String configurationFile)
setConfigurationFile
in interface BaseTaskItf
configurationFile
- The configurationFile to set.public void setDestDir(File destDir)
setDestDir
in interface BaseTaskItf
destDir
- The destDir to set.public String getLogInfo()
getLogInfo
in interface BaseTaskItf
BaseTaskItf.getLogInfo()
public void setLogInfo(String logInfo)
setLogInfo
in interface BaseTaskItf
logInfo
- information to be displayedBaseTaskItf.setLogInfo(java.lang.String)
public File getDestDir()
protected void writePropsToFile(String info, Properties props, File f)
info
- header for loggingprops
- Properties to writef
- file for writingprotected void changeValueForKey(String info, String confDir, String confFile, String property, 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 replaceprotected void changeValueForKey(String info, String confDir, String confFile, String property, String name, 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 String getConfigurationFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |