build.p5exslt.INSTALL.git.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:p5exslt="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/exslt/p5exslt.xsd"
  3. basedir="../../."
  4. default="clone"
  5. name="p5exslt.git">
  6. <description>p5suis:say Created function exslt with prefix p5exslt by p5ant module from_git</description>
  7. <include as="PRODUCT" file="build.p5exslt.PRODUCT.xml"/>
  8. <property location="${p5exslt.repository}/p5exslt.git" name="p5exslt.git"/>
  9. <property name="p5exslt.git.url"
  10. value="https://github.com/bzerangue/exslt.org.git"/>
  11. <target depends="clone,math,func" name="default"/>
  12. <condition property="p5exslt.git.if.exists">
  13. <available file="${p5exslt.repository}/p5exslt.git"/>
  14. </condition>
  15. <target description="To git clone from ${p5exslt.git.url}"
  16. name="clone"
  17. unless="p5exslt.git.if.exists">
  18. <mkdir dir="${p5exslt.git}"/>
  19. <exec dir="${p5exslt.git}" executable="git">
  20. <arg line="clone ${p5exslt.git.url}"/>
  21. </exec>
  22. </target>
  23. <property name="p5exslt.INSTALL.git.math" location="${p5exslt.git}/exslt.org/math"/>
  24. <condition property="p5exslt.math.if.exists">
  25. <available file="${p5exslt.math}"/>
  26. </condition>
  27. <target name="math" depends="clone" unless="p5exslt.math.if.exists">
  28. <copy todir="${p5exslt.math}">
  29. <fileset dir="${p5exslt.INSTALL.git.math}"/>
  30. </copy>
  31. </target>
  32. <property name="p5exslt.INSTALL.git.func" location="${p5exslt.git}/exslt.org/func"/>
  33. <condition property="p5exslt.func.if.exists">
  34. <available file="${p5exslt.func}"/>
  35. </condition>
  36. <target name="func" depends="clone" unless="p5exslt.func.if.exists">
  37. <copy todir="${p5exslt.func}">
  38. <fileset dir="${p5exslt.INSTALL.git.func}"/>
  39. </copy>
  40. </target>
  41. </project>