首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

weblogic 自动支配

2012-12-28 
weblogic 自动部署把weblogic相应的jar 包 放进ant lib 下 例如 weblogic.jar modules目录下面的jar 等?

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"

????? failonerror="false" />

? </target>
-->
?

</project>

热点排行