build.xml 763B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="resource-operations" default="build">
  3. <target name="build" depends="generate" />
  4. <target name="generate" depends="download-arginfo">
  5. <exec executable="${basedir}/build/generate.php" taskname="generate" />
  6. </target>
  7. <target name="download-arginfo">
  8. <tstamp>
  9. <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
  10. </tstamp>
  11. <delete>
  12. <fileset dir="${basedir}/build">
  13. <include name="arginfo.php" />
  14. <date datetime="${thirty.days.ago}" when="before"/>
  15. </fileset>
  16. </delete>
  17. <get src="https://raw.githubusercontent.com/rlerdorf/phan/master/includes/arginfo.php" dest="${basedir}/build/arginfo.php" skipexisting="true"/>
  18. </target>
  19. </project>