gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="dev-common"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <property name="gwt.root" location="../.." /> |
| 3 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 4 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 5 | <property.ensure name="gwt.core.root" location="../core" /> |
| 6 | <property.ensure name="gwt.core.build" location="${project.build}/../core" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 7 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 8 | <target name="compile" description="Compile all java files"> |
| 9 | <mkdir dir="${javac.out}" /> |
| 10 | <gwt.javac> |
| 11 | <classpath> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 12 | <pathelement location="${gwt.core.build}/bin" /> |
| 13 | <pathelement location="${gwt.core.build}/alldeps.jar" /> |
| 14 | </classpath> |
| 15 | </gwt.javac> |
| 16 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 17 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 18 | <target name="build" depends="compile" description="Build and package this project"> |
| 19 | <mkdir dir="${gwt.build.lib}" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 20 | <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.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 30 | <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.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 45 | <zipfileset src="${gwt.core.build}/alldeps.jar" /> |
spoon@google.com | 78d3580 | 2009-08-21 17:48:30 +0000 | [diff] [blame] | 46 | |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 47 | <manifest> |
| 48 | <attribute name="Main-Class" value="com.google.gwt.dev.GWTMain" /> |
| 49 | </manifest> |
| 50 | </gwt.jar> |
| 51 | </sequential> |
| 52 | </outofdate> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 53 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 54 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 55 | <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.com | 362654b | 2009-02-10 16:20:15 +0000 | [diff] [blame] | 59 | |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 60 | </project> |