Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. echo versao=1.01
  2.  
  3. SET APP-URL="http://localhost:7001/portal2CA"
  4.  
  5. SET MGR-USERNAME="weblogic"
  6. SET MGR-PASSWORD="weblogic123"
  7.  
  8. SET MGR-CONTEXT-PATH="/portal2CA"
  9.  
  10. SET MGR-WAR-FILE="/sistema/ca/web/portal2CA.war"
  11.  
  12. SET MGR-CONTEXT-DESCRIPTOR="/sistema/ca/web/portal2CA.xml"
  13.  
  14. call ant -v -k -f instalar.xml -Dapp.url=%APP-URL% -Dmgr.url=%MGR-URL% -Dmgr.username=%MGR-USERNAME% -Dmgr.password=%MGR-PASSWORD% -Dmgr.context.path=%MGR-CONTEXT-PATH% -Dmgr.war.file=%MGR-WAR-FILE% -Dmgr.context.descriptor=%MGR-CONTEXT-DESCRIPTOR%
  15.  
  16. pause
  17.  
  18. <property name="versao" value="1.02" />
  19.  
  20. <!-- Configure the custom Ant tasks for the Manager application -->
  21. <taskdef name="deploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
  22. <taskdef name="list" classname="org.apache.catalina.ant.ListTask" />
  23. <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" />
  24. <taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask" />
  25. <taskdef name="roles" classname="org.apache.catalina.ant.RolesTask" />
  26. <taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
  27. <taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
  28. <taskdef name="undeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
  29.  
  30.  
  31. <target name="deploy.war">
  32. <deploy
  33. name="${mgr.context.path}"
  34. action="deploy" verbose="true" debug="true"
  35. adminurl="${mgr.url}"
  36. user="${mgr.username}"
  37. password="${mgr.password}"
  38. source="${mgr.war.file}"
  39.  
  40. targets="AdminServer" />
  41. </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement