[MGNLGROOVY-147] Provide general Command that can execute Groovy scripts Created: 22/Jun/16 Updated: 24/Mar/22 |
|
| Status: | Open |
| Project: | Magnolia Groovy Module |
| Component/s: | integration |
| Affects Version/s: | 2.4.4 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Christian Ringele | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Date of First Response: | |||||
| Description |
|
From a support ticket a needed functionality, which I think is not that exotic many others could benefit: The way to implement it with the tools given would be:
What is missing: |
| Comments |
| Comment by Richard Gange [ 28/Jul/16 ] |
|
AFAIK you can register a command that uses a groovy class. That groovy class just needs to extend MgnlCommand.
So this really isn't missing. The script itself is a magnolia command which extends MgnlCommand. Just like our example in the scripts workspace here /my/commands/GroovyMailCommand. For these reasons I will close this as "not an issue" |
| Comment by Christian Ringele [ 03/Jan/17 ] |
|
I don't get it:
A groovy class is not a groovy script. Or is here the part I don't get...? The goal:
Think about light development...
Is far of that. |
| Comment by Richard Gange [ 03/Jan/17 ] |
|
Sure. This is fine. The thing is we give a very nice example. See https://demo.magnolia-cms.com/.magnolia/admincentral#app:groovy:detail;/my/commands/GroovyMailCommand:edit. This does not require an IDE. I mean, if you can write a script, is it that much harder to follow our example? I understand technically this would be "Java". Let me ask this, is it possible to write this command in groovy? Then we could just provide it at our scripts page here https://wiki.magnolia-cms.com/display/WIKI/Groovy+Shell+Scripts. |