gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="dist-common"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <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.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 5 | |
jat@google.com | 0b1619e | 2009-09-20 19:33:31 +0000 | [diff] [blame] | 6 | <property name="project.distname" value="gwt-${gwt.version}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 7 | <property name="project.staging" location="${gwt.build.staging}/${project.distname}" /> |
scottb@google.com | ebeba13 | 2008-09-17 01:38:38 +0000 | [diff] [blame] | 8 | <property name="dist.resources" location="${project.build}/resources" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 9 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 10 | <patternset id="chmod.executables"> |
| 11 | <include name="*Creator" /> |
| 12 | <include name="benchmarkViewer" /> |
| 13 | </patternset> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 14 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 15 | <patternset id="chmod.not.executables"> |
| 16 | <exclude name="*Creator" /> |
| 17 | <exclude name="benchmarkViewer" /> |
| 18 | </patternset> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 19 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 20 | <target name="filter" description="Filters distro files for versioning"> |
fabbott@google.com | 3b1edcc | 2008-09-11 03:19:19 +0000 | [diff] [blame] | 21 | <gwt.getsvninfo /> |
| 22 | <condition property="filter.uptodate"> |
| 23 | <and> |
| 24 | <available file="${filter.sentinel}" /> |
| 25 | <uptodate> |
jat@google.com | 0b1619e | 2009-09-20 19:33:31 +0000 | [diff] [blame] | 26 | <srcfiles dir="core/src" /> |
scottb@google.com | ebeba13 | 2008-09-17 01:38:38 +0000 | [diff] [blame] | 27 | <globmapper from="*" to="${dist.resources}/*" /> |
fabbott@google.com | 3b1edcc | 2008-09-11 03:19:19 +0000 | [diff] [blame] | 28 | </uptodate> |
| 29 | </and> |
| 30 | </condition> |
| 31 | <antcall target="-filter.props" /> |
| 32 | </target> |
| 33 | |
| 34 | <target name="-filter.props" unless="filter.uptodate"> |
scottb@google.com | ebeba13 | 2008-09-17 01:38:38 +0000 | [diff] [blame] | 35 | <gwt.revfilter todir="${dist.resources}" > |
jat@google.com | 0b1619e | 2009-09-20 19:33:31 +0000 | [diff] [blame] | 36 | <fileset dir="core/src" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 37 | </gwt.revfilter> |
fabbott@google.com | 3b1edcc | 2008-09-11 03:19:19 +0000 | [diff] [blame] | 38 | <touch file="${filter.sentinel}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 39 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 40 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 41 | <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.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 46 | </project> |