Name: ci.ant
Owner: WASdev
Description: Ant tasks for managing Liberty profile server instances #devops
Created: 2013-07-03 15:12:49.0
Updated: 2017-04-29 03:59:27.0
Pushed: 2017-09-07 16:33:01.0
Size: 260
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Collection of Ant tasks for managing WebSphere Application Server Liberty servers and applications.
Use Maven 2.x or 3.x to build the Ant tasks.
mvn install
: builds the Ant tasks.mvn install -Poffline-its -DwlpInstallDir=<liberty_install_directory>
: builds the Ant tasks and runs the integration tests by providing an existing installation.mvn install -Ponline-its -DwlpVersion=<liberty_version> -DwlpLicense=<liberty_license_code>
: builds the Ant tasks and runs the integration tests by downloading a new server.To use the Liberty Ant tasks in your build scripts you need to:
Declare the antlib
namespace in your build.xml
file:
ject xmlns:wlp="antlib:net.wasdev.wlp.ant">
oject>
Make Liberty Ant tasks available in your build script by:
Copying wlp-anttasks.jar
into $ANT_HOME/lib
directory, or
Using the typedef
task to load the Liberty tasks, for example:
edef resource="net/wasdev/wlp/ant/antlib.xml"
uri="antlib:net.wasdev.wlp.ant"
classpath="target/wlp-anttasks.jar"/>
The latest build of wlp-anttasks.jar
can be obtained from the Sonatype OSS Maven snapshot repository.
The wlp-anttasks.jar
provides the following tasks.
| Task | Description |
| ——— | ———— |
| install-liberty | The install-liberty
task is used to download and install a Liberty server. The task can download the Liberty runtime archive from a specified location (via runtimeUrl
) or automatically resolve it from the Liberty repository based on a version and a runtime type. |
| server | The server
task supports the operations: create
, start
, run
, stop
, status
, package
, dump
and javadump
. |
| deploy | The deploy
task supports deployment of one or more applications to the Liberty server. |
| undeploy | The undeploy
task supports undeployment of a single application from the Liberty server. |
| install-feature | The install-feature
task installs a feature packaged as a Subsystem Archive (ESA file) to the Liberty runtime. |
| uninstall-feature | The uninstall-feature
task uninstalls a feature from the Liberty runtime. |
| clean | The clean
task deletes every file in the ${wlp_output_dir}/logs
, ${wlp_output_dir}/workarea
, ${wlp_user_dir}/dropins
or ${wlp_user_dir}/apps
. |
compileJSPs
task compiles JSP files so they do not need to be compiled on demand at runtime.