Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect a groovysh command to the groovyserver #75

Closed
abhi18av opened this issue Nov 18, 2016 · 1 comment
Closed

How to connect a groovysh command to the groovyserver #75

abhi18av opened this issue Nov 18, 2016 · 1 comment

Comments

@abhi18av
Copy link

Hi groovyserv team :)

Awesome work with this, it has saved me a lot of time - everytime I used groovy for scripting.

The thing is I'd really like to connect the groovysh command to the background groovyserver as well since, on a macOS groovysh command starts up a process in a way that causes the "stealing of focus" away from the terminal ( full-screen mode) and towards the desktop. It'd be really nice to be able to use groovysh just like any other cli program.

Thanks, your work is appreciated 👍

@abhi18av
Copy link
Author

abhi18av commented Nov 18, 2016

Aha, found an answer - a lot of hit and trial. So, I'll just leave the references here in case other people wish to know.

The solution is inspired from this StackOverflow thread Java headless exception when I start java using a linux daemon and I just put alias groovysh="groovysh -Djava.awt.headless=true in my .zshrc and boom, problem solved.

I mentioned this here since the fact that groovy accepts the jvm options wasn't documented anywhere. So, I'll close the issue here now.

Btw, if you have any other solution do let me know 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant