blob: 262d3ba8eb166510cd585b05f298dc66ee9b1a9e [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="dev-common">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location="../.." />
3 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00004
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00005 <property.ensure name="gwt.core.root" location="../core" />
6 <property.ensure name="gwt.core.build" location="${project.build}/../core" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00007
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00008 <target name="compile" description="Compile all java files">
9 <mkdir dir="${javac.out}" />
10 <gwt.javac>
11 <classpath>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000012 <pathelement location="${gwt.core.build}/bin" />
13 <pathelement location="${gwt.core.build}/alldeps.jar" />
14 </classpath>
15 </gwt.javac>
16 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000017
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000018 <target name="build" depends="compile" description="Build and package this project">
19 <mkdir dir="${gwt.build.lib}" />
fabbott@google.com25305472009-06-10 21:39:00 +000020 <outofdate>
21 <sourcefiles>
22 <fileset dir="src" excludes="**/package.html"/>
23 <fileset dir="${gwt.core.root}/src">
24 <exclude name="**/package.html"/>
25 <exclude name="**/*.properties"/> <!-- copied and/or filtered into bin -->
26 </fileset>
27 <fileset dir="${gwt.core.root}/super" excludes="**/package.html" />
28 <fileset dir="${javac.out}" />
29 <fileset dir="${gwt.core.build}/bin" />
fabbott@google.com25305472009-06-10 21:39:00 +000030 <fileset file="${gwt.core.build}/alldeps.jar" />
31 </sourcefiles>
32 <targetfiles>
33 <fileset file="${project.lib}"/>
34 </targetfiles>
35 <sequential>
36 <gwt.jar>
37 <fileset dir="src" excludes="**/package.html"/>
38 <fileset dir="${gwt.core.root}/src">
39 <exclude name="**/package.html"/>
40 <exclude name="**/*.properties"/> <!-- copied and/or filtered into bin -->
41 </fileset>
42 <fileset dir="${gwt.core.root}/super" excludes="**/package.html" />
43 <fileset dir="${javac.out}" />
44 <fileset dir="${gwt.core.build}/bin" />
fabbott@google.com25305472009-06-10 21:39:00 +000045 <zipfileset src="${gwt.core.build}/alldeps.jar" />
spoon@google.com78d35802009-08-21 17:48:30 +000046
fabbott@google.com25305472009-06-10 21:39:00 +000047 <manifest>
48 <attribute name="Main-Class" value="com.google.gwt.dev.GWTMain" />
49 </manifest>
50 </gwt.jar>
51 </sequential>
52 </outofdate>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000053 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000054
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000055 <target name="clean" description="Cleans this project's intermediate and output files">
56 <delete dir="${project.build}" failonerror="false" />
57 <delete file="${project.lib}" failonerror="false" />
58 </target>
spoon@google.com362654b2009-02-10 16:20:15 +000059
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000060</project>