I don't think this is acceptable for the project as it goes pretty far in deleting the persisted cache files on each build.

Also, the error messages mentioned there are due to a change in the CacheLine class and would ONLY happen when upgrading a system. In general system upgrades may require clearing of any persisted cache, the UtilCache ones and others like the Tomcat persisted sessions (if any class in the session has changed data). After an upgrade this should only need to be done once.

Unless someone convinces me otherwise I'll change this a little soon to only clear the cache in a more appropriate target, like a special clean target that is part of clean-all.

-David


On Nov 12, 2007, at 1:41 AM, [EMAIL PROTECTED] wrote:

Author: jleroux
Date: Mon Nov 12 00:41:21 2007
New Revision: 594050

URL: http://svn.apache.org/viewvc?rev=594050&view=rev
Log:
Clean the utilcache file else POS shows errors, more a hack than a definitive solution

Modified:
   ofbiz/trunk/build.xml

Modified: ofbiz/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=594050&r1=594049&r2=594050&view=diff
= = = = = = = = ======================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Mon Nov 12 00:41:21 2007
@@ -110,6 +110,18 @@
    <target name="build">
<echo message="[build] ========== Start Building (Compile) =========="/>

+ <!-- ================================================================== --> + <!-- Clean the utilcache file else POS shows errors like --> + <!-- org.ofbiz.base.util.cache.CacheLine; local class incompatible: --> + <!-- stream classdesc serialVersionUID = -1660410335854090898, --> + <!-- local class serialVersionUID = -7035478304991053884 --> + <!-- More a hack than a definitive solution --> + <!-- ================================================================== -->
+
+        <property file="framework/base/config/cache.properties"/>
+        <echo message="NOTICE: deleting ${cache.file.store}.db"/>
+        <delete file="${cache.file.store}.db" verbose="true"/>
+
        <subant inheritall="false">
            <filelist dir="." files="framework/build.xml"/>
        </subant>



Reply via email to