Class execModifiedFiles

Sample class to show how to perform an action for each file updated by the build process.


This class will be registered as a PostProcess observer and will monitor the following events:

  1. Full Build Start
  2. Incremental build for a single file
  3. Full Build End

These events are triggered when:

Inherits

EventManagerObserver

Properties

LOCAL theDescription$="Execute modified files in test environment"  
LOCAL theNotificationFlag=_pvxConstants'_idePostProcess  

Methods

FUNCTION update(initPvxState)  

The logic to create a list of files processed by build, and perform an action for each file

  • Initialize the list of the files when the full build starts
  • In Build Post-Process for each file, add relative path of each output file to the list
  • At end of Full Build, go through the list of files and print relative name to console

ParameterDescription
state A reference to an object of class PvxState