Removing third party jars from gwt-servlet.jar. Review at http://gwt-code-reviews.appspot.com/1047802 Review by: jat@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9136 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/servlet/build.xml b/servlet/build.xml index 6440445..5a90138 100755 --- a/servlet/build.xml +++ b/servlet/build.xml
@@ -7,7 +7,18 @@ <property.ensure name="gwt.user.build" location="${gwt.build.out}/user" /> <property.ensure name="gwt.user.bin" location="${gwt.user.build}/bin" /> - <target name="build" description="Packages this project into a jar"> + <property name="project.lib.deps" + location="${gwt.build.lib}/gwt-${ant.project.name}-deps.jar" /> + + <target name="build" description="Packages this project into a jar" + depends="-servlet, -deps" /> + + <target name="clean" description="Cleans this project's intermediate and output files"> + <delete file="${project.lib}" /> + <delete file="${project.lib.deps}" /> + </target> + + <target name="-servlet" description="Packages this project into a jar"> <mkdir dir="${gwt.build.lib}" /> <gwt.jar> <fileset dir="${gwt.user.bin}"> @@ -21,13 +32,15 @@ <exclude name="com/google/gwt/junit/server/**" /> <exclude name="com/google/gwt/benchmarks/*" /> </fileset> + </gwt.jar> + </target> + + <target name="-deps" description="Packages this project's dependencies into a jar"> + <mkdir dir="${gwt.build.lib}" /> + <gwt.jar destfile="${project.lib.deps}"> <!-- The following two jars satisfy RequestFactory dependencies. --> <zipfileset src="${gwt.tools.redist}/json/r2_20080312/json-1.5.jar" /> <zipfileset src="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" /> </gwt.jar> </target> - - <target name="clean" description="Cleans this project's intermediate and output files"> - <delete file="${project.lib}" /> - </target> </project>