[jira] [Commented] (OFBIZ-7937) Shortlist the needed resources to start OFBiz in the sourcesets block in Gradle

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

[jira] [Commented] (OFBIZ-7937) Shortlist the needed resources to start OFBiz in the sourcesets block in Gradle

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401085#comment-15401085 ]

Taher Alkhateeb commented on OFBIZ-7937:
----------------------------------------

The reference to the exact location where we need to fine tune:

{code}
    main {
        java {
            srcDirs = getDirectoryInActiveComponentsIfExists('src/main/java')
            exclude excludedJavaSources
        }
        resources {
            srcDirs = getDirectoryInActiveComponentsIfExists('src/main/java')
            srcDirs += getDirectoryInActiveComponentsIfExists('config')
            exclude excludedJavaSources
        }
    }

{code}

> Shortlist the needed resources to start OFBiz in the sourcesets block in Gradle
> -------------------------------------------------------------------------------
>
>                 Key: OFBIZ-7937
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7937
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: Gradle
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>
> In gradle we must define both the java sources and resources (non-java files) that allow the system to start correctly.
> Currently, the sources are defined as the folders for each component in /src/main/java and the resources are defined as the /config directory in each component. However, this is not necessary because many components have a config directory which is not related to the runtime resources needed for OFBiz to run. So we need to identify and shortlist the resources essential for the system to actually run. We should do that in the sourcesets block.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)