Using Ant with the Command-Line Interface

The version of Ant that ships with WebLogic Sever 8.1 has built-in tasks specific to WebLogic Server. The wlserver Ant task enables you to start, reboot, shut down, and connect to an existing WebLogic Server instance or create a new one. The wlconfig Ant task enables you to change the configuration of a WebLogic Server domain. The sample Ant script build file shows how to create and delete a connection pool in the MedRec domain that is installed when you install WebLogic Server with examples. Listing 38.5 shows a script that calls an Ant task file.

Listing 38.5. runAntTask.cmd
 @echo off @rem set environment variable for WebLogic Home set WL_HOME=f:\bea\weblogic81 @rem set the environment call %WL_HOME%\server\bin\setWLSEnv.cmd ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.