Skip to content

Can @JShell call another Jamal macro ? #22

Answered by verhas
ypiel-talend asked this question in Q&A
Discussion options

You must be logged in to vote

JShell can do anything that a Java program can do, so in principle, nothing stops you from executing a macro from JShell. But this is not something you are looking for, and this possibility will not present a solution to your problem.

The reason is that the JVM executes JShell in a separate process. So if you fire up a Jamal processor in that process and call some macro, it will be okay, but no effect on the actual process executing Jamal calling the JShell functions.

To read properties, you do not need JShell. The

https://github.com/verhas/jamal/tree/master/jamal-snippet#snip_properties

macro does it for you. If that does not fit you for some reason, you can do the followings.

Write a JS…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by verhas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants