You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/12/07 22:26:00 UTC

[jira] [Commented] (OFBIZ-11161) OFBiz distribution should not require including extra content

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

ASF subversion and git services commented on OFBIZ-11161:
---------------------------------------------------------

Commit 98bfafd1485574d849c24a22158f407578840d0e in ofbiz-framework's branch refs/heads/trunk from Samuel Trégouët
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=98bfafd ]

Improved: Resolve classpath conflict on `freemarkerTransforms.properties`
(OFBIZ-11161)

All files in {compoment}/config directories are placed in jar
root (cf. sourceSets definition in build.gradle) but there are 4 different
`freemarkerTransforms.properties` in ofbiz (content, product, webapp, widget).
This works fine because we are adding config directories in classpath (through
classpath tag in ofbiz-component.xml), but this is not really intuitive. So to
make things clearer this patch move `freemarkerTransforms.properties` into
`src/main/resources` with a namespace package and `FreeMarkerWorker.java` is
modified accordingly.


> OFBiz distribution should not require including extra content
> -------------------------------------------------------------
>
>                 Key: OFBIZ-11161
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11161
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Mathieu Lirzin
>            Assignee: Mathieu Lirzin
>            Priority: Major
>         Attachments: OFBIZ-11161_0001-Separate-resources-from-Java-source-files.patch, OFBIZ-11161_0002-Don-t-exclude-properties-and-labels-file-fr.patch, OFBIZ-11161_0003-framework_Remove-redundant-dtd-directory-from-classpa.patch, OFBIZ-11161_0003-plugins_Remove-redundant-dtd-directory-from-classpa.patch, OFBIZ-11161_0004-Move-APACHE2_HEADER_FOR_XML.patch, OFBIZ-11161_0005-Do-not-exclude-files-from-component-config-.patch
>
>
> Currently to deploy OFBiz it is necessary to include the source directories containing xml and groovy files in addition of {{ofbiz.jar}}, because loading of those files is not done using the standard [location independent resource mechanism|https://docs.oracle.com/javase/8/docs/technotes/guides/lang/resources.html] of Java.
> To facilitate the deployment on production servers, the following configuration is added in {{build.gradle}}
> {code:groovy}
> distributions.main.contents.from(rootDir) {
>     include 'framework/**', 'applications/**', 'themes/**', 'plugins/**'
> }
> {code}
> However this doesn't solve the problem that OFBiz is not usable as a library downloaded from a Jar repository. The proper solution would be to remove any dependencies on OFBiz home directory and bundle every resource in {{ofbiz.jar}}
> This has been [discussed on Development mailing list|https://lists.apache.org/thread.html/c2612f1e296b6ea15872185871d3a9d83d6a4afc6d2a76f7a336a126@%3Cdev.ofbiz.apache.org%3E]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)