[
https://issues.apache.org/jira/browse/OFBIZ-9436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Taher Alkhateeb updated OFBIZ-9436:
-----------------------------------
Attachment: OFBIZ-9436.patch
Attaching diff which refactors the task as detailed below:
Improved: refactored and improved the createPlugin task in gradle script
Applied the following changes:
- reduced the copy-paste pattern in creating the directory structure for a
new component by converting the mkdir logic into a loop over a list of the
directory names
- reduced the copy-paste pattern in creating the files from their templates
by converting the calls to the generator function to a loop over a list
of maps containing the arguments to the generator function
- added missing src/java/main and src/java/test
- remove duplicate / redundant directories as creating child directory
automatically creates the parent
> refactor createPlugin task in gradle
> ------------------------------------
>
> Key: OFBIZ-9436
> URL:
https://issues.apache.org/jira/browse/OFBIZ-9436> Project: OFBiz
> Issue Type: Improvement
> Reporter: Taher Alkhateeb
> Attachments: OFBIZ-9436.patch
>
>
> The createPlugin task suffers from copy-paste pattern that can be substantially reduced, Patch coming up momentarily.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)