Open NattyNarwhal opened 2 years ago
Those were defined in src\plugconf.rpgle.in
D PLUGSPNPGM c const('XMLSERVICE.PGM')
D PLUGSPNDIR c const('/QSYS.LIB/@LIBRARY@.LIB/')
Change to what you want and rebuild.
Personally, I think XMLSERVICE is too oriented around compile-time customization. This may have made sense long ago before IBM started shipping it. Since we did start shipping it, we've encouraged users to use that version of XMLSERVICE (all the toolkits default to this version and the Node.js doesn't even let you change it IIRC). This means that options which are compile-time only may as well not even be there.
https://github.com/IBM/xmlservice/blob/20800d6be4aa4748b6eb226896c899c9c7e752ab/src/plugipc.rpgle#L1496
Because dir+pgm will always expand to
/libname.LIB/XMLSERVICE.PGM
, andSPAWN_SETJOBNAMEARGV_NP
gets set, this will always make a job of the nameXMLSERVICE
when spawning. A user asks if this could be customizeable. My guess is to set argv0 to whatever, but still pass what is currently argv0 as the first parameter to spawn.