Its quite simple. You might have to dig in the documentation where step-by-step is listed.
Here is the snippet.
Define the Properties in the Ant Script
To facilitate automation and reuse of the scripts in different target environments, the code excerpt references properties, such as ${cluster.name}, that are resolved in a properties file imported to the Ant script. For example, the following properties are defined in a separate properties file, myprops.properties:
deploy.dir=deploy
cluster.name=platformclust
er
admin.addr=myhost
admin.port=9301
admin.username=username
admin.password=password
The file is referenced in the Ant build file as follows:
>
Define the Main Ant Target
The following defines the main Ant target for the WebLogic Integration application. The target value is shown in bold. The deploy-app target is described below.
http://${admin.addr}:${admin.port}" />
Define the Deploy Ant Target
The deploy-app target, referenced in the Ant target above, uses the weblogic.Deployer command to deploy the applications, as follows:
fork="true" failonerror="true">
>
>
Deploy the WebLogic Integration Application
To deploy the WebLogic Integration application to a single domain, as depicted in Single-Cluster Platform Domain Example:
Start the Administration Server and Managed Servers, as described in Steps to Deploy the Application.
Deploy the WebLogic Integration application using the main Ant target, as follows:
ant deploy-IntApp