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