[jira] [Commented] (OFBIZ-6810) Refactor components regarding groovy and freemarker file locations

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

[jira] [Commented] (OFBIZ-6810) Refactor components regarding groovy and freemarker file locations

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-6810:
----------------------------------------

Good point. You certainly noticed that I suggested
{code}
minilang/...
groovy/... (pre-compiled Groovy)
/groovyScripts/... (parsed Groovy scripts, groovyScripts rather that script because other script languages could be used in the future)
{code}
and that all (disclaimer: I did not check that) scripts under the currently folders called script are all Minilang scripts (map_procs or services implementations). You maybe also noticed that using the _component://_ notation we don't need to use a "java package like" path, any path is OK. So what we could also do is renaming all
component://componentname/script/java_package_path/possible_sub_folder_name/services_implementation_name.xml
to
component://componentname/minilang/possible_sub_folder_name/services_implementations_name.xml

I'm not sure about keeping the possible_sub_folder_name but it seems reasonnable to not remove this part of the structure.
Using minilang for component sub_folder name is enough because so far (and I guess in future) Minilang is only used for map_proc and services_implementations (including tests services), so there are no ambiguities


> Refactor components regarding groovy and freemarker file locations
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-6810
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6810
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk, Release Branch 15.12
>            Reporter: Pierre Smits
>            Assignee: Nicolas Malin
>
> This is a placeholder issue to capture all tasks and related issues regarding the refactoring of the directory structure with respect to the location of .groovy and .ftl (freemarker templates) files.
> See related discussion: http://ofbiz.markmail.org/message/25dse4jke2fp64mx



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