Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Actions and Targets

FinalBuilder projects have one or more Action Lists Targets, which in turn contain Actions to perform the build. Each action represents one step in the process, by performing a task such as copying files, creating directories, etc.

Image Removed

...

Image Added


Default Target

By default each FinalBuilder project has a Main Action List and an OnFailure Action ListDefault Target.  The project starts at the first enabled action in the Main action list, if Default Target. If an error occurs then it can be either handled by Try Catch Actions, or . If not handle the build will switch to the OnFailure Action List (assuming it is not empty) and continue from there. You can think of the OnFailure Action List as a global error handler, it is from here you can perform cleanup tasks when a build fails, such as deleting temporary or intermediate files etc.

User Action Lists

terminate reporting the error which caused it to terminate. In a change from previous versions of FinalBuilder the developer of the build script is responsible for handling all error conditions as required. Previous versions of FinalBuilder had a global error handler Target which would be caused if an unhandled error caused the build to stop.  

User Targets

In addition to the Default TargetIn addition to the default Action Lists, FinalBuilder also allows you to define custom Action Lists additional Targets for each project, which can then be run using the Run Action List action.

See Also

Working with the Action Types Panel | Action Lists

. These can be called with the Run Target Action. Targets are ideal for grouping sets of actions which are to be performed as a group, or called multiple times with in the script. The greatest benefit of FinalBuilder is the ability to call the command line execution with the list of targets required to be performed for the current run of the script. This means Targets such as Clean, Build, Rebuild, Deploy, RunTests, and BuildHelp could all be created in the one script and each picked as required for the build required at any future point in time. 

Targets can also define dependencies, so for example a Build target could depend on a Clean Target - when the Build target is invoked, the Clean Target will automatically be invoked before Build. 

See Also

Actions Tab | Targets