Type: New Feature
Affects Version/s: None
Fix Version/s: None
Number of attachments :
Groovy has numerous features for improving Java's external process execution. This issue is about packaging those features up in a more concise way. This supercedes
GROOVY-5049 (thanks goes to Uri Moszkowicz for raising many of the issues).
So for this Perl example here:
Currently a solution might look like this:
The intention would be to provide something like:
as a shorter alternative (perhaps even shorter after a static import).
For more complicated scenarios we might have:
The intention would be to use Java's ProcessBuilder if needed and see if we can learn anything from org.jruby.util.ShellLauncher which does things like adds 'cmd /c' in front of internal commands on Windows and is are of standard pasth prefixes, e.g. /usr/bin and handles channels for the inputs and outputs if needed.