Visual COBOL uses an Apache Ant script, .cobolBuild, to build COBOL projects. This script is automatically generated from the .cobolProj project file.
Existing external build scripts such as makefiles, msbuild, shell scripts and others can build COBOL applications using .cobolBuild as an Ant build file.
You can set your own shell scripts as pre-build and post-build events and they will execute as part of the .cobolBuild Ant script before or after compiling.
To set pre-build and post-build events:
If you reference variables within Events, you must prefix any linked resource path variables with ${pathVar. and terminate the variable with }, for example - you must code PROJECT_LOC as ${pathVar.PROJECT_LOC}. Linked resource path variables are defined on the project properties page. Right-click your project, and then click Properties > Resource > Linked Resources. The variables are listed on the Path Variables tab.