You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mt...@apache.org on 2019/09/15 15:28:59 UTC

svn commit: r1866971 - /ofbiz/ofbiz-framework/trunk/build.gradle

Author: mthl
Date: Sun Sep 15 15:28:59 2019
New Revision: 1866971

URL: http://svn.apache.org/viewvc?rev=1866971&view=rev
Log:
Improved: Don't exclude properties and labels file from the Jar
(OFBIZ-11161)

In order to have an independent deployable jar, we need to include the
properties and labels inside the jar.

The properties and labels file was previously excluded from the jar
because it was not possible to replace the compile time values by
invalidating OFBiz caches which is convenient when developing
OFBiz. It was then necessary to reconstruct the jar and restart
OFBiz (See OFBIZ-8321 for more details).

With the recent improvment from revision 1865719 allowing to run OFBiz
without building a jar, it is now possible to enable this cache
invalidation by running both ‘gradle run’ in one shell and ‘gradlew
--continuous classes’ in a separate shell.  Doing so make the
combination of editing the label files and clearing the caches use
the new value defined in the source file.

Modified:
    ofbiz/ofbiz-framework/trunk/build.gradle

Modified: ofbiz/ofbiz-framework/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1866971&r1=1866970&r2=1866971&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/build.gradle (original)
+++ ofbiz/ofbiz-framework/trunk/build.gradle Sun Sep 15 15:28:59 2019
@@ -278,16 +278,6 @@ sourceSets {
             srcDirs += getDirectoryInActiveComponentsIfExists('config')
             srcDirs += getDirectoryInActiveComponentsIfExists('dtd')
             exclude excludedConfigFiles
-            // Below are necessary for unit tests run by Gradle and integration tests
-            exclude { FileTreeElement elem -> elem.getName().contains('Labels.xml') }
-            exclude { FileTreeElement elem -> elem.getName().contains('.properties') &&
-                !elem.getName().contains('start.properties') &&
-                !elem.getName().contains('load-data.properties') &&
-                !elem.getName().contains('debug.properties') &&
-                !elem.getName().contains('cache.properties') &&
-                !elem.getName().contains('test.properties') &&
-                !elem.getName().contains('rmi.properties')
-            }
         }
     }