Package rife.bld.extension.propertyfile
Class PropertyFileOperation
java.lang.Object
rife.bld.operations.AbstractOperation<PropertyFileOperation>
rife.bld.extension.propertyfile.PropertyFileOperation
Creates or applies edits to a
Properties
file.- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the comment to be inserted at the top of theProperties
file.Adds anentry
to specify modifications to theproperties
file.void
execute()
Performs the modification(s) to theproperties
file.failOnWarning
(boolean failOnWarning) Sets theexecution
to return a failure on any warnings.file()
Retrieves the location of theProperties
file to be edited.Sets the location of theProperties
file to be edited.Sets the location of theProperties
file to be edited.Sets the location of theProperties
file to be edited.fromProject
(BaseProject project) Creates a new operation.Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Constructor Details
-
PropertyFileOperation
public PropertyFileOperation()
-
-
Method Details
-
comment
Sets the comment to be inserted at the top of theProperties
file.- Parameters:
comment
- the header comment- Returns:
- this instance
-
entry
Adds anentry
to specify modifications to theproperties
file.- Parameters:
entry
- theentry
- Returns:
- this instance
-
execute
Performs the modification(s) to theproperties
file.- Specified by:
execute
in classAbstractOperation<PropertyFileOperation>
- Throws:
Exception
-
failOnWarning
Sets theexecution
to return a failure on any warnings.- Parameters:
failOnWarning
- if set totrue
, the execution will fail on any warnings.- Returns:
- this instance
-
file
Sets the location of theProperties
file to be edited.- Parameters:
file
- the file to be edited- Returns:
- this instance
-
file
Sets the location of theProperties
file to be edited.- Parameters:
file
- the file to be edited- Returns:
- this instance
-
file
Retrieves the location of theProperties
file to be edited.- Returns:
- the properties file
-
file
Sets the location of theProperties
file to be edited.- Parameters:
file
- the file to be edited- Returns:
- this instance
-
fromProject
Creates a new operation.- Parameters:
project
- the project- Returns:
- this instance
-