Creating a build process in Ant
- Last Updated: October 24, 2025
- 1 minute read
- Corticon
- Documentation
Corticon provides Ant
macros for the corticonManagement command line utilities
in the file [CORTICON_HOME]\Server\lib\corticonAntMacros.xml
. You can download and install Apache Ant, and then add its /lib to your global path and set its /bin to ANT_HOME.
Note: The Ant process needs to set the
environment for
CORTICON_HOME and CORTICON_WORK_DIR so that the macros can locate the
necessary libraries and have the scratch location for temporary files. To do this, run
C:\Progress\Corticon
7.x\Utilities\bin\corticon_env.bat before running Ant.Compile
Arguments for the compile macro:
<attribute name="input" default=""/>
<attribute name="output" default="" />
<attribute name="service" default="" />
<attribute name="version" default="false" />
<attribute name="edc" default="false" />
<attribute name="failonerror" default="false" />
<attribute name="dependentjars" default="" />
<attribute name="includedjars" default="" />
<attribute name="toplevelentities" default="" />
Example of a call to the compile macro:
<corticon-compile
input="${project.home}/Order.erf"
output="${project.home}"
service="OrderProcessing"
dependentjars="${project.home}/myExtensions.jar ${project.home}/myCallouts.jar"
includedjars="${project.home}/myExtensions.jar ${project.home}/myCallouts.jar"
toplevelentities="Item,Order" />
Multicompile
Arguments for the multiCompile macro:
<attribute name="input" default=""/>
<attribute name="failonerror" default="false"/>
Schema
Arguments for the schema macro:
<attribute name="input" default=""/>
<attribute name="output" default="" />
<attribute name="service" default="" />
<attribute name="type" default="" />
<attribute name="messagestyle" default="" />
<attribute name="url" default="" />
<attribute name="failonerror" default="false" />
Example of a call to the schema macro:
<corticon-schema
input="${project.home}/Order.erf"
output="${project.home}"
service="OrderProcessing"
type="WSDL"
url="http://localhost:8850/axis"
messagestyle="HIER"
/>
Test
Arguments for the test macro:
<attribute name="input" default=""/>
<attribute name="output" default="" />
<attribute name="all" default="false" />
<attribute name="sheet" default="" />
<attribute name="loglevel" default="" />
<attribute name="logpath" default="" />
<attribute name="failonerror" default="false" />
Example of a call to the test macro:
<corticon-test
input="${project.home}/Order.ert"
output="${project.home}/TestResults.xml"
all="true" />
Additional properties
<property name="corticon.compile.maxmem" value="512m" />
<property name="corticon.compile.permgen" value="64m" />
Loading the macros into another build file
You can load the macro file into another build file by using the
following import syntax:
<import file="${env.CORTICON_HOME}/Server/lib/corticonAntMacros.xml " />