OEWar
- Last Updated: March 25, 2026
- 1 minute read
- OpenEdge DevOps Framework
- Version 2.4
- Documentation
The OEWar task is used to package an ABL web application
project and generate a WAR file.
OEWar task type extends from the War task type of Gradle, and
supports all the properties and methods supported by the War task type.
The following tables describe the extra configurations added by OEWar
along with some common configurations inherited from the War task type
of Gradle.
Methods
| Method | Description | Example |
|---|---|---|
services(serviceNames) |
Specifies the service names that should be exported. By default, all the
services are exported.
Note: This method is applicable only when
projectLocation property is
provided. |
|
webInf(configureClosure) |
Adds the content to the Execute the given closure configuration to configure the |
|
manifest(configureClosure) |
Configures the manifest for Execute the given closure configuration to configure the |
|
Properties
| Property | Required? | Description | Example | Default value |
|---|---|---|---|---|
webAppName |
Yes |
The name of the ABL web application. |
|
None |
archiveBaseName |
No |
The base name of the archive. |
|
|
archiveAppendix |
No |
The appendix part of the archive name, if any. |
|
None |
archiveVersion |
No |
The version part of the archive name. |
|
None |
archiveClassifier |
No |
The classifier part of the archive name, if any. |
|
None |
archiveExtension |
No |
The extension used for the |
|
|
archiveFileName |
No |
Displays the archive name in the following
format:
|
|
${webAppName}.war |
destinationDirectory |
No |
The directory where the archive is placed. |
|
|
manifest |
No |
The manifest for the You can configure it the same way as you configure Note: The format
for
Build-Date is DateTimeFormatter
.ISO_OFFSET_DATE_TIME. |
|
|
projectLocation |
No |
Specifies the path with all the relevant files and folder to the Progress Developer
Studio for OpenEdge server project. For example,
PASOEContent/, and so on. |
projectLocation=project.file "<path-to-project>" |
None |
serviceList |
No |
Specifies the service names that should be exported. By default, all the services are exported. Note: This property is applicable only when the
projectLocation is specified. |
|
None |
verbose |
No |
Use this property to enable logs. |
|
|
Sample code snippet 1
The following code snippet is an example of using the OEWar
task type from a Progress Developer Studio for OpenEdge project:
task createWebAppArchive(type: OEWar){
webAppName = "myABLWebApp"
projectLocation = project.file "./"
verbose = true
destinationDirectory = project.file "${buildDir}/dist"
manifest {
attributes "Implementation-Title": "My ABL Web Application"
attributes "Implementation-Version": "1.0.0"
from ("PASOEContent/META-INF/MANIFEST.MF")
}
}
Sample code snippet 2
The following code snippet is another example using the
OEWar task type from a Progress Developer Studio for OpenEdge
project:
task createWebAppArchive(type: OEWar){
webAppName = "myABLWebApp"
projectLocation = project.file "./"
services("service2", "service3")
verbose = true
destinationDirectory = project.file "${buildDir}/dist"
manifest {
attributes "Implementation-Title": "My ABL Web Application"
attributes "Implementation-Version": "1.0.0"
from ("PASOEContent/META-INF/MANIFEST.MF")
}
}
Sample code snippet 3
The following code snippet is another example using the
OEWar task type from a custom project or folder structure:
task createWebAppArchive(type: OEWar){
webAppName = "myABLWebApp"
destinationDirectory = project.file "${buildDir}/dist"
//add the template provided in DLC
from("${abl.dlcHome}/servlets/oeabl") {
exclude "<files-that-should-be-replaced>"
}
//fail for duplicates
duplicatesStrategy = DuplicatesStrategy.FAIL
//add folders/files inside the archive
from("src/static") {
into("static")
include "**/*.js"
include "**/*.json"
}
webInf {
from("src/openedge")
into("openedge")
include "**/*.r"
exclude "**/*.txt"
}
webInf {
from("src/tlr")
into("tlr")
}
//configure manifest
manifest {
attributes "ABL-Web-Application-Name": "myABLWebApp"
attributes "ABL-Web-Application-Version": "0.0.0.0"
attributes "Implementation-Title": "My ABL Web Application"
attributes "Implementation-Version": "1.0.0"
from ("<path-to-manifest-file>")
}
}