details:   /erp/devel/pi/rev/56038a11b9db
changeset: 6965:56038a11b9db
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Fri Apr 09 11:58:37 2010 +0200
summary:   Fixed issue 12833. Now compile warnings will not appear in the 
rebuild window, as they are not relevant for common users.

diffstat:

 src-core/src/org/openbravo/utils/OBRebuildAppender.java |  11 +++++++++--
 src/build.xml                                           |   6 +++---
 2 files changed, 12 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 3df698af8ada -r 56038a11b9db 
src-core/src/org/openbravo/utils/OBRebuildAppender.java
--- a/src-core/src/org/openbravo/utils/OBRebuildAppender.java   Fri Apr 09 
14:39:57 2010 +0530
+++ b/src-core/src/org/openbravo/utils/OBRebuildAppender.java   Fri Apr 09 
11:58:37 2010 +0200
@@ -78,8 +78,15 @@
           message = message.substring(0, 2997) + "...";
         PreparedStatement ps = connection
             .prepareStatement("INSERT INTO ad_error_log (ad_error_log_id, 
ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, 
system_status, error_level, message, line_number) SELECT get_uuid(), '0', '0', 
'Y', now(), '0', now(), '0', system_status, ?,?, to_number(?) FROM 
ad_system_info");
-        ps.setString(1, arg0.getLevel().toString());
-        ps.setString(2, arg0.getMessage().toString());
+        String level = arg0.getLevel().toString();
+
+        // Warnings show when compiling are changed to level Info, so that 
they don't appear in the
+        // rebuild window, because they are not relevant for common users
+        if (message.startsWith("Note: ")) {
+          level = Level.INFO.toString();
+        }
+        ps.setString(1, level);
+        ps.setString(2, message);
         ps.setString(3, line_number);
         ps.executeUpdate();
       } catch (Exception e) {
diff -r 3df698af8ada -r 56038a11b9db src/build.xml
--- a/src/build.xml     Fri Apr 09 14:39:57 2010 +0530
+++ b/src/build.xml     Fri Apr 09 11:58:37 2010 +0200
@@ -315,11 +315,11 @@
   
   <target name="compileSqlc" depends="sqlc">
     <updatesystemstatus v="RB43"/>
-    <javac  
srcdir="${basedir}:${build.sqlc}/src:${build.sqlc}/srcAD:${base.src.test}:${base.modules}"
 excludes="${base.modules}/*/src-wad/**,${base.modules}/*/src-util/**" 
destdir="${build}" encoding="UTF-8" fork="true" 
memorymaximumsize="${build.maxmemory}" debug="true" 
debuglevel="lines,vars,source" deprecation="on">
+    <javac  
srcdir="${basedir}:${build.sqlc}/src:${build.sqlc}/srcAD:${base.src.test}:${base.modules}"
 excludes="${base.modules}/*/src-wad/**,${base.modules}/*/src-util/**" 
destdir="${build}" encoding="UTF-8" fork="true" 
memorymaximumsize="${build.maxmemory}" debug="true" 
debuglevel="lines,vars,source" nowarn="${friendlyWarnings}">
       <classpath refid="project.class.path" />
     </javac>
-    
-    <javac srcdir="${build.AD}" destdir="${build}" encoding="UTF-8" 
fork="true" memorymaximumsize="${build.maxmemory}" debug="true" 
debuglevel="lines,vars,source" deprecation="on">
+
+    <javac srcdir="${build.AD}" destdir="${build}" encoding="UTF-8" 
fork="true" memorymaximumsize="${build.maxmemory}" debug="true" 
debuglevel="lines,vars,source" nowarn="${friendlyWarnings}">
       <classpath refid="project.class.path" />
     </javac>
        <antcall target="calculate.version"/>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to