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