blob: db1baf8c0ca559f1bebbf634ac971a84c5daaf0d [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="dist-windows" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <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.scottb14c5b9d2006-12-10 06:06:08 +00005
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00006 <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.scottb69965322006-12-19 23:58:19 +000015
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000016 <!-- 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.scottb69965322006-12-19 23:58:19 +000021
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000022 <!-- raw files -->
scottb@google.comebeba132008-09-17 01:38:38 +000023 <zipfileset dir="${dist.resources}" prefix="${project.distname}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000024 <zipfileset dir="src" prefix="${project.distname}" />
gwt.team.scottb69965322006-12-19 23:58:19 +000025
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000026 <!-- 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.scottb69965322006-12-19 23:58:19 +000033
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000034 <!-- 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.scottb69965322006-12-19 23:58:19 +000048
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000049 <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.scottb14c5b9d2006-12-10 06:06:08 +000057</project>