Posted By

nialace on 06/07/11


Tagged

ant meibo


Versions (?)

clean workflow and deploy project with ant


 / Published in: Bash
 

  • tache ant qui récupère le fichier le plus récent d'un répertoire
  • copie d'un fichier en ssh
  • éxécution d'une commande en ssh
  1. <project name="pgi" default="deploy" basedir=".">
  2.  
  3. <taskdef resource="net/sf/antcontrib/antlib.xml"/>
  4.  
  5. <target name="deploy">
  6.  
  7. <property name="delivery" location="E:/cle_maxime_decrypt/2381_r/MeiboStudio4_1_5_32bits/delivery/PGI"/>
  8.  
  9. <sshexec host="192.168.127.129"
  10. username="root"
  11. password="secret"
  12. trust="true"
  13. failonerror="false"
  14. command="/opt/MeiboWorkflow4.1.5/bin/shutdown.sh"/>
  15.  
  16. <sshexec host="192.168.127.129"
  17. username="postgres"
  18. password="secret"
  19. trust="true"
  20. commandResource="C:\Documents and Settings\THALES\Bureau\ant_scripts\test.txt"/>
  21.  
  22. <sshexec host="192.168.127.129"
  23. username="root"
  24. password="secret"
  25. trust="true"
  26. timeout="5000"
  27. failonerror="false"
  28. command="/opt/MeiboWorkflow4.1.5/bin/startup.sh"/>
  29.  
  30. <timestampselector property="latest.modified">
  31. <path>
  32. <fileset dir="${delivery}">
  33. </fileset>
  34. </path>
  35. </timestampselector>
  36.  
  37. <scp file="${latest.modified}" trust="true" todir="root:[email protected]:/opt/MeiboWorkflow4.1.5/publish"/>
  38.  
  39. </target>
  40.  
  41. </project>

Report this snippet  

You need to login to post a comment.