Thursday, July 14, 2011

Running WLST from Ant

WebLogic Server provides a custom Ant task, wlst, that invokes a WLST script from an Ant build file. You can create a WLST script (.py) file and then use this task to invoke the script file, or you can create a WLST script in a nested element within this task.

For more information about Ant, see Apache Ant 1.7.1 Manual.

The wlst task is predefined in the version of Ant that is installed with WebLogic Server. To add this version of Ant to your build environment, run the following script:
WL_HOME\server\bin\setWLSEnv.cmd (or setWLSEnv.sh on UNIX)
where WL_HOME is the directory in which you installed WebLogic Server.

If you want to use the wlst task with your own Ant installation, include the following task definition in your build file:

classname="weblogic.ant.taskdefs.management.WLSTTask" />

Parameters
Below are the wlst task parameters that you specify as attributes of the element.


properties="propsFile"

Name and location of a properties file that contains name-value pairs that you can reference in your WLST script.

No comments:

Post a Comment