Reviewers: rchandia,

Description:
Fixes logging and character set warnings for dynatablerf and
mobilewebapp samples.


Please review this at http://gwt-code-reviews.appspot.com/1543803/

Affected files:
  M samples/dynatablerf/pom.xml
  A samples/dynatablerf/src/main/resources/log4j.properties
  M samples/mobilewebapp/pom.xml
  D samples/mobilewebapp/src/main/java/log4j.properties
  A samples/mobilewebapp/src/main/resources/log4j.properties
  D samples/mobilewebapp/src/main/webapp/WEB-INF/logging.properties


Index: samples/dynatablerf/pom.xml
===================================================================
--- samples/dynatablerf/pom.xml (revision 10639)
+++ samples/dynatablerf/pom.xml (working copy)
@@ -16,6 +16,10 @@
     <!-- GWT needs at least java 1.6 -->
     <maven.compiler.source>1.6</maven.compiler.source>
     <maven.compiler.target>1.6</maven.compiler.target>
+
+    <!-- Don't let your Mac use a crazy non-standard encoding -->
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   </properties>

   <dependencies>
Index: samples/dynatablerf/src/main/resources/log4j.properties
===================================================================
--- samples/dynatablerf/src/main/resources/log4j.properties     (revision 0)
+++ samples/dynatablerf/src/main/resources/log4j.properties     (revision 0)
@@ -0,0 +1,5 @@
+#log4j configuration, needed by hibernate validator.
+log4j.rootLogger=INFO, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
\ No newline at end of file
Index: samples/mobilewebapp/pom.xml
===================================================================
--- samples/mobilewebapp/pom.xml        (revision 10639)
+++ samples/mobilewebapp/pom.xml        (working copy)
@@ -22,6 +22,9 @@
<gae.home>${user.home}/.m2/repository/com/google/appengine/appengine-java-sdk/${gae.version}/appengine-java-sdk-${gae.version}</gae.home>
     <gae.application.version>1</gae.application.version>

+    <!-- Don't let your Mac use a crazy non-standard encoding -->
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   </properties>

   <repositories>
Index: samples/mobilewebapp/src/main/java/log4j.properties
===================================================================
--- samples/mobilewebapp/src/main/java/log4j.properties (revision 10639)
+++ samples/mobilewebapp/src/main/java/log4j.properties (working copy)
@@ -1,24 +0,0 @@
-# A default log4j configuration for log4j users.
-#
-# To use this configuration, deploy it into your application's WEB-INF/classes
-# directory.  You are also encouraged to edit it as you like.
-
-# Configure the console as our one appender
-log4j.appender.A1=org.apache.log4j.ConsoleAppender
-log4j.appender.A1.layout=org.apache.log4j.PatternLayout
-log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n
-
-# tighten logging on the DataNucleus Categories
-log4j.category.DataNucleus.JDO=WARN, A1
-log4j.category.DataNucleus.Persistence=WARN, A1
-log4j.category.DataNucleus.Cache=WARN, A1
-log4j.category.DataNucleus.MetaData=WARN, A1
-log4j.category.DataNucleus.General=WARN, A1
-log4j.category.DataNucleus.Utility=WARN, A1
-log4j.category.DataNucleus.Transaction=WARN, A1
-log4j.category.DataNucleus.Datastore=WARN, A1
-log4j.category.DataNucleus.ClassLoading=WARN, A1
-log4j.category.DataNucleus.Plugin=WARN, A1
-log4j.category.DataNucleus.ValueGeneration=WARN, A1
-log4j.category.DataNucleus.Enhancer=WARN, A1
-log4j.category.DataNucleus.SchemaTool=WARN, A1
Index: samples/mobilewebapp/src/main/resources/log4j.properties
===================================================================
--- samples/mobilewebapp/src/main/resources/log4j.properties    (revision 0)
+++ samples/mobilewebapp/src/main/resources/log4j.properties    (revision 0)
@@ -0,0 +1,4 @@
+log4j.rootLogger=INFO, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
\ No newline at end of file
Index: samples/mobilewebapp/src/main/webapp/WEB-INF/logging.properties
===================================================================
--- samples/mobilewebapp/src/main/webapp/WEB-INF/logging.properties (revision 10639) +++ samples/mobilewebapp/src/main/webapp/WEB-INF/logging.properties (working copy)
@@ -1,13 +0,0 @@
-# A default java.util.logging configuration.
-# (All App Engine logging is through java.util.logging by default).
-#
-# To use this configuration, copy it into your application's WEB-INF
-# folder and add the following to your appengine-web.xml:
-#
-# <system-properties>
-# <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
-# </system-properties>
-#
-
-# Set the default logging level for all loggers to WARNING
-.level = WARNING


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to