From: René J. <rvj...@xs...> - 2022-06-03 12:54:38
|
Hi Mike, > On 3 Jun 2022, at 14:31, hp...@we... wrote: > >>> >>> Well, I hope NetRexx Pipelines allows home-made stages like this. >> >> Yes, certainly. The source of all the stages is in NetRexx. Did you check out the source from Github or SourceForge (I keep it in two places because it limits the exposure from outages). > > Found https://github.com/rvjansen/netrexx-site <https://github.com/rvjansen/netrexx-site> but no source of > stages in there. > No, that is the website; this is a useful repository for finding old NetRexx versions online. The NetRexx repo on GitHub is https://github.com/RexxLA/NetRexx <https://github.com/RexxLA/NetRexx> , stages are at https://github.com/RexxLA/NetRexx/tree/master/src/org/netrexx/njpipes/stages <https://github.com/RexxLA/NetRexx/tree/master/src/org/netrexx/njpipes/stages> But I see you found the SourceForge repo. >> We keep all the stages in src/org/netrexx/njpipes/stages. Most are put together by Jeff Hennick so I hope he’ll join this conversation sometime. > > Clicking on 'Files' in SourceForge shows: > "This project has no files." > Then ... at last, found it. Nice :) > > So this is the only option users may add their DIY stages? > > /M. Not at all: these are the included stages (‘programs’ I think the book calls them now) and show how things are done at the moment, but you can start a homegrown stage at literally any place on your file system. I think this is about the minimal boilerplate: import org.netrexx.njpipes.pipes. class bagvendt extends stage method run() loop forever line = Rexx peekto() output(line.reverse()) readto() catch StageError rc = rc() end -- loop forever exit(rc*(rc<>12)) Best regards, René. |