blob: 7a99364c532455e9050251648a58d9c63dbe9fe0 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="dist-common">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location="../.." />
3 <property name="project.tail" value="distro-source/${dist.platform}" />
4 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00005
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00006 <property name="project.distname" value="gwt-${dist.platform}-${gwt.version}" />
7 <property name="project.staging" location="${gwt.build.staging}/${project.distname}" />
scottb@google.comebeba132008-09-17 01:38:38 +00008 <property name="dist.resources" location="${project.build}/resources" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00009
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000010 <patternset id="chmod.executables">
11 <include name="*Creator" />
12 <include name="benchmarkViewer" />
13 </patternset>
gwt.team.scottbb05c9002006-12-12 09:53:31 +000014
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000015 <patternset id="chmod.not.executables">
16 <exclude name="*Creator" />
17 <exclude name="benchmarkViewer" />
18 </patternset>
gwt.team.scottbb05c9002006-12-12 09:53:31 +000019
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000020 <target name="filter" description="Filters distro files for versioning">
fabbott@google.com3b1edcc2008-09-11 03:19:19 +000021 <gwt.getsvninfo />
22 <condition property="filter.uptodate">
23 <and>
24 <available file="${filter.sentinel}" />
25 <uptodate>
26 <srcfiles dir="../core/src" />
scottb@google.comebeba132008-09-17 01:38:38 +000027 <globmapper from="*" to="${dist.resources}/*" />
fabbott@google.com3b1edcc2008-09-11 03:19:19 +000028 </uptodate>
29 </and>
30 </condition>
31 <antcall target="-filter.props" />
32 </target>
33
34 <target name="-filter.props" unless="filter.uptodate">
scottb@google.comebeba132008-09-17 01:38:38 +000035 <gwt.revfilter todir="${dist.resources}" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000036 <fileset dir="../core/src" />
37 </gwt.revfilter>
fabbott@google.com3b1edcc2008-09-11 03:19:19 +000038 <touch file="${filter.sentinel}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000039 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000040
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000041 <target name="clean" description="Cleans this project's intermediate and output files">
42 <delete dir="${project.build}" failonerror="false" />
43 <delete dir="${project.staging}" failonerror="false" />
44 <delete file="${project.dist}" failonerror="false" />
45 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000046</project>