blob: 7a99364c532455e9050251648a58d9c63dbe9fe0 [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-${dist.platform}-${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" />
<include name="benchmarkViewer" />
</patternset>
<patternset id="chmod.not.executables">
<exclude name="*Creator" />
<exclude name="benchmarkViewer" />
</patternset>
<target name="filter" description="Filters distro files for versioning">
<gwt.getsvninfo />
<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>