Package org.openbravo.test.modularity
Class ExecutionLimitsTest.FakeBuildValidation
- java.lang.Object
-
- org.openbravo.base.ExecutionLimitBaseProcess
-
- org.openbravo.buildvalidation.BuildValidation
-
- org.openbravo.test.modularity.ExecutionLimitsTest.FakeBuildValidation
-
- Enclosing class:
- ExecutionLimitsTest
public class ExecutionLimitsTest.FakeBuildValidation extends BuildValidation
Fake buildValidation with version limits, it simply flags when it is executed
-
-
Field Summary
-
Fields inherited from class org.openbravo.base.ExecutionLimitBaseProcess
log4j
-
-
Constructor Summary
Constructors Constructor Description FakeBuildValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
execute()
This method must be implemented by the BuildValidations, and is used to define the actions that the script itself will take.boolean
executeOnInstall()
This method can be overridden by the subclasses of this class, to specify if they should be executed when installing the dependent module.ExecutionLimits
getBuildValidationLimits()
This method can be overridden by the BuildValidation subclasses, to specify the module and the limit versions to define whether the BuildValidation should be executed or not.-
Methods inherited from class org.openbravo.buildvalidation.BuildValidation
doExecute, getErrors, getExecutionLimits, getTypeName, handleError
-
Methods inherited from class org.openbravo.base.ExecutionLimitBaseProcess
getConnectionProvider, getPropertiesFile, getSourcePath, preExecute
-
-
-
-
Method Detail
-
execute
public List<String> execute()
Description copied from class:BuildValidation
This method must be implemented by the BuildValidations, and is used to define the actions that the script itself will take. This method will be automatically called by the BuildValidationHandler when the validation process is run (at the beginning of a rebuild, before the update.database task). This method needs to return a list of error messages. If one or more error messages are provided, the build will stop, and the messages will be shown to the user. If an empty list is provided, the validation will be considered successful, and the build will continue- Specified by:
execute
in classBuildValidation
- Returns:
- A list of error Strings
-
getBuildValidationLimits
public ExecutionLimits getBuildValidationLimits()
Description copied from class:BuildValidation
This method can be overridden by the BuildValidation subclasses, to specify the module and the limit versions to define whether the BuildValidation should be executed or not.- Overrides:
getBuildValidationLimits
in classBuildValidation
- Returns:
- a ExecutionLimits object which contains the dependent module id and the first and last versions of the module that define the execution logic.
-
executeOnInstall
public boolean executeOnInstall()
Description copied from class:ExecutionLimitBaseProcess
This method can be overridden by the subclasses of this class, to specify if they should be executed when installing the dependent module.- Overrides:
executeOnInstall
in classExecutionLimitBaseProcess
- Returns:
- a boolean that indicates if they should be executed when installing the dependent module.
-
-