Try OpenEdge Now
skip to main content
Online Help
Overview of Progress Application Server for OpenEdge : References : Using Apache Ant tasks : Packaging REST services
Packaging REST services
You can write a PaarGeneration task to package REST services to .PAAR files. These .PAAR files can be deployed to a PAS for OpenEdge instance or exported.
Task-level properties and elements:
Specifies the location of the project for which .PAAR files are to be generated.
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.
(Optional) Specifies the names of the services available in the project.
Note: If there are multiple services, separate the names with a comma. If you do not specify a service, .PAAR files are generated for all the REST services in the project.
(Optional) Specifies the destination directory where the .PAAR files are generated.
Here is a sample build.xml file for packaging a REST service:
<?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="" value="ExportWebApp1" />
<property name="src.dir" value="C:\ablwebapp\src\${}" />
<property name="dest.dir" value="C:\ablwebapp\dst\ant\paars" />

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

<taskdef resource="com/progress/openedge/pdt/ant/ablwebapp/">

<pathelement location="${}/ant-ablwebapp.jar" />

<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" />


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

<PaarGeneration srcdir="${src.dir}" dlc="${dlc.dir}" verbose="false"
destdir="${dest.dir}\${}" />