Closed tobias-- closed 8 years ago
oh, wow, didn't expect that... you're right, this should work from the IDE, I will try to come up with a better solution!
I've made some changes and got it working when running Gradle from Intellij... but it seems IntelliJ takes the input already, so it is not possible to read System.in
at all... which means that, when running the Gradle task with IntelliJ, the runOsgi
task will only wait for the OSGi process to die to exit... and you won't be able to interact with the shell if you have one.
As runOsgi
is meant to be used just for small tests, I think this is acceptable. If you want to run your OSGi environment "properly", use the run.sh
or run.bat
scripts, or even just run gradle runOsgi
from the terminal and everything will work fine.
Will push a release in the next few days.
The task runOsgi can not be started from within IntelliJ, because it reads from
system.in
. Is there a way to allow user input by IntelliJ? Even if not, I think it should be possible to disable user input and let the task wait for an exit signal sent from the IDE.