gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="dist-windows" default="build" basedir="."> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <property name="dist.platform" value="windows" /> |
| 3 | <import file="../common.ant.xml" /> |
| 4 | <property name="project.dist" location="${gwt.build.dist}/${project.distname}.zip" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 5 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 6 | <target name="build" depends="filter" description="Packages the distro"> |
| 7 | <!-- TODO: figure out how to share most of this across platforms --> |
| 8 | <mkdir dir="${gwt.build.dist}" /> |
| 9 | <zip destfile="${project.dist}"> |
| 10 | <!-- jars --> |
| 11 | <zipfileset file="${gwt.build.lib}/gwt-dev-${dist.platform}.jar" prefix="${project.distname}" /> |
| 12 | <zipfileset file="${gwt.build.lib}/gwt-user.jar" prefix="${project.distname}" /> |
| 13 | <zipfileset file="${gwt.build.lib}/gwt-servlet.jar" prefix="${project.distname}" /> |
| 14 | <zipfileset file="${gwt.build.lib}/gwt-benchmark-viewer.jar" prefix="${project.distname}" /> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 15 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 16 | <!-- jni libs--> |
| 17 | <zipfileset dir="${gwt.build.jni}/${dist.platform}" prefix="${project.distname}" /> |
| 18 | <zipfileset dir="${gwt.tools.lib}/eclipse" prefix="${project.distname}"> |
| 19 | <include name="swt-*win32-3235.dll" /> |
| 20 | </zipfileset> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 21 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 22 | <!-- raw files --> |
scottb@google.com | ebeba13 | 2008-09-17 01:38:38 +0000 | [diff] [blame] | 23 | <zipfileset dir="${dist.resources}" prefix="${project.distname}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 24 | <zipfileset dir="src" prefix="${project.distname}" /> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 25 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 26 | <!-- doc --> |
| 27 | <zipfileset dir="${gwt.build.out}" prefix="${project.distname}"> |
| 28 | <include name="doc" /> |
| 29 | <include name="doc/html/**" /> |
| 30 | <include name="doc/css/**" /> |
| 31 | <include name="doc/javadoc/**" /> |
| 32 | </zipfileset> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 33 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 34 | <!-- samples --> |
| 35 | <zipfileset dir="${gwt.build.out}" prefix="${project.distname}"> |
| 36 | <include name="samples" /> |
| 37 | <include name="samples/*" /> |
| 38 | <include name="samples/*/src/**" /> |
| 39 | <include name="samples/*/bin/**" /> |
| 40 | <include name="samples/*/www/**" /> |
| 41 | <exclude name="samples/*/www/.*/**" /> |
| 42 | </zipfileset> |
| 43 | <zipfileset dir="${gwt.build.out}/samples-scripts/${dist.platform}" prefix="${project.distname}/samples"> |
| 44 | <include name="*/*-compile.cmd" /> |
| 45 | <include name="*/*-shell.cmd" /> |
| 46 | </zipfileset> |
| 47 | </zip> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 48 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 49 | <if> |
| 50 | <isset property="build.host.iswindows" /> |
| 51 | <then> |
| 52 | <mkdir dir="${gwt.build.staging}" /> |
| 53 | <unzip src="${project.dist}" dest="${gwt.build.staging}" /> |
| 54 | </then> |
| 55 | </if> |
| 56 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 57 | </project> |