0% found this document useful (0 votes)
60 views

Sample Build - XML File For Ant Based Deployment To Weblogic

here is a sample build.xml that have used to deploy sample application to the weblogic domain. It deploys one single file as library. the build.xml file also has targets for undeploy,redeploy

Uploaded by

Lorfel Quinan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Sample Build - XML File For Ant Based Deployment To Weblogic

here is a sample build.xml that have used to deploy sample application to the weblogic domain. It deploys one single file as library. the build.xml file also has targets for undeploy,redeploy

Uploaded by

Lorfel Quinan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

<project name="webservices-hello_world" default="deploy">

<property name="wls.username" value="wlsadmin" />


<property name="wls.password" value="wlsadmin" />
<property name="wls.hostname" value="192.168.128.9" />
<property name="wls.port" value="30001" />
<property name="admin.server.name" value="DAdmin" />
<property name="deploy.target" value="DAdmin" />
<!-- Here you can specify Either ClusterName, IndividualServerName Like "Managed
One" or comma Seperated List of Managed/AdminServer -->
<property name="deploy.name" value="jsf-1.2.war" />
<property name="deploy.source" value="jsf-1.2.war" />
<!-- Setting TaskDefinition -->
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
<classpath>
<pathelement location="/apps/bea/wlserver_10.0/server/lib/weblogic.jar"/>
</classpath>
</taskdef>
<!-- Deploying Applications -->
<target name="deploy">
<wldeploy action="deploy"
name="${deploy.name}"
source="${deploy.source}"
user="${wls.username}"
nostage="true"
password="${wls.password}"
verbose="true"
adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}"
/>
</target>
<!-- Redeploying Applications -->
<target name="redeploy">
<wldeploy action="redeploy"
name="${deploy.name}"
user="${wls.username}"
password="${wls.password}"
verbose="true"
adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}"
/>
</target>
<!-- Uneploying Applications -->
<target name="undeploy">
<wldeploy action="undeploy"
name="${deploy.name}"
failonerror="false"
user="${wls.username}"
password="${wls.password}"
verbose="true"
adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}"
/>
</target>
</project>

You might also like