blob: b4e47303bd1f73b57e972d60d8338758928a3245 [file] [log] [blame]
<project name="dist-common">
<property name="gwt.root" location="../.." />
<property name="project.tail" value="distro-source/${dist.platform}" />
<import file="${gwt.root}/common.ant.xml" />
<property name="project.distname" value="gwt-${gwt.version}" />
<property name="project.staging" location="${gwt.build.staging}/${project.distname}" />
<property name="dist.resources" location="${project.build}/resources" />
<patternset id="chmod.executables">
<include name="*Creator" />
</patternset>
<patternset id="chmod.not.executables">
<exclude name="*Creator" />
</patternset>
<target name="filter" description="Filters distro files for versioning">
<gwt.getgitinfo />
<condition property="filter.uptodate">
<and>
<available file="${filter.sentinel}" />
<uptodate>
<srcfiles dir="core/src" />
<globmapper from="*" to="${dist.resources}/*" />
</uptodate>
</and>
</condition>
<antcall target="-filter.props" />
</target>
<target name="-filter.props" unless="filter.uptodate">
<gwt.revfilter todir="${dist.resources}" >
<fileset dir="core/src" />
</gwt.revfilter>
<touch file="${filter.sentinel}" />
</target>
<target name="clean" description="Cleans this project's intermediate and output files">
<delete dir="${project.build}" failonerror="false" />
<delete dir="${project.staging}" failonerror="false" />
<delete file="${project.dist}" failonerror="false" />
</target>
</project>