I am doing a gradle/OSGi build....
I have the OSGi bundle building fine, but want to automate the bundle deployment. I don't think there is a gradle task for this, so this becomes a groovy question. To deploy to an osgi container you do the following: 1) telnet to the OSGi container port 2) send ss command to list the bundles 3) parse out the bundle in question 4) uninstall the bundle via a "uninstall [ID]" command 5) install the bundle via an "install file:///path to bundle" url 6) parse the results 7) exit telnet session.
Is there a way to telnet to a port using Groovy and send commands and read the output?
Thanks for any help, phil