I'm working on a build that I'm converting from Ant to Gradle. In it, it has to interact with an IBM iSeries system to package a file and then download it back to the machine that does the build (Windows). The FTP part is fine, but where I'm running into problems is the rexec bit.
In Ant, we have the ability to use the rexec task and that works great. However, I don't see an alternative on the Gradle side. Is this something I'm going to have to try and script with Groovy? Or is there some alternative that I'm missing?
Further research showed that
rexec
is not SSH. It's a separate remote protocol that's mostly used for interacting with the iSeries.It turns out what I had to do was write a small program that mimics the functionality of REXEC. It utilizes the IBM JT tools:
Then from build.gradle, make an exec closure...assumes the jar file's in the project: