Revision: 8972
Author: gwt.mirror...@gmail.com
Date: Thu Oct 7 13:59:41 2010
Log: Fixing LogExample and DynaTableRf for distro builds. The samples were
being compiled, but they weren't included in the eclipse.generate target.
We also now include json.jar and validation-api-1.0.0.GA.jar in
gwt-servlet.jar. And for DynaTableRf (and Validation), we copy other jars
into the WEB-INF/lib folder of the sample.
Review at http://gwt-code-reviews.appspot.com/964802
Review by: robertvaw...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=8972
Modified:
/trunk/distro-source/core/src/samples/build.xml
/trunk/samples/common.ant.xml
/trunk/samples/dynatablerf/build.xml
/trunk/samples/validation/build.xml
/trunk/servlet/build.xml
=======================================
--- /trunk/distro-source/core/src/samples/build.xml Tue Nov 10 10:02:42 2009
+++ /trunk/distro-source/core/src/samples/build.xml Thu Oct 7 13:59:41 2010
@@ -2,8 +2,10 @@
<target name="-do">
<ant target="${target}" dir="DynaTable"/>
+ <ant target="${target}" dir="DynaTableRf"/>
<ant target="${target}" dir="Hello"/>
<ant target="${target}" dir="JSON"/>
+ <ant target="${target}" dir="LogExample"/>
<ant target="${target}" dir="Mail"/>
<ant target="${target}" dir="Showcase"/>
</target>
=======================================
--- /trunk/samples/common.ant.xml Thu Oct 7 07:43:12 2010
+++ /trunk/samples/common.ant.xml Thu Oct 7 13:59:41 2010
@@ -28,6 +28,11 @@
<pathelement
location="${gwt.tools.lib}/appengine/datanucleus-appengine-1.0.7.final.jar"/>
</path>
+ <!-- The libraries required by the server that will be copied into
WEB-INF/lib. -->
+ <fileset id="sample.server.libs" dir="${gwt.tools.lib}">
+ <include name="" />
+ </fileset>
+
<target name="source" description="Copy source to the output folder">
<mkdir dir="${sample.build}/src" />
<copy todir="${sample.build}/src">
@@ -57,6 +62,13 @@
</if>
</target>
+ <target name="serverlibs" description="Copy server libs to the output
folder">
+ <mkdir dir="${sample.build}/war/WEB-INF/lib" />
+ <copy todir="${sample.build}/war/WEB-INF/lib/" flatten="true">
+ <fileset refid="sample.server.libs" />
+ </copy>
+ </target>
+
<target name="compile" description="Compile all java files">
<mkdir dir="${sample.build}/war/WEB-INF/classes" />
<gwt.javac destdir="${sample.build}/war/WEB-INF/classes">
@@ -138,7 +150,7 @@
<webAppCreator platform="mac" />
</target>
- <target name="build" depends="source, compile, gwtc, scripts"
description="Build and package this project" />
+ <target name="build" depends="source, serverlibs, compile, gwtc,
scripts" description="Build and package this project" />
<target name="checkstyle" description="Static analysis of source">
<gwt.checkstyle outputdirectory="${sample.build}">
=======================================
--- /trunk/samples/dynatablerf/build.xml Thu Oct 7 07:43:12 2010
+++ /trunk/samples/dynatablerf/build.xml Thu Oct 7 13:59:41 2010
@@ -8,4 +8,10 @@
<pathelement
location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
<pathelement
location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA-sources.jar"
/>
</path>
+ <fileset id="sample.server.libs" dir="${gwt.tools.lib}">
+ <include
name="hibernate/validator/hibernate-validator-4.1.0.Final.jar" />
+ <include name="apache/log4j/log4j-1.2.16.jar" />
+ <include name="slf4j/slf4j-api/slf4j-api-1.6.1.jar" />
+ <include name="slf4j/slf4j-log4j12/slf4j-log4j12-1.6.1.jar" />
+ </fileset>
</project>
=======================================
--- /trunk/samples/validation/build.xml Thu Oct 7 07:43:12 2010
+++ /trunk/samples/validation/build.xml Thu Oct 7 13:59:41 2010
@@ -19,4 +19,10 @@
<pathelement location="${gwt.tools.lib}/sun/jaxb/jaxb-impl-2.1.3.jar"
/>
<pathelement
location="${gwt.tools.lib}/javax/xml/stream/stax-api-1.0-2.jar" />
</path>
+ <fileset id="sample.server.libs" dir="${gwt.tools.lib}">
+ <include
name="hibernate/validator/hibernate-validator-4.1.0.Final.jar" />
+ <include name="apache/log4j/log4j-1.2.16.jar" />
+ <include name="slf4j/slf4j-api/slf4j-api-1.6.1.jar" />
+ <include name="slf4j/slf4j-log4j12/slf4j-log4j12-1.6.1.jar" />
+ </fileset>
</project>
=======================================
--- /trunk/servlet/build.xml Mon Feb 1 08:08:26 2010
+++ /trunk/servlet/build.xml Thu Oct 7 13:59:41 2010
@@ -21,6 +21,9 @@
<exclude name="com/google/gwt/junit/server/**" />
<exclude name="com/google/gwt/benchmarks/*" />
</fileset>
+ <!-- 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>
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors