Deploying WAR file on WebLogic Server using Ant and specified upload path

I am using the

  Ant wldeploy 

task to deploy a Java Web Service, packaged as a WAR file, to a WebLogic Server. Everything is working as expected except the WAR file is being uploaded to WLDomain/AdminUploadLocation/warFileName/app/warFile.war

where

  • WLDomain - name of my WebLogic Server Domain
  • AdminUploadLocation - location to upload WAR files specified by Admin Server configuration
  • warFileName - name of the war file as a directory
  • app - directory named "app"
  • warFile.war - the war file itself
  • I am wondering if anyone knows a way to make the WAR file be directly uploaded like so: WLDomain/AdminUploadLocation/warFile.war

    ie skip creating the directory structure: warFileName/app/

    链接地址: http://www.djcxy.com/p/55890.html

    上一篇: 部署战争后,Tomcat在解压目录时做了什么?

    下一篇: 在WebLogic Server上使用Ant和指定的上载路径部署WAR文件