Guest User

Untitled

a guest
Nov 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <target name="undeploy" description="Deploys the EAR">
  2. <echo message="${app.name} sucessfully deployed to ${server.deploy.dir}"/>
  3.  
  4. <exec dir="./" executable="cmd.exe" output="dir.txt">
  5. <arg line="/c asadmin undeploy --user=admin --passwordfile=glassfish_admin_pass.txt ear"/>
  6. </exec>
  7. </target>
  8.  
  9. <target name="deploy" description="Deploys the EAR">
  10. <echo message="${app.name} sucessfully deployed to ${server.deploy.dir}"/>
  11.  
  12. <exec dir="./" executable="cmd.exe" output="dir.txt">
  13. <arg line="/c asadmin deploy --user=admin --passwordfile=glassfish_admin_pass.txt build/distribution/ear.ear"/>
  14. </exec>
  15. </target>
  16.  
  17. <target name="redeploy" description="Deploys the EAR">
  18. <echo message="${app.name} sucessfully deployed to ${server.deploy.dir}"/>
  19.  
  20. <exec dir="./" executable="cmd.exe" output="dir.txt">
  21. <arg line="/c asadmin redeploy --user=admin --name=ear --passwordfile=glassfish_admin_pass.txt build/distribution/ear.ear"/>
  22. </exec>
  23. </target>
  24.  
  25. я так деплоил
  26. в текстовом файле с паролем стоит пароль AS_ADMIN_PASSWORD=3333
Add Comment
Please, Sign In to add comment