weblogic 自动部署

把weblogic相应的jar 包 放进ant lib 下 例如 weblogic.jar ;modules目录下面的jar 等

 

<?xml version="1.0" encoding="utf-8"?>

 

<project name="domain" basedir="D:/bea/user_projects/domains/base_domain" default="deploy">

 

<property name="wls.home" value="D:/bea/wlserver_10.3" />

<property name="wls.port" value="7001" />

<property name="wls.host" value="127.0.0.1" />

<property name="wls.adminserverurl" value="t3://localhost:7001" />

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

<property name="wls.password" value="weblogic1" />

<property name="wls.modules" value="D:/bea/modules" />
<property name="wls.source" value="D:/cheping/JReport/Server_B201103311225/bin/distribute/jreport.war" />

<exec executable="${wls.home}/server/bin/setWLSEnv.cmd" />

 

<path id="lib.weblogic.path">

    <fileset dir="${wls.home}/server/lib">

        <include name="*.jar" />

    </fileset>

</path>

 

<taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer" classpathref="lib.weblogic.path" />

<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpathref="lib.weblogic.path" />


<!--
 <target name="connect-server">

    <wlserver host="127.0.0.1" port="7001" username="test" password="test1234"

         dir="D:/Program Files/Oracle/user_projects/domains/base_domain" beahome="D:/Program Files/Oracle/Middleware"

         weblogichome="D:/Program Files/Oracle/wlserver_10.3/server" servername="AdminServer" domainname="base_domain"

         adminserverurl="t3://localhost:7001" action="connect"/>

  </target>

 -->

 

   <target name="connect-server">

    <wlserver host="${wls.host}" port="${wls.port}" username="${wls.username}" password="${wls.password}" action="connect"/>

  </target>

 <!--

<target name="start-server" depends="connect-server" >

 

    <wlserver dir="${basedir}/config" host="127.0.0.1" port="7001" action="start"/>

</target>

 -->

<target name="deploy" depends="connect-server">

    <wldeploy user="${wls.username}" password="${wls.password}"

    action="deploy" source="${wls.source}"

    name="jreport" adminurl="${wls.adminserverurl}" targets="AdminServer"/>

</target>



 
<!--
<target name="undeploy" depends="connect-server">

    <wldeploy

      action="undeploy" verbose="true" debug="true"

      name="jreport"

      user="test" password="test1234"

      adminurl="t3://localhost:7001" targets="AdminServer"

      failοnerrοr="false" />

  </target>
-->
 

</project>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值