Try OpenEdge Now
skip to main content
Online Help
Overview of Progress Application Server for OpenEdge : References : Using Apache Ant tasks : Generating a Data Object Service Catalog file
Generating a Data Object Service Catalog file
You can write a CatalogGeneration task to generate a Catalog file for a Data Object Service in an ABL Web App project.
Task-level properties and elements:
Specifies the location of the ABL Web App project.
Specifies the location of your OpenEdge installation.
(Optional) Enables the verbose mode. The valid values are true, false, on, off, yes, and no.
Note: By default, the value is set to false.
Specifies the name of the service.
Specifies a comma-separated list of resources (classes and procedures) associated with the Data Object Service.
Note: Make sure to specify at least one resource and the resources must be accurately annotated.
(Optional) Specifies the destination directory where the Catalog file is generated.
resources element
Contains a set of ABL source files that are required to generate the Catalog file. You can configure this element using pathelement or fileset elements.
Note: For more information on pathelement or fileset elements, refer to the Apache Ant documentation.
dbinfo element
Contains the database connection details that the catalog generation task depends on. Each dbinfo element is considered a single database connection information.
Specifies the name of the database or the database file with its full path, for example, sports2000 or C:\OpenEdge\WRK114\sports2000.db.
(Optional) Specifies the host name, for example, localhost.
(Optional) Specifies the server port or service name.
(Optional) Specifies the user ID that you use to log in to the database.
(Optional) Specifies the password that you use to log in to the database.
Note: Make sure that the server and database is running when you run the ANT task.
Here is a sample build.xml file for Data Object Service catalog generation:
<?xml version="1.0" encoding="UTF-8"?>
<project name="ABLWebApp" default="main" basedir=".">

<property name="dlc.dir" value="C:\Progress\OpenEdge117" />
<property name="" value="${dlc.dir}/java" />

<!-- property name="src.dir" value="C:\ablwebapp\src\ABLWebAppAllSrvs" /-->
<!--property name="dest.dir" value="C:\ablwebapp\dst\ABLWebAppAllSrvs" /-->

<property name="src.dir" value="C:\ablwebapp\src\CatalogAnt\test" />
<property name="dest.dir" value="C:\ablwebapp\src\CatalogAnt\cat" />

<property name="build.dir" value="C:\OfficeWork\streams\psajja_OE_117_pdsoe\vobs_oeide\nt" />
<property name="dlc.home" value="${build.dir}/dlc/" />

<!-- Copy the jars from latest build -->
<target name="copy">
<copy todir="${}/ant-libs" overwrite="true">
<fileset dir="${build.dir}/ant-libs" />
<copy file="${build.dir}/ant_webapps/dist/ant-ablwebapp.jar" todir="${}" overwrite="true" />

<!-- Target for defining 'taskdef' -->
<target name="taskdef" depends="copy">
<echo>Task Definitions</echo>

<taskdef resource="com/progress/openedge/pdt/ant/ablwebapp/">
<pathelement location="${}/ant-ablwebapp.jar" />

<!-- ABLWebApp Dependencies -->
<pathelement location="${}/ant-libs/ablwebapp.jar" />
<pathelement location="${}/ant-libs/ablwebapp-dependencies.jar" />

<!-- CodeModel Dependencies -->
<pathelement location="${}/ant-libs/codemodel-dependencies.jar" />

<!-- AST and its Dependencies -->
<pathelement location="${}/ant-libs/ast.jar" />
<pathelement location="${}/ant-libs/ast-dependencies.jar" />

<!-- Additional deps -->
<pathelement location="${}/ant-libs/velocity-1.7.jar" />
<pathelement location="${}/ant-libs/velocity-1.7-dep.jar" />
<pathelement location="${}/ant-libs/1padapters-restExpose.jar" />
<pathelement location="${}/1padapters-idl.jar" />
<pathelement location="${}/ext/jettison-1.2.jar" />

<!-- Copy task -->
<target name="copytsk">
<copy todir="${dlc.home}/oeide">
<fileset dir="${build.dir}">
<exclude name="Architect_repo/plugins/com.progress.openedge.pdt.ablwebapp_*" />
<include name="Architect_*/**" />
<include name="eclipse/**" />

<!-- Main task -->
<target name="main" depends="taskdef">

<mkdir dir="${dest.dir}" />

<CatalogGeneration srcdir="${src.dir}" dlc="${dlc.dir}" verbose="true" resources="${src.dir}\AppServer\tst.cls"
serviceName="dorest" destdir="${dest.dir}">

<!-- Configure Database Info -->
<dbinfo name="sports2000" host="localhost" port="4546" />