---
title: "deploy Weblogic application with Ant"
author: "mcqueen"
date: "2012-10-31T17:24:37Z"
tags: []
categories: ["研发管理"]
slug: "deploy-weblogic-application-with-ant"
draft: false
lastmod: "2012-10-31T17:28:30Z"
id: 1709669
url: "https://mcqueen.iteye.com/blog/1709669"
---

```
...
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${wls.home}\server\lib\weblogic.jar"/>
<wldeploy action="deploy" name="${appName}" targets="${serverName}" source="xx.ear" user="${wls.deploy.username}" password="${wls.deploy.password}" verbose="true" upload="true" />  
...
```

 

FYI: [Ant Script to start server and deploy application](http://weblogic-server.blogspot.hk/2010/02/ant-script-to-start-deploy-and-undeploy.html)