blob: cef80ecdf283ab93a5836af41880a0134d261547 [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
jat@google.com0b1619e2009-09-20 19:33:31 +00006 <property name="project.distname" value="gwt-${gwt.version}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00007 <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>
jat@google.com0b1619e2009-09-20 19:33:31 +000026 <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}" >
jat@google.com0b1619e2009-09-20 19:33:31 +000036 <fileset dir="core/src" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000037 </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>