Try OpenEdge Now
skip to main content
Online Help
Overview of Progress Application Server for OpenEdge : References : Using Apache Ant tasks : Packaging a Web UI project
 
Packaging a Web UI project
You can write a WebUiPackage task to package a Web UI project as a .WAR file to publish it as a new Web App to a PAS for OpenEdge instance.
Task-level properties and elements:
Name
Description
srcdir
Specifies the location of the project for which .WAR file is to be generated.
dlc
Specifies the location of your OpenEdge installation.
verbose
(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.
buildType
(Optional) Specifies if the project is for publishing on a production build or debugging on a development build. The valid values are release and debug.
webAppName
(Optional) Specifies a name for the generated .WAR file.
Note: By default, the name of the project is assigned to the .WAR file.
destdir
(Optional) Specifies the destination directory where the .WAR file is generated.
Here is a sample build.xml file for packaging a Web UI project:
<?xml version="1.0" encoding="UTF-8"?>
<project name="ABLWebApp" default="main" basedir=".">

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

<property name="app.name" value="WebUiPrj" />
<property name="src.dir" value="C:\ablwebapp\src\${app.name}" />
<property name="dest.dir" value="C:\ablwebapp\dst\ant\wars1\${app.name}" />

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

<taskdef resource="com/progress/openedge/pdt/ant/ablwebapp/ablwebapps.properties">
<classpath>

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

<pathelement location="${dlc.java.dir}/ant-libs/ablwebapp.jar" />
<pathelement location="${dlc.java.dir}/ant-libs/ablwebapp-dependencies.jar" />

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

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

<pathelement location="${dlc.java.dir}/ext/jettison-1.2.jar" />

</classpath>
</taskdef>
</target>

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

<WebUiPackage srcdir="${src.dir}" dlc="${dlc.dir}" verbose="false"
webAppName="${app.name}" destdir="${dest.dir}" buildType="release" />

</target>

</project>