blob: 386f37c90011f6bd39a438eb27af1e44f78804e6 [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}" />
amitmanjhi@google.comace7a3c2008-12-15 19:25:42 +000015 <zipfileset file="${gwt.build.lib}/gwt-api-checker.jar" prefix="${project.distname}" />
gwt.team.scottb69965322006-12-19 23:58:19 +000016
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000017 <!-- 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.scottb69965322006-12-19 23:58:19 +000022
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000023 <!-- raw files -->
scottb@google.comebeba132008-09-17 01:38:38 +000024 <zipfileset dir="${dist.resources}" prefix="${project.distname}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000025 <zipfileset dir="src" prefix="${project.distname}" />
gwt.team.scottb69965322006-12-19 23:58:19 +000026
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000027 <!-- 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.scottb69965322006-12-19 23:58:19 +000034
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000035 <!-- 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.com829f7342009-01-13 19:16:35 +000040 <include name="samples/*/war/**" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000041 </zipfileset>
42 <zipfileset dir="${gwt.build.out}/samples-scripts/${dist.platform}" prefix="${project.distname}/samples">
scottb@google.com829f7342009-01-13 19:16:35 +000043 <include name="*/*" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000044 </zipfileset>
45 </zip>
gwt.team.scottb69965322006-12-19 23:58:19 +000046
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000047 <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.scottb14c5b9d2006-12-10 06:06:08 +000055</project>