Deploy a war file to a managed weblogic server to a specified path

I am using the Ant wldeploy task to deploy a war file. It works fine, but the path of the war file on the deployed server is set to something like

 servers/myadminservername/upload/mywarfilename/app 

Instead, I would like to set this path myself in the Ant build file.

Can someone help me with this?

The task I use for this:

 <wldeploy action="deploy" verbose="false" debug="true" name="ClientProfileSyncPortTypeImplV8" source="${results.war.file.dir}/ClientProfileSyncPortTypeImplV8.war" upload="true" adminurl="t3://${serverip}:${port}" user="${admin_id}" password="${admin_pw}" usenonexclusivelock="${lock}" targets="${target_managed1}"> </wldeploy> 
+4
source share
4 answers

I think you can edit the config.xml file and specify the deployment path.

0
source

The upload , targets and stage / nostage / externalstage wldeploy attributes provide some control over the deployment location.

0
source

In the end, I uninstalled the application and deployed it from ant, taking the path that he chose. Now I can deploy and reinstall just fine. This is true neither for me, nor for me, where the ear lives - I was sad that when I turned around in the user interface, I could not relocate using ant.

0
source

I know this is an old post, but I have a partial solution for everyone who came across this question.

From the path: "domain / servers / myadminservername / upload / mywarfilename / app" you can change the first part of this (you can edit "server / myadminservername / upload") to go to any directory with respect to the WLS domain.

Go to the administrator console (using: serverIP: serverPort / console), and in the left part follow the tree: environment → servers → (AdminServerName) → Configuration → Deployment → Download directory name

The "name of the download directory" may contain the path to the directory related to the domain.

So at least "domain / servers / myadminservername / upload / mywarfilename / app" can become "domain / path_of_your_choice / mywarfilename / app"

Hope this helps someone

0
source

Source: https://habr.com/ru/post/1333788/


All Articles