[ofbiz-framework] branch trunk updated: Improved: Add Asciidoc template for plugin creation task (OFBIZ-10322)

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

[ofbiz-framework] branch trunk updated: Improved: Add Asciidoc template for plugin creation task (OFBIZ-10322)

mbrohl
This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0a6d5c5  Improved: Add Asciidoc template for plugin creation task (OFBIZ-10322)
0a6d5c5 is described below

commit 0a6d5c54e48fb14530f3483fb4eff23f15bc4a0f
Author: Michael Brohl <[hidden email]>
AuthorDate: Thu Jan 30 20:34:40 2020 +0100

    Improved: Add Asciidoc template for plugin creation task
    (OFBIZ-10322)
   
    Create a README.adoc stub and help file stub in the new format under
    framework/resources/templates and use in the plugin creation task.
   
    Thanks Ulrich Heidfeld for providing the patch.
---
 build.gradle                              | 2 ++
 framework/resources/templates/HELP.adoc   | 1 +
 framework/resources/templates/README.adoc | 3 +++
 3 files changed, 6 insertions(+)

diff --git a/build.gradle b/build.gradle
index 09ead78..010655b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -697,6 +697,8 @@ task createPlugin(group: ofbizPlugin, description: 'create a new plugin componen
             [tempName:'SecurityGroupDemoData.xml', newName:"${pluginResourceName}SecurityGroupDemoData.xml", location:'data'],
             [tempName:'DemoData.xml', newName:"${pluginResourceName}DemoData.xml", location:'data'],
             [tempName:'HELP.xml', newName:"HELP_${pluginResourceName}.xml", location:'data/helpdata'],
+            [tempName:'HELP.adoc', newName:'HELP.adoc', location:''],
+            [tempName:'README.adoc', newName:'README.adoc', location:''],
             [tempName:'document.xml', newName:"${pluginResourceName}.xml", location:'documents'],
             [tempName:'entitymodel.xml', newName:'entitymodel.xml', location:'entitydef'],
             [tempName:'services.xml', newName:'services.xml', location:'servicedef'],
diff --git a/framework/resources/templates/HELP.adoc b/framework/resources/templates/HELP.adoc
new file mode 100644
index 0000000..2da3afa
--- /dev/null
+++ b/framework/resources/templates/HELP.adoc
@@ -0,0 +1 @@
+The @component-resource-name@ Help file template.
\ No newline at end of file
diff --git a/framework/resources/templates/README.adoc b/framework/resources/templates/README.adoc
new file mode 100644
index 0000000..1fef6b4
--- /dev/null
+++ b/framework/resources/templates/README.adoc
@@ -0,0 +1,3 @@
+
+The files in this directory are used as templates for the ant create-component target, +
+please do not modify them without understanding the effect that it will have on that build target.
\ No newline at end of file