Ant target for the automatic creation of an ofbiz component in the hot-deploy folder
------------------------------------------------------------------------------------- Key: OFBIZ-2169 URL: https://issues.apache.org/jira/browse/OFBIZ-2169 Project: OFBiz Issue Type: New Feature Components: framework Reporter: Jacopo Cappellato Fix For: Release Branch 9.3 Attachments: create-component.patch Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. Apply the patch and run the command: ant create-component You will be prompted for: 1) component name (e.g. "test") 2) component resource name (e.g. "Test") 3) webapp name (e.g. "testapp") 4) base permission (e.g. "TEST") and the target will create the component in the hot-deploy folder. Restart ofbiz and the new application will be up and running. I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacopo Cappellato updated OFBIZ-2169: ------------------------------------- Attachment: create-component.patch > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670719#action_12670719 ] Vikas Mayur commented on OFBIZ-2169: ------------------------------------ Hi Jacopo, This is much needed feature in OFBiz. I have tested this patch and it worked like a charm. Great Work! Also I would like to suggest few things: 1) Add the ability so that user can review his inputs by prompting with a message "Do you wish to continue (Y/N)?", or with some other options so that user can re-enter values to the questions. Iterate this until user is sure of his inputs. 2) For base-permission question, if user enter some thing like TeSt, convert it to TEST as per OFBiz conventions. 3) Add an entry of "<fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/>" in build.xml file, in case if user write any Java events. 4) error.jsp is missing. > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670804#action_12670804 ] Adrian Crum commented on OFBIZ-2169: ------------------------------------ Jacopo, This is a great idea! I look forward to seeing it committed. > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670805#action_12670805 ] Jacopo Cappellato commented on OFBIZ-2169: ------------------------------------------ Vikas, Adrian, thanks for your comments. There are two small issues that I would like to fix before committing the code: 1) is it ok to put the templates in the example application? I tried to avoid to add a new folder into the ofbiz home to avoid confusion 2) the templates in the example component are without the license header: this is intentional because the generated files should be without the license header but... can we include files without a license header (but licensed under the ASF2.0) in the ofbiz trunk? Jacopo > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670808#action_12670808 ] Adrian Crum commented on OFBIZ-2169: ------------------------------------ Maybe the templates could be kept in the common component. My concern with putting them in the example component is that they might confuse new users - "Why are these here?" > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670877#action_12670877 ] David E. Jones commented on OFBIZ-2169: --------------------------------------- I agree the templates directory in the ofbiz home directory would be a pain, but in the framework directory I think it makes good sense. I don't like the idea as much of having it mixed in with common or example as I agree it makes things messier there (ie these are probably easier to work with if they are isolated). > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670882#action_12670882 ] Jacopo Cappellato commented on OFBIZ-2169: ------------------------------------------ What about adding a "resources" folder where we could move the templates, plus some other files like the common.xml and macros.xml files? We could put it into the ofbiz-home folder or (better) into the framework folder (but it will be the first non component folder). What do you think? > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670888#action_12670888 ] David E. Jones commented on OFBIZ-2169: --------------------------------------- Sounds fine. I don't have a problem with a non-component directory in the framework. Actually, the start directory there is not a component so there is some precedence. > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacopo Cappellato closed OFBIZ-2169. ------------------------------------ Resolution: Fixed Committed in rev. 741605 I have also included most of the suggestions from Vikas. To all, thanks for your help. > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder > ------------------------------------------------------------------------------------- > > Key: OFBIZ-2169 > URL: https://issues.apache.org/jira/browse/OFBIZ-2169 > Project: OFBiz > Issue Type: New Feature > Components: framework > Reporter: Jacopo Cappellato > Fix For: Release Branch 9.3 > > Attachments: create-component.patch > > > Ant target for the automatic creation of an ofbiz component in the hot-deploy folder. > Apply the patch and run the command: > ant create-component > You will be prompted for: > 1) component name (e.g. "test") > 2) component resource name (e.g. "Test") > 3) webapp name (e.g. "testapp") > 4) base permission (e.g. "TEST") > and the target will create the component in the hot-deploy folder. > Restart ofbiz and the new application will be up and running. > I would like to add more targets like: create-screen, create-service etc... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |