| org.objectweb.jonas.ant.BootstrapTask org.objectweb.jonas.ant.jonasbase.JTask
All known Subclasses: org.objectweb.jonas.ant.jonasbase.Dbm, org.objectweb.jonas.ant.jonasbase.JmsRa, org.objectweb.jonas.ant.jonasbase.Db, org.objectweb.jonas.ant.jonasbase.XMLSerializerTask, org.objectweb.jonas.ant.jonasbase.Services, org.objectweb.jonas.ant.jonasbase.Mail, org.objectweb.jonas.ant.jonasbase.JdbcRa, org.objectweb.jonas.ant.jonasbase.wsdl.WsdlPublish,
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) | protected String | getConfigurationFile() | public File | getDestDir() | public String | getLogInfo() | public void | setConfigurationFile(String configurationFile) | public void | setDestDir(File destDir) | public void | setLogInfo(String logInfo) | protected void | writePropsToFile(String info, Properties props, File f) |
SEPARATORS | final public static String SEPARATORS(Code) | | Property separators (4 spaces)
|
changeValueForKey | protected void changeValueForKey(String info, String confDir, String confFile, String property, String name, boolean add)(Code) | | Add a value for a specific property in a configuration file.
The separator uses between the property name and the property value is the default separator value.
Parameters: info - text to be displayed for header Parameters: confDir - configuration directory (can be JONAS_BASE/conf) Parameters: confFile - configuration file (can be jonas.properties) Parameters: property - which must be found in confFile Parameters: name - value for the property to add Parameters: add - if true, add it, else replace |
changeValueForKey | protected void changeValueForKey(String info, String confDir, String confFile, String property, String name, String separators, boolean add)(Code) | | Add a value for a specific property in a configuration file
Parameters: info - text to be displayed for header Parameters: confDir - configuration directory (can be JONAS_BASE/conf) Parameters: confFile - configuration file (can be jonas.properties) Parameters: property - which must be found in confFile Parameters: name - value for the property to add Parameters: separators - separator using between the property name and the property value Parameters: add - if true, add it, else replace |
getConfigurationFile | protected String getConfigurationFile()(Code) | | the configurationFile. |
getDestDir | public File getDestDir()(Code) | | Gets the destination directory
the destination directory |
setConfigurationFile | public void setConfigurationFile(String configurationFile)(Code) | | Sets the configuration file
Parameters: configurationFile - The configurationFile to set. |
setDestDir | public void setDestDir(File destDir)(Code) | | Parameters: destDir - The destDir to set. |
writePropsToFile | protected void writePropsToFile(String info, Properties props, File f)(Code) | | Write properties object to a file with some logging info
Parameters: info - header for logging Parameters: props - Properties to write Parameters: f - file for writing |
|
|