Author: taher
Date: Wed Sep 21 09:55:54 2016
New Revision: 1761708

URL: http://svn.apache.org/viewvc?rev=1761708&view=rev
Log:
 Improved: Re-introduce iteration over components for building the classpath
 
 Adopters noted that some components ship with their jars, and it would be
 much more convenient to keep the jar with the component than to copy it
 to the top level /lib directory. Hence we re-introduce the code snippet
 to iterate over all components and load any jars found in ${component}/lib
 
 Thanks: Scott Gray for highlighting and guiding on this issue

Modified:
    ofbiz/trunk/build.gradle

Modified: ofbiz/trunk/build.gradle
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1761708&r1=1761707&r2=1761708&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Wed Sep 21 09:55:54 2016
@@ -172,6 +172,9 @@ dependencies {
     junitReport 'org.apache.ant:ant-junit:1.9.7'
 
     // local libs
+    getDirectoryInActiveComponentsIfExists('lib').each { libDir ->
+        compile fileTree(dir: libDir, include: '**/*.jar')
+    }
     compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar')
 }
 


Reply via email to