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> |
| 12 | <pathelement location="${gwt.tools.lib}/eclipse/${gwt.dev.swt.jar}" /> |
| 13 | <pathelement location="${gwt.core.build}/bin" /> |
| 14 | <pathelement location="${gwt.core.build}/alldeps.jar" /> |
| 15 | </classpath> |
| 16 | </gwt.javac> |
| 17 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 18 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 19 | <target name="build" depends="compile" description="Build and package this project"> |
| 20 | <mkdir dir="${gwt.build.lib}" /> |
| 21 | <gwt.jar> |
fabbott@google.com | 3b1edcc | 2008-09-11 03:19:19 +0000 | [diff] [blame] | 22 | <fileset dir="src" excludes="**/package.html"/> |
| 23 | <fileset dir="${gwt.core.root}/src"> |
| 24 | <exclude name="**/package.html"/> |
| 25 | <exclude name="com/google/gwt/dev/About.properties"/> |
| 26 | </fileset> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 27 | <fileset dir="${gwt.core.root}/super" excludes="**/package.html" /> |
| 28 | <fileset dir="${javac.out}" /> |
| 29 | <fileset dir="${gwt.core.build}/bin" /> |
| 30 | <zipfileset src="${gwt.tools.lib}/eclipse/${gwt.dev.swt.jar}" /> |
| 31 | <zipfileset src="${gwt.core.build}/alldeps.jar" /> |
| 32 | <manifest> |
| 33 | <attribute name="Main-Class" value="com.google.gwt.dev.GWTMain" /> |
| 34 | </manifest> |
| 35 | </gwt.jar> |
| 36 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 37 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 38 | <target name="clean" description="Cleans this project's intermediate and output files"> |
| 39 | <delete dir="${project.build}" failonerror="false" /> |
| 40 | <delete file="${project.lib}" failonerror="false" /> |
| 41 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 42 | |
| 43 | </project> |