Tako Schotanus
Tako Schotanus
A Java app is able to detect if it was run from the console with a proper terminal, so no input redirection. We can use that, right?
Well, actually, that doesn't work :-/ It least not on Linux/Mac. It's because we use `OUTPUT=$(java blah blah blah)`, it "disconnects"the stdin for that process from the original shell process....
Unrelated to what I just mentioned, another option to solve the original problem is to _always_ use the GUI option unless `GraphicsEnvironment.isHeadless()` is `true`.
I just tested it with jbangdev/jbang-action and it returns `true`, as expected. What I read on the Internet about setting `awt.headless` to `true` is that sometimes you need to force...
I can confirm that the two solutions mentioned before do not work. Thanks @patric-r for the feedback, that's very useful! You're not able to provide a fix by any chance...
Btw, JBang doesn't deal directly with the Aether API but uses [Shrinkwrap](https://github.com/shrinkwrap/resolver), so we have to figure out how to set a proxy for that.
> looks like a good start for dealing with the proxy. Indeed, the problem is _how_. There doesn't seem to be anything in the API that deals with Proxies (at...
I also just doubly verified that setting the proxy in `settings.xml` makes the `mvn` command use it but it does not affect the behavior of `jbang`.
Confirmed. I can reproduce this both on Windows and on Linux. It must be a regression.
Preliminary debugging seems to indicate that the project gets reset back to its original state (because my edits keep getting lost), which then triggers a new watch event.