[jira] [Commented] (OFBIZ-5394) Use Groovy AntBuilder to launch ant tasks through a web browser.

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

[jira] [Commented] (OFBIZ-5394) Use Groovy AntBuilder to launch ant tasks through a web browser.

Nicolas Malin (Jira)

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

Gavin Mabie commented on OFBIZ-5394:
------------------------------------

Jacques - ViewComponents are not removed completely with the patch (I have
to check it again), but the proposal is to move it to ComponentScreens.
Ideally, if the Groovy AntBuilder enhancement is accepted then we could
move quite a number of these kind of tasks there.  Here I'm thinking for
example about "create-tenant" and such like components. We've also been
able to actually "hot-deploy" components in our dev environment - but
that's experimental at this stage.  In summary then, the idea is to
containerise admin tools under this segment and to achieve "webtools" for
some of the ant tasks.  Another use-case would be for example to use a
stylesheet template resource for creating skins.  I will post another patch
in this regard.  Sorry about the patch issues (my first patch to the
community) - but were you able to apply it in the end?

Adrian - I'm no security expert, but I think we should have a look at this.
It could be important for expanding the ofbiz user-base.  Kindly provide
more detail about the security risks.

Gavin

Gavin







> Use Groovy AntBuilder to launch ant tasks through a web browser.
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-5394
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5394
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk, Release Branch 12.04, Release Branch 13.07
>            Reporter: Gavin Mabie
>              Labels: features, patch
>             Fix For: SVN trunk
>
>         Attachments: ofbiz-webtools-component.patch
>
>
> Some of the ant tasks in build.xml can be encapsulated in a groovy script using Groovy AntBuilder.  This provides the ability to use form widgets to pass parameters to ant.  For less technical users this can be a major help as they do not have to go through a console but can instead launch ant tasks through a user-friendly webinterface.  To start with I have enscapsulated the "create-component" task in a groovy script - CreateComponent.groovy. The best place for this enhancement seems to be the Webtools app.  To this end I have created a new menu item from the webtools app and named it Component Management.  I also added "ComponentScreens.xml and ComponentForms.xml".



--
This message was sent by Atlassian JIRA
(v6.1#6144)