-
Type:
Bug
-
Status: Verified
-
Resolution: Unresolved
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: None
-
Component/s: Dev Tools
-
Labels:
-
Fix Priority:3
-
Git Pull Request:
Many times the system administrator doesn't have access to control panel and they must execute maintenance Groovy scripts.
Currently, with blade, it's possible to execute Groovy scripts with the following command (for the example use the attached script):
blade sh gogo:sh groovyExecutor.txt
This is possible because the imported class is in the kernel, but if you try to import one from a module the execution will fail.
Steps to Reproduce:
- Configure the following property: module.framework.properties.osgi.console=11311
- Execute the following command: blade sh gogo:sh groovyExecutorFails.txt using the attached script.
Actual Result:
The script fails with a compilation error.
Expected Result:
There should be an alternative to execute the script.