Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo versao=1.01
- SET APP-URL="http://localhost:7001/portal2CA"
- SET MGR-USERNAME="weblogic"
- SET MGR-PASSWORD="weblogic123"
- SET MGR-CONTEXT-PATH="/portal2CA"
- SET MGR-WAR-FILE="/sistema/ca/web/portal2CA.war"
- SET MGR-CONTEXT-DESCRIPTOR="/sistema/ca/web/portal2CA.xml"
- 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%
- pause
- <property name="versao" value="1.02" />
- <!-- Configure the custom Ant tasks for the Manager application -->
- <taskdef name="deploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
- <taskdef name="list" classname="org.apache.catalina.ant.ListTask" />
- <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" />
- <taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask" />
- <taskdef name="roles" classname="org.apache.catalina.ant.RolesTask" />
- <taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
- <taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
- <taskdef name="undeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
- <target name="deploy.war">
- <deploy
- name="${mgr.context.path}"
- action="deploy" verbose="true" debug="true"
- adminurl="${mgr.url}"
- user="${mgr.username}"
- password="${mgr.password}"
- source="${mgr.war.file}"
- targets="AdminServer" />
- </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement