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}" /> |
amitmanjhi@google.com | ace7a3c | 2008-12-15 19:25:42 +0000 | [diff] [blame] | 15 | <zipfileset file="${gwt.build.lib}/gwt-api-checker.jar" prefix="${project.distname}" /> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 16 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 17 | <!-- jni libs--> |
| 18 | <zipfileset dir="${gwt.build.jni}/${dist.platform}" prefix="${project.distname}" /> |
| 19 | <zipfileset dir="${gwt.tools.lib}/eclipse" prefix="${project.distname}"> |
| 20 | <include name="swt-*win32-3235.dll" /> |
| 21 | </zipfileset> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 22 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 23 | <!-- raw files --> |
scottb@google.com | ebeba13 | 2008-09-17 01:38:38 +0000 | [diff] [blame] | 24 | <zipfileset dir="${dist.resources}" prefix="${project.distname}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 25 | <zipfileset dir="src" prefix="${project.distname}" /> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 26 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 27 | <!-- doc --> |
| 28 | <zipfileset dir="${gwt.build.out}" prefix="${project.distname}"> |
| 29 | <include name="doc" /> |
| 30 | <include name="doc/html/**" /> |
| 31 | <include name="doc/css/**" /> |
| 32 | <include name="doc/javadoc/**" /> |
| 33 | </zipfileset> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 34 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 35 | <!-- samples --> |
| 36 | <zipfileset dir="${gwt.build.out}" prefix="${project.distname}"> |
| 37 | <include name="samples" /> |
| 38 | <include name="samples/*" /> |
| 39 | <include name="samples/*/src/**" /> |
scottb@google.com | 829f734 | 2009-01-13 19:16:35 +0000 | [diff] [blame^] | 40 | <include name="samples/*/war/**" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 41 | </zipfileset> |
| 42 | <zipfileset dir="${gwt.build.out}/samples-scripts/${dist.platform}" prefix="${project.distname}/samples"> |
scottb@google.com | 829f734 | 2009-01-13 19:16:35 +0000 | [diff] [blame^] | 43 | <include name="*/*" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 44 | </zipfileset> |
| 45 | </zip> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 46 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 47 | <if> |
| 48 | <isset property="build.host.iswindows" /> |
| 49 | <then> |
| 50 | <mkdir dir="${gwt.build.staging}" /> |
| 51 | <unzip src="${project.dist}" dest="${gwt.build.staging}" /> |
| 52 | </then> |
| 53 | </if> |
| 54 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 55 | </project> |