Bill Fenner wrote: > Can anyone suggest how a user can set the PATH variable for a command > run from a <shell ...> in a process? My xml2rfc plugin runs the > external "xml2rfc" program, and I don't know how to tell people to get > the PATH set for xxe on Windows when you launch it from the Start > menu. (I tell people to use ~/.MacOSX/environment.plist on MacOS and > just the regular environment in UNIX). > > I'd settle for a way for a piece of user configuration to make it into > the process, so that I can tell the user to edit some configuration > file in their local xxe2 directory. >
If the "xml2rfc" program is self-contained, you may want to bundle it with your XXE configuration (one copy per platform!). By doing this, you don't need to tell your users to change their PATH|~/.MacOSX/environment.plist. Suffice to use: --- <shell command="%C%Sxml2rfc ... " platform=" ... "/> --- %C=name of the directory containing the XXE configuration file from which the process command has been loaded. %S=native path component separator of the platform. See http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch05s01s12.html and http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch05s01s13.html If you cannot bundle the "xml2rfc" program, use the above method but with a .bat/.sh script which will attempt to find and run an installed copy of the "xml2rfc" program.

