|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.util.OverwriteProperties
public class OverwriteProperties
Task to overwrite Properties: used for JRP, TRP and Torque.properties
Field Summary | |
---|---|
protected ArrayList |
baseArray
An array of all the properties |
protected HashMap |
baseMap
Description of the Field |
protected File |
baseProperties
The file to merge properties into |
protected File |
includeRoot
The directory to look in for include files |
protected String |
lineSeparator
What to use as a line seperator |
protected File |
properties
The file to pull the properties from |
protected ArrayList |
removeArray
An array of all the properties that will be removed |
boolean |
verbose
Description of the Field |
Constructor Summary | |
---|---|
OverwriteProperties()
|
Method Summary | |
---|---|
void |
execute()
Description of the Method |
File |
getBaseProperties()
Return the file to merge propertie into |
File |
getIncludeRoot()
Gets the includeRoot attribute of the OverwriteProperties object |
File |
getProperties()
Gets the properties attribute of the OverwriteProperties object |
boolean |
getVerbose()
Gets the verbose attribute of the OverwriteProperties object |
static void |
main(String[] args)
The main program for the OverwriteProperties class |
void |
readProperties(File propFile,
int index)
Reads in the properties from the specified file |
boolean[] |
removeProperties()
Description of the Method |
void |
setBaseProperties(File baseProperties)
Sets the file to merge properties into |
void |
setIncludeRoot(File includeRoot)
Sets the directory to look for includes in. |
void |
setProperties(File properties)
Sets the file to pull properties from |
void |
setVerbose(boolean verbose)
Sets whether to output extra debugging info |
void |
writeToFile(boolean[] flags)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File baseProperties
protected File properties
protected File includeRoot
public boolean verbose
protected ArrayList baseArray
protected ArrayList removeArray
protected HashMap baseMap
protected String lineSeparator
Constructor Detail |
---|
public OverwriteProperties()
Method Detail |
---|
public void setBaseProperties(File baseProperties)
baseProperties
- The file path to merge properties intopublic void setProperties(File properties)
properties
- The file path to the pull the merge properties frompublic void setIncludeRoot(File includeRoot)
includeRoot
- the directory to look in.public void setVerbose(boolean verbose)
verbose
- The new verbose valuepublic File getBaseProperties()
public File getProperties()
public File getIncludeRoot()
public boolean getVerbose()
public static void main(String[] args) throws Exception
args
- The command line arguments
Exception
- Description of the Exceptionpublic void execute() throws FileNotFoundException, IOException, SecurityException
FileNotFoundException
IOException
SecurityException
public void writeToFile(boolean[] flags) throws FileNotFoundException, IOException
flags
- Description of the Parameter
FileNotFoundException
- Description of the Exception
IOException
- Description of the Exceptionpublic boolean[] removeProperties()
public void readProperties(File propFile, int index) throws FileNotFoundException, IOException
propFile
- Description of the Parameterindex
- Description of the Parameter
FileNotFoundException
- Description of the Exception
IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |