svn commit: r594555 - /ofbiz/trunk/build.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r594555 - /ofbiz/trunk/build.xml

jonesde
Author: jonesde
Date: Tue Nov 13 06:54:32 2007
New Revision: 594555

URL: http://svn.apache.org/viewvc?rev=594555&view=rev
Log:
Changed cache clean to be in its own target and called through clean-all; is more consistent with how other things are handled and doeher things are handled and doesn't break the semantics of the clean target, which is to remove built files ONLY

Modified:
    ofbiz/trunk/build.xml

Modified: ofbiz/trunk/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=594555&r1=594554&r2=594555&view=diff
==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Tue Nov 13 06:54:32 2007
@@ -45,6 +45,7 @@
         <antcall target="clean-output"/>
         <antcall target="clean-xtra"/>
         <antcall target="clean-catalina"/>
+        <antcall target="clean-cache"/>
         <antcall target="clean"/>
     </target>
 
@@ -78,6 +79,13 @@
         </subant>
     </target>
 
+    <target name="clean-cache">
+        <!-- Clean the UtilCache file if errors found with old objects in the cache (Java runtime error something like "local class incompatible") -->
+        <property file="framework/base/config/cache.properties"/>
+        <echo message="NOTICE: deleting ${cache.file.store}.db"/>
+        <delete file="${cache.file.store}.db" verbose="true"/>
+    </target>
+
     <target name="tests">
         <subant target="tests">
             <filelist dir="." files="framework/build.xml"/>
@@ -85,19 +93,6 @@
     </target>
 
     <target name="clean">
-    
-        <!-- ================================================================== -->
-        <!-- 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 target="clean">
             <fileset dir="${basedir}/hot-deploy" casesensitive="no">
                 <include name="**/build.xml"/>