Nessuna descrizione

build.xml 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="resource-operations" default="setup">
  3. <target name="setup" depends="clean,composer,generate"/>
  4. <target name="clean" description="Cleanup build artifacts">
  5. <delete dir="${basedir}/vendor"/>
  6. <delete file="${basedir}/composer.lock"/>
  7. </target>
  8. <target name="composer" depends="clean" description="Install dependencies with Composer">
  9. <exec executable="composer" taskname="composer">
  10. <arg value="update"/>
  11. <arg value="--no-interaction"/>
  12. <arg value="--no-progress"/>
  13. <arg value="--no-ansi"/>
  14. <arg value="--no-suggest"/>
  15. </exec>
  16. </target>
  17. <target name="generate" depends="-download-arginfo">
  18. <exec executable="${basedir}/build/generate.php" taskname="generate" />
  19. </target>
  20. <target name="-download-arginfo">
  21. <tstamp>
  22. <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
  23. </tstamp>
  24. <delete>
  25. <fileset dir="${basedir}/build">
  26. <include name="arginfo.php" />
  27. <date datetime="${thirty.days.ago}" when="before"/>
  28. </fileset>
  29. </delete>
  30. <get src="https://raw.githubusercontent.com/phan/phan/master/src/Phan/Language/Internal/FunctionSignatureMap.php" dest="${basedir}/build/FunctionSignatureMap.php" skipexisting="true"/>
  31. </target>
  32. </project>